/*
 * Campañas Landing — Estilos compartidos
 * Holins Seguros de Viaje
 *
 * Uso: incluir vía wp_enqueue_style() en cada template de campaña.
 * Clases con prefijo ld- (landing) para evitar colisiones con el tema.
 *
 * Landings que usan este archivo:
 *   - campania-verano.php
 *   - campania-mundial.php
 */


/* ══════════════════════════════════════════════════════════════════
   VARIABLES CORPORATIVAS HOLINS
   ══════════════════════════════════════════════════════════════════ */
:root {
  --h-teal:       #00A09A;
  --h-teal-dark:  #008880;
  --h-teal-light: #e6f7f6;
  --h-navy:       #0d2b3e;
  --h-white:      #ffffff;
  --h-bg:         #f9f9f9;
  --h-text:       #333333;
  --h-muted:      #707070;
  --h-border:     #e0e0e0;
  --h-yellow:     #ffe781;   /* color secundario — solo en detalles */

  --font-title:   'Poppins', sans-serif;
  --font-body:    'Oxygen', sans-serif;

  --max-w:        1600px;
  --radius:       4px;
}

/* ══════════════════════════════════════════════════════════════════
   RESET SCOPED
   ══════════════════════════════════════════════════════════════════ */
.ld-page *, .ld-page *::before, .ld-page *::after { box-sizing: border-box; }
.ld-page {
  font-family: var(--font-body);
  color: var(--h-text);
  font-size: 16px;
  line-height: 1.6;
  background: var(--h-white);
}
.ld-page img { max-width: 100%; height: auto; display: block; }
.ld-page a   { color: inherit; text-decoration: none; }

.ld-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.ld-page h1, .ld-page h2, .ld-page h3, .ld-page h4 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--h-teal);
  line-height: 1.2;
  margin: 0 0 .6em;
}
.ld-page p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--h-muted);
  margin: 0 0 1em;
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN 2 — HERO VERANO
   Layout: columna izquierda (contenido) + columna derecha (calculadora)
   Fondo: imagen oscura con overlay gradiente
   ══════════════════════════════════════════════════════════════════ */

.ld-hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--h-navy);
}

/* Imagen de fondo del hero (lado izquierdo) */
.ld-hero__bg {
  position: absolute;
  inset: 0 400px 0 0; /* ocupa la columna izquierda */
  z-index: 0;
}
.ld-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Gradiente oscuro sobre la imagen — ver regla más abajo junto al panel calc */

/* Columna izquierda: título + CTAs */
.ld-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 60px 40px;
}

/* TODOS los textos del hero en blanco — sin excepción */
.ld-hero__content,
.ld-hero__content h1,
.ld-hero__content h2,
.ld-hero__content h3,
.ld-hero__content p,
.ld-hero__content span,
.ld-hero__content strong,
.ld-hero__content div {
  color: #ffffff !important;
}

/* Badge campaña */
.ld-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.90);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}
.ld-hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--h-teal);
  animation: h-pulse 1.6s ease infinite;
}
@keyframes h-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}

/* Excepciones al blanco global del hero */
/* Badge -10%: negro sobre amarillo */
.ld-hero__content .ld-hero__code-pct {
  color: #222222 !important;
}
/* Botón teal: blanco sobre teal */
.ld-hero__content .ld-btn--teal {
  color: #ffffff !important;
}
/* Botón outline blanco: blanco sobre transparente */
.ld-hero__content .ld-btn--outline-white {
  color: #ffffff !important;
}
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  color: #ffffff !important;
  line-height: 1.15;
  margin-bottom: 14px;
}
.ld-hero__title .ld-accent {
  color: #ffffff !important;  /* blanco puro — el teal no contrasta sobre la foto */
}

/* Subtítulo */
.ld-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.80);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}
.ld-hero__sub strong {
  color: var(--h-white);
  font-weight: 700;
}

/* Caja del código descuento */
.ld-hero__code-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 8px;
  width: fit-content;
}
.ld-hero__code-label {
  font-family: var(--font-title);
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.ld-hero__code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--h-white);
  letter-spacing: .12em;
}
.ld-hero__code-pct {
  background: var(--h-yellow);
  color: #222222;              /* texto oscuro sobre amarillo */
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Urgencia del hero */
.ld-hero__urgency {
  font-family: var(--font-body);
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  display: block;
}

/* Aumentar opacidad del overlay para mejor legibilidad */
.ld-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,43,62,.82) 0%,
    rgba(13,43,62,.65) 55%,
    rgba(13,43,62,.88) 100%
  );
}

/* CTAs del hero */
.ld-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Botón base */
.ld-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
  text-decoration: none;
}
.ld-btn:hover { transform: translateY(-2px); }

