/* ============================================================
   VARIABLES GLOBALES - MODO OSCURO (DARK THEME)
   ============================================================ */
:root {
  /* Tu amarillo vibrante (estilo industrial) */
  --gold: #FFD00D;       
  --gold-light: #FFE466; 
  --gold-dim: #CCA60A;   
  
  /* FONDOS OSCUROS (Grises/Grafitos originales) */
  --black: #1A1A1A;      
  --black-soft: #222222; 
  --black-card: #2A2A2A; 
  
  /* TEXTOS CLAROS Y BORDES */
  --white: #F5F0E8;
  --white-dim: #A89F8F;
  --border: rgba(201,168,76,0.2);

  /* ADMINISTRACIÓN DE COLORES DE TEXTO */
  --color-titulos: var(--white);
  --color-enfasis: var(--gold);
  --color-tags: var(--gold);
  --color-parrafos: var(--white); /* Párrafos en color blanco puro */
}

/* ============================================================
   BASE & RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--color-parrafos);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { font-family: 'Bebas Neue', sans-serif; color: var(--color-titulos); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ============================================================
   NAVBAR GLOBAL (INMUTABLE - SIEMPRE OSCURO)
   ============================================================ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.4rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent !important; /* <-- Cambiado a transparente al inicio */
  backdrop-filter: blur(0px);          /* Sin desenfoque inicial */
  border-bottom: 1px solid transparent !important; /* <-- Borde oculto al inicio */
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: #111111 !important;     /* Fondo sólido oscuro al hacer scroll */
  backdrop-filter: blur(2px);         /* Retorna el ligero desenfoque elegante */
  border-bottom: 1px solid transparent !important; /* Reaparece tu borde amarillo vibrante */
}

.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.12em; color: #FFFFFF !important; text-decoration: none; }
.nav-logo span { color: #FFD00D !important; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: #FFFFFF !important; text-decoration: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: #FFD00D !important; transition: width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #FFD00D !important; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: #FFD00D !important; 
  border: 1px solid #FFD00D !important; 
  color: #1A1A1A !important; 
  padding: 0.55rem 1.6rem; font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; transition: all 0.3s; font-weight: bold;
}
.nav-cta:hover { 
  background: #FFE466 !important; 
  border-color: #FFE466 !important;
  color: #1A1A1A !important; 
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: #FFFFFF !important; transition: all 0.3s; }


/* ============================================================
   SISTEMA GLOBAL DE BOTONES (UNIFICADOS)
   ============================================================ */

/* 1. Botón Primario (Siempre Fondo Amarillo, Texto Negro) */
.btn-gold,
.form-submit {
  background: var(--gold) !important;
  color: #1A1A1A !important; 
  border: 1px solid var(--gold) !important;
  padding: 0.9rem 2.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-gold:hover,
.form-submit:hover {
  background: var(--gold-light) !important;
  border-color: var(--gold-light) !important;
  color: #1A1A1A !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 208, 13, 0.25);
}

/* 2. Botón Secundario (Transparente, Adaptable al Tema) */
.btn-outline,
.btn-outline-gold {
  background: transparent !important;
  color: var(--color-titulos) !important;
  border: 1px solid var(--color-titulos) !important;
  padding: 0.9rem 2.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-outline:hover,
.btn-outline-gold:hover {
  background: transparent !important;
  color: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px);
}

/* 3. Excepción Obligatoria para el Hero Slider */
#hero .btn-outline {
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

#hero .btn-outline:hover {
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}


/* ============================================================
   HERO SECTION CON SLIDER (OPTIMIZADO PARA RUTAS PANORÁMICAS)
   ============================================================ */
#hero {
  min-height: 75vh; 
  width: 100%;      
  max-width: 100vw;
  padding: 0;       
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #111111; 
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

/* Filtro de lectura */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,0.6) 0%, rgba(17,17,17,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 5.5rem 2rem 2rem; 
  animation: heroFade 1.2s ease both;
}
@keyframes heroFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); 
  margin-bottom: 0.8rem; 
}
.hero-tag::before, .hero-tag::after { content: ''; display: block; width: 40px; height: 1px; background: var(--gold-dim); }

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem); 
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.8rem; 
  color: #FFFFFF !important; 
}
.hero-title em {
  font-style: normal;
  color: var(--gold) !important; 
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85) !important; 
  max-width: 500px;
  margin: 0 auto 1.8rem; 
  line-height: 1.7;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active, .dot:hover {
  background: var(--gold);
  transform: scale(1.1);
}

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   AJUSTE ESPECÍFICO RESPONSIVE PARA EL HERO (MÓVILES)
   ============================================================ */
