/* styles.css - Pintura Facundo Villanueva (Modo Dios) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Poppins:wght@300;400;600;800&display=swap');

:root {
  --primary: #FFC107; /* Amarillo */
  --black: #111111;
  --white: #FFFFFF;
  --gray-dark: #1e1e1e;
  --gray-light: #2c2c2c;
  --radius-lg: 32px;
  --radius-sm: 16px;
  --shadow-main: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-yellow: 0 10px 30px rgba(255, 193, 7, 0.2);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* NAVEGACIÓN PRO */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10010;
  padding: 10px 5%; /* Reducido un poco */
  transition: var(--transition);
  border-bottom: 2px solid rgba(255, 193, 7, 0.1);
  background: var(--black);
}

.navbar.nav-scrolled {
  background: rgba(0, 71, 171, 0.95); /* Azul fuerte marca */
  backdrop-filter: blur(15px);
  padding: 8px 5%;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.navbar.nav-scrolled .logo-text,
.navbar.nav-scrolled .nav-links a {
  color: var(--white) !important; /* Forzado a blanco para legibilidad sobre azul */
}

.navbar.nav-scrolled .nav-toggle span {
  background: var(--white) !important; /* Hamburguesa blanca sobre fondo azul */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-round {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--primary); /* Borde un poco más grueso por el tamaño */
  object-fit: cover;
  box-shadow: var(--shadow-yellow);
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--black) !important;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: var(--shadow-yellow);
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 193, 7, 0.4);
}

/* MOBILE MENU TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 10020;
  padding: 10px;
  width: 40px;
  height: 40px;
  background: transparent;
  transition: var(--transition);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary) !important;
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* En scroll el span puede ser negro para contraste con el blanco */
.nav-scrolled .nav-toggle span {
  background: var(--black) !important;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
}

section {
  padding: 60px 5%; /* Reducido de 100px */
  position: relative;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.accent {
  color: var(--primary);
}

/* REVEAL ON SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* HERO SECTION - MODERNO & IMPACTANTE */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  /* Reducido a 0.55 para que se vea mucho más la foto */
  background: linear-gradient(rgba(17,17,17,0.55), rgba(17,17,17,0.55)), url('img/trabajo9.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding-top: 140px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: var(--primary);
  opacity: 0.05;
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15vh;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  animation: zoomIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-box {
  background: rgba(0, 0, 0, 0.4); /* Un poco más oscuro para que el texto resalte */
  backdrop-filter: blur(8px);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 193, 7, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  background: var(--primary);
  color: var(--black);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 24px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8); /* Sombra para que se lea bien */
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--white); /* Forzado a blanco para legibilidad */
  margin-bottom: 32px;
  font-weight: 300;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.name-line {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 40px;
  font-weight: 600;
}

/* BOTONES */
.btn {
  padding: 12px 35px; /* Más fino */
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--black);
  box-shadow: var(--shadow-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.hero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4);
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* SECTION HEADINGS */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 60px;
  background: var(--primary);
  border-radius: 2px;
}

/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--gray-dark);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: var(--shadow-main);
  background: #222;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* TRABAJOS & CAROUSEL CARDS */
.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.trabajo-card {
  background: var(--gray-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 193, 7, 0.1);
  transition: var(--transition);
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
}

.trabajo-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.trabajo-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* Más equilibrado en móvil */
  overflow: hidden;
  background: #000;
}
@media (min-width: 768px) {
  .trabajo-carousel {
    aspect-ratio: 4/5;
  }
}

.carousel-inner {
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-out;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--black);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 10px;
}

.trabajo-info {
  padding: 25px;
  text-align: center;
}

.trabajo-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.trabajo-info p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* VIDEOS - Comentados en CSS por si se reactivan */
/*
.videos-container { ... }
*/

/* BENEFICIOS */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.benefit-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.benefit-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
}

/* CONTACTO */
.contact-section {
  text-align: center;
}

.contact-info-box {
  padding: 30px; /* Reducido de 50px */
  background: linear-gradient(135deg, rgba(255,193,7,0.05), transparent);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 193, 7, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  font-size: 1.2rem; /* Reducido un poco */
  margin-bottom: 20px;
  font-weight: 500;
  word-wrap: break-word;
}