.ld-btn--teal {
  background: var(--h-teal);
  color: var(--h-white);
  box-shadow: 0 4px 16px rgba(0,160,154,.40);
}
.ld-btn--teal:hover { background: var(--h-teal-dark); }

.ld-btn--outline-white {
  background: transparent;
  color: var(--h-white);
  border: 2px solid rgba(255,255,255,.45);
}
.ld-btn--outline-white:hover { background: rgba(255,255,255,.10); }

.ld-btn--teal-solid {
  background: var(--h-teal);
  color: var(--h-white);
  box-shadow: 0 4px 14px rgba(0,160,154,.35);
}
.ld-btn--teal-solid:hover { background: var(--h-teal-dark); }

.ld-btn--white {
  background: var(--h-white);
  color: var(--h-teal);
  border: 2px solid var(--h-white);
}
.ld-btn--white:hover { background: var(--h-teal-light); border-color: var(--h-teal-light); }

/* Columna derecha: panel calculadora */
.ld-hero__calc {
  background: var(--h-teal);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 28px 32px;
  position: relative;
  z-index: 2;
}

/* Ocultar icono ? del campo Residencia (se sustituye por texto debajo) */
.ld-hero__calc .tooltip-residenza,
.ld-hero__calc [data-tooltip-residenza],
.ld-hero__calc .field-residenza .ico-info,
.ld-hero__calc .field-residenza .info-tooltip,
.ld-hero__calc .field-residenza .fa-question-circle,
.ld-hero__calc .field-residenza .question-mark {
  display: none !important;
}

/* Fix formulario plugin: la clase .h-full del plugin pone height:100%
   lo que desplaza los campos hacia abajo. Se anula aquí. */
.ld-hero__calc .h-full,
.ld-hero__calc [class*="h-full"] {
  height: auto !important;
  min-height: 0 !important;
}

/* Textos informativo Residencia debajo del campo */
.ld-calc-hint {
  font-family: var(--font-body);
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  margin-top: -6px;
  margin-bottom: 10px;
  line-height: 1.4;
  padding: 0 2px;
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN 3 — TRUST BAR
   4 elementos de confianza en franja teal justo tras el hero
   ══════════════════════════════════════════════════════════════════ */

.ld-trust {
  background: var(--h-navy);
  padding: 28px 20px;
  border-top: 4px solid var(--h-yellow);   /* acento amarillo corporativo */
}
.ld-trust__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.ld-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.ld-trust__item:last-child { border-right: none; }

.ld-trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
}
.ld-trust__number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--h-white);
  line-height: 1;
  margin-bottom: 4px;
}
.ld-trust__label {
  font-family: var(--font-body);
  font-size: .75rem;
  color: rgba(255,255,255,.60);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN 4 — VIAJA ESTE VERANO CON TRANQUILIDAD
   Layout: texto+lista izquierda / imagen derecha
   ══════════════════════════════════════════════════════════════════ */

.ld-feature {
  padding: 72px 20px 64px;
  background: var(--h-bg);
}
.ld-feature__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Columna texto */
.ld-feature__label {
  display: inline-block;
  background: var(--h-teal-light);
  color: var(--h-teal);
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.ld-feature__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--h-teal);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 28px;
}

/* Lista de coberturas */
.ld-feature__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ld-feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--h-text);
  line-height: 1.5;
}
.ld-feature__list-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--h-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.ld-feature__list-text strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  color: var(--h-text);
  margin-bottom: 2px;
}
.ld-feature__list-text span {
  font-size: .85rem;
  color: var(--h-muted);
}

/* Urgencia bajo la lista — mismo border-radius que los botones */
.ld-feature__urgency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);   /* igual que .ld-btn */
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  color: #7a5500;
  margin-bottom: 24px;
}

/* Columna imagen */
.ld-feature__img-col {
  position: relative;
}
.ld-feature__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  aspect-ratio: 4/3;
}
.ld-feature__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Badge flotante sobre la imagen */
.ld-feature__img-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--h-teal);
  color: var(--h-white);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,160,154,.35);
  text-align: center;
  line-height: 1.3;
}
.ld-feature__img-badge span {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN 5 — TIPOS DE SEGURO
   Grid 5 tarjetas con imagen + overlay + título
   ══════════════════════════════════════════════════════════════════ */

.ld-seguros {
  padding: 0 0 60px;
  background: var(--h-white);
}
.ld-seguros__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--h-teal);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 40px;
  padding-top: 56px;
  position: relative;
}
.ld-seguros__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--h-teal);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Fila 1: 3 columnas */
.ld-seguros__row1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
/* Fila 2: 2 columnas centradas */
.ld-seguros__row2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 66.666%;
  margin: 0 auto;
  gap: 0;
}

/* Tarjeta */
.ld-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
}
.ld-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ld-card:hover img { transform: scale(1.05); }