@media (max-width: 768px) {
  #hero {
    min-height: 85vh; 
    padding-top: 75px;
  }
  .hero-content {
    padding: 3.5rem 1.2rem 1.5rem;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem); 
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .hero-sub {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
  .slider-dots {
    bottom: 1rem;
  }
}

/* ============================================================
   COMPONENTES Y GRIDS
   ============================================================ */
section { padding: 8rem 5%; }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-tag { display: inline-flex; align-items: center; gap: 0.7rem; justify-content: center; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-tags); margin-bottom: 1.2rem; }
.section-tag::before, .section-tag::after { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.15; color: var(--color-titulos); }
.section-title em { font-style: normal; color: var(--color-enfasis); }

/* Stats Bar */
.stats-bar { background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 5%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat-item { background: var(--black-card); padding: 2rem 2.5rem; text-align: center; }
.stat-num { font-size: 3.2rem; color: var(--gold); line-height: 1; display: block; }
.stat-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-parrafos); margin-top: 0.5rem; display: block; }

/* Grillas de Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.service-card { background: var(--black-card); padding: 2.8rem 2.5rem; position: relative; overflow: hidden; transition: background 0.4s; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 42px; height: 42px; margin-bottom: 1.5rem; display: block; color: var(--gold); }
.service-icon svg { width: 100%; height: 100%; }

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--black-card); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.6) saturate(0.8); }
.gallery-item:hover .gallery-img { transform: scale(1.08); filter: brightness(0.9) saturate(1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, transparent 60%); opacity: 0; transition: opacity 0.4s; display: flex; align-items: flex-end; padding: 1.8rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label { color: var(--white); font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.05em; }
.gallery-label span { display: block; font-family: 'Barlow', sans-serif; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.3rem; }

/* Testimonios */
#testimonios { background: var(--black-soft); border-top: 1px solid var(--border); }
.testimonio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.testimonio-card { background: var(--black-card); padding: 2.5rem; border: 1px solid var(--border); transition: transform 0.3s; }
.testimonio-card:hover { transform: translateY(-5px); border-color: var(--gold); }

/* ============================================================
   FOOTER Y BOTÓN FLOTANTE
   ============================================================ */
footer { background: var(--black-card); border-top: 1px solid var(--border); padding: 4rem 5% 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 5rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand { font-size: 1.8rem; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 0.8rem; color: var(--color-parrafos); line-height: 1.7; }
.footer-col-title { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { font-size: 0.82rem; color: var(--color-parrafos); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-text { font-size: 0.82rem; color: var(--color-parrafos); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-contact-text a { color: var(--gold); text-decoration: none; }

.social-links { display: flex; gap: 1rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; color: var(--gold); transition: all 0.3s ease; text-decoration: none;}
.social-links a i { font-size: 1.2rem; }
.social-links a:hover { background: var(--gold); color: var(--black); transform: translateY(-3px); }

.footer-bottom { display: flex; justify-content: center; align-items: center; }
.footer-copy { font-size: 0.72rem; color: rgba(168,159,143,0.5); letter-spacing: 0.05em; }

/* ESTILOS ORIGINALES DE WHATSAPP FLOTANTE */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}
.whatsapp-flotante:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; }

/* ============================================================
   SECCIONES EXTRAS (PARA PAGINA SERVICIOS)
   ============================================================ */
.service-img-wrap { width: 100%; height: 220px; overflow: hidden; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.7) saturate(0.9); }
.service-card:hover .service-img-wrap img { transform: scale(1.08); filter: brightness(1) saturate(1); }
.service-body { padding: 2.2rem 2.2rem; }
.service-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--white); margin-bottom: 0.6rem; letter-spacing: 0.06em; transition: color 0.3s; }
.service-card:hover .service-title { color: var(--gold-light); }

