/**
 * landing.css
 * Estilos EXCLUSIVOS de las landing pages one-page por categoría (pérgolas, etc.)
 * No modifica ni sobreescribe main.css ni skala.css.
 * Reutiliza los design tokens --vtl-* definidos en skala.css.
 * Prefijo de clases nuevo: vtl-lp-  (lp = landing page)
 * ============================================================================ */

/* ============================================================================
   0. HEADER STICKY DE LANDING
   El header del theme es transparente y estático. En one-page conviene un header
   sólido y fijo para navegación por anclas. Se activa con la clase .vtl-lp-header
   sin tocar main.css.
   ============================================================================ */
.vtl-lp-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(13,27,42,0.08);
  z-index: 997;
}
.vtl-lp-header .navmenu a,
.vtl-lp-header .navmenu a:focus {
  color: #33404d;
}
.vtl-lp-header .navmenu a:hover,
.vtl-lp-header .navmenu a.active,
.vtl-lp-header .navmenu a.active:focus {
  color: var(--vtl-acero);
}
.vtl-lp-header .logo img { max-height: 56px; }

/* Botón "Cotizar" en el header.
   Se usa alta especificidad (.vtl-lp-header .navmenu ...) para ganar a las
   reglas del theme: .navmenu a{justify-content:space-between}, .navmenu a i
   {font-size:12px} y .navmenu li:last-child a{padding-right:0}. */
.vtl-lp-header .navmenu .vtl-lp-nav-cta,
.vtl-lp-header .navmenu .vtl-lp-nav-cta:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--vtl-acero);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 10px 20px;
  border-radius: var(--vtl-radius);
  transition: background 0.25s, transform 0.2s;
  margin-left: 10px;
}
.vtl-lp-header .navmenu .vtl-lp-nav-cta i {
  font-size: 15px;     /* anula el 12px del theme */
  line-height: 1;
  margin-left: 0;      /* anula el margin-left:5px del theme */
}
.vtl-lp-header .navmenu .vtl-lp-nav-cta:hover {
  background: var(--vtl-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
/* En móvil el navmenu es overlay: el botón se muestra alineado a la izquierda */
@media (max-width: 1199.98px) {
  .vtl-lp-header .navmenu .vtl-lp-nav-cta,
  .vtl-lp-header .navmenu .vtl-lp-nav-cta:focus {
    margin: 12px 0 0 20px;
    padding: 11px 22px;
    font-size: 16px;
  }
}

/* ============================================================================
   1. ANCLAS / SCROLL-SPY OFFSET
   El nav one-page usa anclas; damos margen superior para que el título de cada
   sección no quede pegado al borde al hacer scroll a su ancla.
   ============================================================================ */
.vtl-lp-anchor {
  scroll-margin-top: 90px;
}

/* ============================================================================
   2. HERO DE LANDING
   Hero fuerte, imagen real de la categoría + overlay oscuro + CTA dominante.
   La imagen de fondo se define por variable para reutilizar la plantilla en
   otras categorías: basta cambiar --vtl-lp-hero-img en el style inline del hero.
   ============================================================================ */
.vtl-lp-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
}
/* Overlay oscuro sobre la imagen (antes iba dentro de background-image;
   se separa a ::before porque url() dentro de una custom property no
   se pinta de forma fiable en Chrome). */
.vtl-lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13,27,42,0.72), rgba(13,27,42,0.82));
  z-index: 0;
}
.vtl-lp-hero > .container {
  position: relative;
  z-index: 1;
}

.vtl-lp-hero .vtl-lp-hero-inner {
  padding: 90px 0;
  max-width: 720px;
}

.vtl-lp-hero .vtl-lp-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vtl-cristal);
  background: rgba(29,113,184,0.28);
  border: 1px solid rgba(214,234,248,0.35);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.vtl-lp-hero h1 {
  font-family: var(--heading-font, "Montserrat", sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 18px;
  color: #fff;
}

.vtl-lp-hero h1 .vtl-lp-accent {
  color: var(--vtl-cristal);
}

.vtl-lp-hero .vtl-lp-lead {
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  max-width: 620px;
}

.vtl-lp-hero .vtl-lp-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* CTA dominante */
.vtl-lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vtl-acero);
  color: #fff;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--vtl-radius);
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 6px 24px rgba(29,113,184,0.35);
}
.vtl-lp-btn-primary:hover {
  background: #fff;
  color: var(--vtl-dark);
  transform: translateY(-2px);
}
.vtl-lp-btn-primary i { font-size: 1.1rem; }

/* CTA secundario (WhatsApp) sobre el hero */
.vtl-lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--vtl-radius);
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: background 0.25s, border-color 0.25s;
}
.vtl-lp-btn-ghost:hover {
  background: var(--vtl-wa-green);
  border-color: var(--vtl-wa-green);
  color: #fff;
}
.vtl-lp-btn-ghost i { font-size: 1.15rem; }

/* Franja de confianza bajo el hero */
.vtl-lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.vtl-lp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.vtl-lp-trust-item i {
  color: var(--vtl-cristal);
  font-size: 1.15rem;
}

/* ============================================================================
   3. INTRO / DESCRIPCIÓN
   ============================================================================ */