.ld-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,160,154,.80) 0%,
    rgba(0,160,154,.15) 50%,
    transparent 100%
  );
  transition: opacity .3s;
}
.ld-card:hover .ld-card__overlay { opacity: .9; }

.ld-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 16px 18px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .9rem;
  color: var(--h-white);
  text-transform: uppercase;
  letter-spacing: .08em;
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN 6 — PASOS: RESERVAR TU SEGURO
   ══════════════════════════════════════════════════════════════════ */

.ld-steps {
  padding: 60px 20px 70px;
  background: var(--h-white);
}
.ld-steps__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--h-teal);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 50px;
}
.ld-steps__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
  position: relative;
}
.ld-steps__grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%; right: 10%;
  height: 2px;
  background: var(--h-border);
  z-index: 0;
}
.ld-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ld-step__icon { width: 72px; height: 72px; object-fit: contain; }
.ld-step__num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: var(--h-teal);
  line-height: 1;
}
.ld-step__label {
  font-family: var(--font-body);
  font-size: .75rem;
  color: var(--h-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════════
   SECCIÓN 7 — CTA FINAL
   Franja oscura: código VERANO26 + 2 botones
   ══════════════════════════════════════════════════════════════════ */

.ld-cta {
  background: var(--h-navy);
  padding: 64px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ld-cta::before {
  content: '⛱️';
  position: absolute;
  font-size: 220px;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .05;
  pointer-events: none;
  line-height: 1;
}
.ld-cta__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--h-white);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.ld-cta__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
}
.ld-cta__code {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--h-white);
  background: rgba(255,255,255,.08);
  border: 2px dashed rgba(255,255,255,.30);
  border-radius: 8px;
  padding: 12px 32px;
  letter-spacing: .14em;
  margin-bottom: 32px;
}
.ld-cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════════════════
   NEWSLETTER (CSS conservado por si se reactiva)
   ══════════════════════════════════════════════════════════════════ */
.ld-newsletter { background: var(--h-teal); padding: 48px 20px; }
.ld-newsletter__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ld-newsletter__copy { display: flex; align-items: flex-start; gap: 20px; }
.ld-newsletter__copy-icon { font-size: 3rem; line-height: 1; flex-shrink: 0; opacity: .85; }
.ld-newsletter__copy p { color: var(--h-white); font-family: var(--font-body); font-size: .9rem; line-height: 1.6; margin: 0; }
.ld-newsletter__form { display: flex; flex-direction: column; gap: 12px; }
.ld-newsletter__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ld-newsletter__form input[type="text"], .ld-newsletter__form input[type="email"] { width: 100%; padding: 10px 14px; border: none; border-radius: var(--radius); font-family: var(--font-body); font-size: .9rem; color: var(--h-text); background: var(--h-white); }
.ld-newsletter__privacy { display: flex; align-items: flex-start; gap: 8px; font-size: .75rem; color: rgba(255,255,255,.85); }
.ld-btn-newsletter { background: var(--h-yellow); color: #333; font-family: var(--font-title); font-weight: 700; font-size: .9rem; padding: 11px 28px; border: none; border-radius: var(--radius); cursor: pointer; text-transform: uppercase; letter-spacing: .05em; align-self: flex-start; transition: background .2s; }
.ld-btn-newsletter:hover { background: #e0b200; }


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ld-hero { grid-template-columns: 1fr; min-height: auto; }
  .ld-hero__bg { inset: 0; }
  .ld-hero__content { padding: 80px 28px 40px; }
  .ld-hero__calc { padding: 24px 20px 32px; }
  .ld-feature__inner { grid-template-columns: 1fr; gap: 40px; }
  .ld-feature__img-col { order: -1; }
  .ld-feature__img-badge { bottom: 12px; left: 12px; }
  .ld-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .ld-trust__item:nth-child(2) { border-right: none; }
}

@media (max-width: 760px) {
  .ld-seguros__row1 { grid-template-columns: 1fr 1fr; }
  .ld-seguros__row2 { max-width: 100%; grid-template-columns: 1fr 1fr; }
  .ld-steps__grid { grid-template-columns: repeat(3, 1fr); }
  .ld-steps__grid::before { display: none; }
  .ld-newsletter__inner { grid-template-columns: 1fr; }
  .ld-hero__ctas { flex-direction: column; }
  .ld-btn { justify-content: center; }
}

@media (max-width: 520px) {
  .ld-trust__grid { grid-template-columns: 1fr 1fr; }
  .ld-seguros__row1, .ld-seguros__row2 { grid-template-columns: 1fr; max-width: 100%; }
  .ld-steps__grid { grid-template-columns: repeat(2, 1fr); }
  .ld-cta__btns { flex-direction: column; align-items: center; }
  .ld-newsletter__fields { grid-template-columns: 1fr; }
}

/* Toast feedback copiar código */
.ld-toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--h-navy);
  color: white;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.ld-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