#por-que { padding: 6rem 5%; background: var(--black-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); margin-top: 4rem; }
.pq-item { padding: 2.4rem 2rem; border-right: 1px solid var(--border); text-align: center; transition: background 0.3s; }
.pq-item:last-child { border-right: none; }
.pq-item:hover { background: rgba(201,168,76,0.04); }
.pq-icon { width: 44px; height: 44px; margin: 0 auto 1.2rem; color: var(--gold); }
.pq-icon svg { width: 100%; height: 100%; }
.pq-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.6rem; }
.pq-desc { font-size: 0.78rem; line-height: 1.75; color: var(--white-dim); }

#cta-servicios { padding: 7rem 5%; background: var(--black); text-align: center; }
.cta-inner { max-width: 660px; margin: 0 auto; }
.cta-tag { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; justify-content: center; }
.cta-tag::before, .cta-tag::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold-dim); }
.cta-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: 0.04em; line-height: 1.0; color: var(--white); margin-bottom: 1.2rem; }
.cta-title span { color: var(--gold-light); }
.cta-sub { font-size: 0.9rem; line-height: 1.85; color: var(--white-dim); margin-bottom: 2.5rem; }

@media (max-width: 1024px) {
  .pq-grid { grid-template-columns: repeat(2, 1fr); }
  .pq-item:nth-child(2) { border-right: none; }
  .pq-item:nth-child(3) { border-top: 1px solid var(--border); }
  .pq-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

@media (max-width: 768px) {
  .pq-grid { grid-template-columns: 1fr; }
  .pq-item { border-right: none; border-bottom: 1px solid var(--border); }
  .pq-item:last-child { border-bottom: none; }
}

/* ============================================================
   ETIQUETAS Y ENLACES (Para tarjetas de servicios)
   ============================================================ */
.sv-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; margin-bottom: 1.6rem; }
.sv-tag { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); border: 1px solid rgba(201,168,76,0.18); padding: 0.25rem 0.65rem; transition: all 0.3s; }
.service-card:hover .sv-tag { border-color: rgba(201,168,76,0.4); color: var(--gold); }

.sv-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-decoration: none; transition: gap 0.3s, opacity 0.3s; font-weight: bold; }
.sv-link:hover { gap: 0.9rem; color: var(--gold-light); }
.sv-link-arrow { display: inline-block; transition: transform 0.3s; font-size: 1.2em; }
.sv-link:hover .sv-link-arrow { transform: translateX(4px); }

/* ============================================================
   SECCIONES "SOBRE NOSOTROS"
   ============================================================ */
.empresa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.empresa-img-wrap { position: relative; }
.empresa-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: brightness(0.85); border: 1px solid var(--border); }
.empresa-img-decor { position: absolute; top: -1.5rem; right: -1.5rem; bottom: 1.5rem; left: 1.5rem; border: 1px solid var(--gold-dim); z-index: -1; }

.empresa-text { font-size: 0.95rem; line-height: 1.9; color: var(--white-dim); margin-bottom: 1.5rem; }
.empresa-text strong { color: var(--white); font-weight: 500; }

.equipo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.team-card { background: var(--black-card); overflow: hidden; border: 1px solid var(--border); }
.team-img-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; border-bottom: 1px solid var(--border); }
.team-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: all 0.5s ease; }
.team-card:hover .team-img { filter: grayscale(0%) contrast(1); transform: scale(1.05); }
.team-info { padding: 2rem; text-align: center; }
.team-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--white); letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.team-role { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 1024px) {
  .empresa-grid { display: flex; flex-direction: column; gap: 4rem; }
  .empresa-text-wrap { order: 1; }
  .empresa-img-wrap { order: 2; max-width: 600px; margin: 0 auto; width: 100%; }
}

/* ============================================================
   RESPONSIVE (Ajustado para Tablets y Móviles)
   ============================================================ */