/* WHATSAPP FLOTANTE */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0047AB; /* Azul fuerte vibrante */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary); /* Icono en amarillo fuerte */
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 71, 171, 0.4);
  z-index: 1000;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  animation: pulseWa 2s infinite;
  border: 2px solid var(--primary); /* Borde amarillo para resaltar */
}

.wa-float:hover {
  transform: scale(1.1) rotate(5deg);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* INSTALL BANNER */
.install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.95);
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 900;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

/* MODAL GALERIA */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.98);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content-container {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.modal-media {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}

.modal-close {
  position: absolute;
  top: -60px;
  right: 0;
  font-size: 40px;
  cursor: pointer;
  color: var(--white);
}

/* FOOTER */
footer {
  background: var(--black);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  opacity: 0.6;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-nav h4, .footer-cta h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul li a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: 0.3s;
  font-size: 0.9rem;
}

.footer-nav ul li a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 5px;
}

.footer-cta .small-text {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-brand p {
    margin: 0 auto;
  }
}

/* ANIMACIONES KEYFRAMES */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(0, 71, 171, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 71, 171, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 71, 171, 0); }
}

/* RESPONSIVE NAV & HERO */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    /* Imagen de fondo con overlay mucho más claro para que se vea bien */
    background: linear-gradient(rgba(17,17,17,0.65), rgba(17,17,17,0.65)), url('img/trabajo9.jpg');
    background-size: cover;
    background-position: center;
    flex-direction: column;
    padding: 100px 40px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,1); /* Sombra pesada para legibilidad */
    text-transform: uppercase;
  }
  
  .nav-links a:hover {
    color: var(--primary) !important;
  }

  .nav-toggle {
    display: flex !important;
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-toggle.active span {
    background: var(--black) !important;
  }

  .nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (max-width: 768px) {
  section { padding: 50px 20px; }
  .hero-box { padding: 30px 15px; border-radius: 20px; }
  .section-title { font-size: 1.8rem; }
  .logo-text { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero { 
    min-height: auto; 
    padding-top: 100px; 
    padding-bottom: 40px; 
  }
  .hero-box { padding: 30px 15px; }
  .hero-title { font-size: 1.6rem; }
  .logo-text { 
    display: inline-block !important; 
    font-size: 1.15rem !important;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-round { 
    width: 48px; 
    height: 48px; 
    border-width: 2px;
  }
  .nav-container {
    padding: 0 15px; /* Más espacio desde las esquinas */
  }
  .btn { 
    padding: 14px 10px; 
    font-size: 0.85rem; 
  }
  section { padding: 40px 20px; } /* Secciones más juntas en móvil */
  #servicios { padding-top: 20px !important; } /* Acercar específicamente servicios */
  .section-header { margin-bottom: 30px !important; }
  .section-title { font-size: 1.5rem !important; }
  
  /* Ajustes específicos para evitar desbordes en tarjetas */
  .service-card {
    padding: 25px;
  }
  .service-card h3 {
    font-size: 1.3rem;
  }
  .service-card p {
    font-size: 0.9rem;
  }
}

.hidden {
  display: none !important;
}

/* BANNER ACTUALIZACIÓN PWA */
.update-banner {
  position: fixed;
  bottom: 110px; /* Sobre el botón de WA o al costado */
  left: 20px;
  right: 20px;
  background: rgba(0, 71, 171, 0.95);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10030;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border: 1px solid var(--primary);
  font-weight: 600;
  animation: slideUpWa 0.5s ease-out;
}

#btn-refresh {
  background: var(--primary);
  color: var(--black);
  border: none;
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.3s;
}

#btn-refresh:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-yellow);
}

@keyframes slideUpWa {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .update-banner {
    left: auto;
    right: 30px;
    bottom: 120px;
    width: auto;
    min-width: 300px;
  }
}

/* BANNER ACTUALIZACIÓN PWA - PEQUEÑO Y DISCRETO */
.update-banner {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90vw;
  background: rgba(0, 71, 171, 0.95);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10030;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  border: 1px solid var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  animation: slideUpWa 0.5s ease-out;
}

#btn-refresh {
  background: var(--primary);
  color: var(--black);
  border: none;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  font-size: 0.75rem;
  transition: 0.3s;
}

@keyframes slideUpWa {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .update-banner {
    left: auto;
    right: 30px;
    bottom: 110px;
    transform: none;
  }
}