.vtl-lp-intro .vtl-lp-intro-img {
  border-radius: var(--vtl-radius);
  box-shadow: var(--vtl-shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.vtl-lp-intro .service-title,
.vtl-lp-section-heading {
  font-family: var(--heading-font, "Montserrat", sans-serif);
  font-weight: 800;
  color: var(--vtl-dark);
}
.vtl-lp-intro .lead {
  color: var(--vtl-acero);
  font-weight: 500;
}

/* ============================================================================
   4. GALERÍA DE PRODUCTOS (GLightbox)
   Grid responsive; hover con zoom suave y caption. Preparado para crecer:
   agrega más <a class="glightbox vtl-lp-gallery-item"> y el grid se reacomoda.
   ============================================================================ */
.vtl-lp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vtl-lp-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--vtl-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--vtl-shadow);
  background: #f0f4f8;
}
.vtl-lp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.vtl-lp-gallery-item:hover img {
  transform: scale(1.06);
}
.vtl-lp-gallery-item::after {
  /* icono de lupa al hover */
  content: "\f62c"; /* bi-zoom-in */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}
.vtl-lp-gallery-item::before {
  /* overlay */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.0);
  transition: background 0.3s;
  z-index: 1;
}
.vtl-lp-gallery-item:hover::before {
  background: rgba(13,27,42,0.45);
}
.vtl-lp-gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.vtl-lp-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(transparent, rgba(13,27,42,0.85));
  transform: translateY(6px);
  opacity: 0.95;
}

/* ============================================================================
   5. BANDA CTA INTERMEDIA (antes del formulario)
   ============================================================================ */
.vtl-lp-cta-band {
  background: linear-gradient(135deg, var(--vtl-acero), var(--vtl-dark));
  color: #fff;
  border-radius: var(--vtl-radius);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.vtl-lp-cta-band h3 {
  color: #fff;
  font-weight: 800;
  margin: 0 0 4px;
}
.vtl-lp-cta-band p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* ============================================================================
   6. FORMULARIO EMBEBIDO — pequeños refuerzos (reusa .form-wrapper del theme)
   ============================================================================ */
.vtl-lp-form .vtl-form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--vtl-inox);
  margin-top: 14px;
}
.vtl-lp-form .vtl-form-note i { color: var(--vtl-acero); }

.vtl-required { color: #e53935; margin-left: 2px; }

/* ============================================================================
   7. RESPONSIVE
   ============================================================================ */
@media (max-width: 991.98px) {
  .vtl-lp-hero { min-height: 68vh; }
  .vtl-lp-gallery { grid-template-columns: repeat(2, 1fr); }
  .vtl-lp-cta-band { text-align: center; justify-content: center; }
}

@media (max-width: 575.98px) {
  .vtl-lp-hero .vtl-lp-hero-inner { padding: 60px 0; }
  .vtl-lp-hero .vtl-lp-cta-group { flex-direction: column; align-items: stretch; }
  .vtl-lp-btn-primary,
  .vtl-lp-btn-ghost { justify-content: center; }
  .vtl-lp-gallery { grid-template-columns: 1fr; }
  .vtl-lp-trust { gap: 14px; }
}

/* ============================================================================
   8. CARACTERÍSTICAS (self-contained)
   Los estilos del theme para .feature-item/.feature-icon están anidados bajo
   .service-details .service-content .service-features, que no existen en la
   landing. Aquí se re-estilizan como tarjetas verticales para grid 4-up.
   ============================================================================ */
.vtl-lp-features .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  background: var(--surface-color, #fff);
  border: 1px solid #e4e8ef;
  border-radius: var(--vtl-radius);
  padding: 26px 24px;
  box-shadow: var(--vtl-shadow);
  transition: box-shadow 0.3s, transform 0.2s;
}
.vtl-lp-features .feature-item:hover {
  box-shadow: 0 8px 32px rgba(29,113,184,0.14);
  transform: translateY(-4px);
}
.vtl-lp-features .feature-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: var(--vtl-cristal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vtl-lp-features .feature-icon i {
  font-size: 24px;
  line-height: 1;
  color: var(--vtl-acero);
}
.vtl-lp-features .feature-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vtl-dark);
}
.vtl-lp-features .feature-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--vtl-inox);
  margin: 0;
}

/* ============================================================================
   9. PROCESO DE COMPRA (self-contained timeline)
   ============================================================================ */
.vtl-lp-process {
  max-width: 760px;
  margin: 0 auto;
}
.vtl-lp-process .process-step {
  display: flex;
  gap: 22px;
  margin-bottom: 34px;
  position: relative;
}
.vtl-lp-process .process-step:last-child {
  margin-bottom: 0;
}
.vtl-lp-process .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;              /* centro del step-number (52/2 - 1) */
  top: 60px;
  bottom: -34px;          /* cruza el gap hasta el siguiente número */
  width: 2px;
  background: #dce3ea;
}
.vtl-lp-process .step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vtl-acero);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.vtl-lp-process .step-content {
  flex: 1;
  padding-top: 4px;
}
.vtl-lp-process .step-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--vtl-dark);
}
.vtl-lp-process .step-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--vtl-inox);
  margin: 0;
}

/* ============================================================================
   10. FAQ (preguntas frecuentes) — respuestas visibles y extraíbles por IA
   ============================================================================ */
.vtl-lp-faq-item {
  height: 100%;
  background: var(--surface-color, #fff);
  border: 1px solid #e4e8ef;
  border-left: 3px solid var(--vtl-acero);
  border-radius: var(--vtl-radius);
  padding: 22px 24px;
  box-shadow: var(--vtl-shadow);
}
.vtl-lp-faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vtl-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.vtl-lp-faq-item p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--vtl-inox);
  margin: 0;
}

/* ============================================================================
   11. ZONA DE SERVICIO
   ============================================================================ */
.vtl-lp-zona {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.vtl-lp-zona h2 {
  margin-bottom: 16px;
}
.vtl-lp-zona p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4a5560;
  margin: 0;
}
.vtl-lp-zona strong { color: var(--vtl-dark); }