@media (max-width: 1024px) { 
  .stats-bar, .services-grid, .gallery-grid, .testimonio-grid { grid-template-columns: repeat(2, 1fr); } 
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; } 
  .nav-links { gap: 1.5rem; }
}

@media (max-width: 992px) { 
  nav { 
    padding: 1.2rem 5%; 
    background: #1A1A1A !important; 
  } 
  .nav-links { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: #1A1A1A !important; 
    flex-direction: column; 
    padding: 2rem 5%; 
    border-bottom: 1px solid rgba(255, 208, 13, 0.15) !important;
    gap: 1.5rem;
    display: none; 
  } 
  .nav-links.active { display: flex; }
  .nav-cta { display: none; } 
  .hamburger { display: flex; z-index: 101; } 
  .hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 768px) { 
  .stats-bar, .services-grid, .gallery-grid, .testimonio-grid, .footer-top { grid-template-columns: 1fr; } 
  .whatsapp-flotante { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 30px; }
}

/* ============================================================
   GALERÍA INTERACTIVA DE PROYECTOS
   ============================================================ */
.project-showcase { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 4rem; padding: 0 5%; }
.main-img-container { width: 100%; aspect-ratio: 16/9; max-height: 70vh; overflow: hidden; position: relative; background: var(--black-card); border: 1px solid var(--border); }
.main-img-container .gallery-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease-in-out; }

.main-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 2rem; pointer-events: none; }

.thumbnail-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--gold-dim) var(--black-card); }
.thumbnail-strip::-webkit-scrollbar { height: 6px; }
.thumbnail-strip::-webkit-scrollbar-track { background: var(--black-card); }
.thumbnail-strip::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
.thumbnail { width: 160px; aspect-ratio: 16/9; flex-shrink: 0; cursor: pointer; border: 2px solid transparent; overflow: hidden; opacity: 0.4; transition: all 0.3s ease; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumbnail:hover, .thumbnail.active { opacity: 1; border-color: var(--gold); }

@media (max-width: 768px) {
  .thumbnail { width: 120px; }
  .main-img-overlay { padding: 1.2rem; }
}

/* ============================================================
   ESTILOS EXTRAS PARA FORMULARIO DE COTIZACIÓN
   ============================================================ */
.form-file-wrap { position: relative; display: flex; align-items: center; gap: 1rem; background: var(--black); border: 1px dashed var(--gold-dim); padding: 1rem; transition: all 0.3s; }
.form-file-wrap:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.form-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.form-file-btn { background: var(--black-card); color: var(--gold); border: 1px solid var(--gold-dim); padding: 0.5rem 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 4px; pointer-events: none; }
.form-file-text { font-size: 0.8rem; color: var(--white-dim); pointer-events: none; }

.mic-btn { background: transparent; border: 1px solid var(--gold-dim); color: var(--gold); padding: 0.6rem 1rem; font-family: 'Barlow', sans-serif; font-size: 0.8rem; border-radius: 4px; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; width: fit-content; }
.mic-btn:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }
.mic-btn.recording { background: #8a2f2f; color: white; border-color: #ff4d4d; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }

/* ============================================================
   ESTILOS DE CONTACTO Y FORMULARIO (Para cotiza.html)
   ============================================================ */
#contacto-principal { background: var(--black); }
.contact-wrapper {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 6rem;
  max-width: 1200px; margin: 0 auto; align-items: start;
}

.info-cards-container { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
  background: var(--black-card); border: 1px solid var(--border);
  padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s;
}
.info-card:hover { transform: translateX(5px); border-color: var(--gold); }
.info-icon {
  width: 45px; height: 45px; flex-shrink: 0; background: rgba(201,168,76,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2); font-size: 1.5rem;
}
.info-content h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--white); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.info-content p, .info-content a { font-size: 0.85rem; color: var(--white-dim); line-height: 1.6; text-decoration: none; transition: color 0.3s; }
.info-content a:hover { color: var(--gold); }

.form-container {
  background: var(--black-card); border: 1px solid var(--border);
  padding: 3.5rem 3rem; position: relative;
}
.form-container::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.form-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--white); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); letter-spacing: 0.05em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.form-group:last-child { margin-bottom: 0; }

.form-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); }
.form-input, .form-select, .form-textarea {
  background: var(--black); border: 1px solid rgba(201,168,76,0.15); color: var(--white);
  padding: 1rem 1.2rem; font-family: 'Barlow', sans-serif; font-size: 0.85rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s; width: 100%; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: 0 0 15px rgba(201,168,76,0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(168,159,143,0.4); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--black); }

#form-success {
  display: none; background: rgba(45,122,45,0.1); border: 1px solid #2d7a2d; padding: 2rem;
  text-align: center; margin-bottom: 2rem; animation: fadeUp 0.5s ease;
}
#form-success .icon { font-size: 2.5rem; color: #6fcf6f; margin-bottom: 1rem; }
#form-success p { font-size: 0.95rem; color: #a8e0a8; line-height: 1.6; }

@media (max-width: 1024px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 4rem; }
  .form-container { padding: 3rem 2rem; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   ESTILOS DE LA PÁGINA DE PAGO
   ============================================================ */
.payment-card { background: var(--black-card); border: 1px solid var(--border); padding: 3.5rem 3rem; width: 100%; max-width: 600px; margin: 0 auto; position: relative; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.payment-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.security-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(45,122,45,0.1); border: 1px solid rgba(45,122,45,0.3); color: #6fcf6f; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 2rem; }
.payment-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--white); letter-spacing: 0.05em; margin-bottom: 1rem; }
.payment-divider { height: 1px; background: var(--border); margin: 2.5rem 0; position: relative; }
.payment-divider::after { content: 'MÉTODO DE PAGO'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--black-card); padding: 0 1rem; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--white-dim); }
.webpay-logos { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.webpay-logos img { height: 35px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.btn-webpay { width: 100%; background: #E81A4B; color: #fff; border: none; padding: 1.2rem; font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.btn-webpay:hover { background: #c9153f; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,26,75,0.3); }
.safe-text { font-size: 0.7rem; color: rgba(168,159,143,0.5); margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }

@media (max-width: 768px) {
  .payment-card { padding: 2.5rem 1.5rem; border-left: none; border-right: none; border-radius: 0; }
}

/* ============================================================
   ANIMACIONES AUTOMÁTICAS EN MÓVILES
   ============================================================ */
@media (max-width: 768px) {
  .reveal.visible .ig-overlay,
  .reveal.visible .gallery-overlay,
  .reveal.visible .project-overlay {
    opacity: 1 !important;
  }
  .reveal.visible .ig-image-wrap img,
  .reveal.visible .gallery-img,
  .reveal.visible .project-img {
    filter: brightness(1) !important;
    transform: scale(1.05) !important;
  }
}

/* ============================================================
   SECCIÓN DE ESTADÍSTICAS
   ============================================================ */
#estadisticas {
  background: var(--black-soft);
  padding: 4rem 5%; 
}

.stats-grid {
  max-width: 1100px; 
  margin: 0 auto;
  background: var(--black-card); 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-item {
  padding: 2.2rem 1rem; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05); 
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem); 
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.05em;
}

.stat-text {
  font-size: 0.6rem; 
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 159, 143, 0.6);
  font-weight: 400;
}

@media (max-width: 768px) {
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
}

/* ============================================================
   GRILLA DE MARCAS / PROVEEDORES
   ============================================================ */
.marcas-grid { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 4rem; 
  flex-wrap: wrap; 
  max-width: 1000px;
  margin: 0 auto;
}

.marca-item { 
  filter: grayscale(100%) opacity(0.5); 
  transition: all 0.4s ease; 
  height: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 1.6rem; 
  letter-spacing: 0.08em; 
  color: var(--white); 
  cursor: default;
}

.marca-item img { 
  max-height: 100%; 
  max-width: 140px; 
  object-fit: contain; 
}

.marca-item:hover { 
  filter: grayscale(0%) opacity(1); 
  transform: scale(1.05); 
  color: var(--gold);
}

@media (max-width: 768px) {
  .marcas-grid { gap: 2rem; }
  .marca-item { font-size: 1.2rem; }
}