/**
 * =========================================================================
 * ESTILOS: HERO BANNER - CAMPAÑA TECHO SEGURO 2026
 * Proyecto: ITSA Servicios Generales - Techo Seguro
 * Proporción: Panorámica 16:9 (Desktop) y Card Visual 2-en-1 (Mobile)
 * =========================================================================
 */

:root {
  --ts-yellow: #FFB703;
  --ts-navy: #0B1A30;
  --ts-navy-dark: #071222;
  --ts-white: #FFFFFF;
  --ts-gray-text: #CBD5E1;
  --ts-radius: 14px;
  --ts-btn-radius: 6px;
  --ts-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ts-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Contenedor wrapper */
.techo-seguro-banner-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 1. ESTRUCTURA PRINCIPAL DEL HERO BANNER (Desktop) */
.techo-seguro-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  border-radius: var(--ts-radius);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(11, 26, 48, 0.4), 0 4px 16px rgba(0, 0, 0, 0.12);
  background-color: var(--ts-navy);
  background-image: url('img/banner-techo-seguro.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 183, 3, 0.15);
}

/* En Desktop, el elemento visual dedicado se oculta ya que se usa el background-image */
.techo-seguro-hero__visual {
  display: none;
}

/* Gradiente overlay optimizado: solo cubre el 42% izquierdo donde va el texto.
   Deja el 58% derecho (donde están las fotos del techo y los operarios) 100% visible, nítido y brillante */
.techo-seguro-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 26, 48, 0.98) 0%,
    rgba(11, 26, 48, 0.95) 38%,
    rgba(11, 26, 48, 0.70) 48%,
    rgba(11, 26, 48, 0.15) 60%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}

/* 2. CONTENIDO DE TEXTO COMERCIAL (Desktop: 45% - 48% de ancho) */
.techo-seguro-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 48%;
  padding: clamp(24px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
}

/* Tag / Kicker superior */
.techo-seguro-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ts-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ts-yellow);
  margin-bottom: 14px;
  line-height: 1.2;
}

.techo-seguro-hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ts-yellow);
  box-shadow: 0 0 8px var(--ts-yellow);
  display: inline-block;
}

/* Titular principal (H1/H2) */
.techo-seguro-hero__title {
  font-family: var(--ts-font-heading);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 800;
  color: var(--ts-white);
  line-height: 1.22;
  margin: 0 0 16px 0;
  text-wrap: balance;
}

/* Bajada / Párrafo descriptivo */
.techo-seguro-hero__paragraph {
  font-family: var(--ts-font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ts-gray-text);
  margin: 0 0 20px 0;
  max-width: 480px;
  text-wrap: pretty;
}

/* Beneficios destacados con check */
.techo-seguro-hero__highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  font-family: var(--ts-font-body);
  color: #E2E8F0;
  font-weight: 600;
}

.techo-seguro-hero__highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.techo-seguro-hero__highlights i {
  color: #10B981;
  font-size: 14px;
}

/* Fila de acciones (Botón principal + Botón WhatsApp) */
.techo-seguro-hero__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

/* 3. BOTÓN CTA PRINCIPAL */
.techo-seguro-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--ts-yellow);
  color: var(--ts-navy);
  font-family: var(--ts-font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--ts-btn-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease-in-out;
}

.techo-seguro-hero__cta:hover {
  background-color: var(--ts-yellow);
  color: var(--ts-navy);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 183, 3, 0.65), 0 8px 20px rgba(11, 26, 48, 0.35);
  filter: brightness(1.05);
}

.techo-seguro-hero__cta:active {
  transform: translateY(0);
}

.techo-seguro-hero__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.techo-seguro-hero__cta:hover .techo-seguro-hero__cta-arrow {
  transform: translateX(4px);
}

/* Botón secundario directo a WhatsApp */
.techo-seguro-hero__btn-wsp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  font-family: var(--ts-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--ts-btn-radius);
  transition: all 0.2s ease;
}

.techo-seguro-hero__btn-wsp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* =========================================================================
   4. COMPORTAMIENTO RESPONSIVO MÓVIL (<= 768px):
   ESTRUCTURA 2-EN-1 DE ALTA CONVERSIÓN
   - Arriba: 2 tarjetas fotográficas lado a lado (50% y 50%) con separación amarilla de 6px.
   - Abajo: Contenido comercial con contraste óptimo y botones CTA apilados.
   ========================================================================= */
@media (max-width: 768px) {
  .techo-seguro-hero {
    aspect-ratio: auto;
    min-height: auto;
    background-image: none !important;
    background-color: var(--ts-navy);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 183, 3, 0.25);
  }

  /* Ocultar overlay de desktop en móvil */
  .techo-seguro-hero__overlay {
    display: none;
  }

  /* ZONA VISUAL EN MÓVIL: 2 TARJETAS FOTOGRÁFICAS LADO A LADO (50% / 50%) */
  .techo-seguro-hero__visual {
    display: flex !important;
    gap: 6px;
    width: 100%;
    height: 250px; /* Altura fija visible de 240px a 260px */
    padding: 6px 6px 0 6px;
    background: #FFB703; /* Separación sutil de 6px en amarillo #FFB703 */
    box-sizing: border-box;
    overflow: hidden;
  }

  .techo-seguro-hero__card {
    position: relative;
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    border-radius: 8px; /* Esquinas redondeadas 8px */
    overflow: hidden;
    background: #0B1A30;
  }

  .techo-seguro-hero__card-img,
  .techo-seguro-hero__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Encuadre centrado sin deformaciones */
    display: block;
  }

  /* Etiquetas flotantes inferiores sobre cada tarjeta */
  .techo-seguro-hero__card-badge,
  .techo-seguro-hero__card .ts-work-badge {
    position: absolute;
    bottom: 8px;
    left: 6px;
    right: 6px;
    background: rgba(11, 26, 48, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-family: var(--ts-font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 183, 3, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    text-align: center;
  }

  .techo-seguro-hero__card-badge i,
  .techo-seguro-hero__card .ts-work-badge i {
    color: var(--ts-yellow);
    font-size: 11px;
  }

  /* ZONA DE CONTENIDO Y OFERTA EN MÓVIL */
  .techo-seguro-hero__content {
    max-width: 100%;
    width: 100%;
    padding: 20px 18px; /* Padding reducido a 20px arriba y abajo */
    background: var(--ts-navy);
    box-sizing: border-box;
  }

  .techo-seguro-hero__kicker {
    font-size: 11.5px;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  /* Titular principal reducido a 21px con interlineado compacto */
  .techo-seguro-hero__title {
    font-size: 21px; /* 20px a 22px */
    line-height: 1.25; /* Interlineado compacto */
    margin-bottom: 12px;
  }

  .techo-seguro-hero__paragraph {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  /* 3 Checks de beneficios en tamaño legible (13px) */
  .techo-seguro-hero__highlights {
    margin-bottom: 18px;
    gap: 8px;
    font-size: 13px;
  }

  .techo-seguro-hero__highlights span {
    font-size: 13px;
    line-height: 1.35;
  }

  /* Botones apilados verticalmente al 100% del ancho con padding táctil de 12px */
  .techo-seguro-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .techo-seguro-hero__cta {
    width: 100%;
    padding: 12px 18px; /* Padding cómodo de 12px para pulsación táctil con el pulgar */
    font-size: 14.5px;
    box-sizing: border-box;
    justify-content: center;
  }

  .techo-seguro-hero__btn-wsp {
    width: 100%;
    padding: 12px 18px; /* Padding cómodo de 12px para pulsación táctil con el pulgar */
    font-size: 14.5px;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* Pantallas medianas / Tablets (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .techo-seguro-hero__content {
    max-width: 55%;
    padding: 32px;
  }
  .techo-seguro-hero__title {
    font-size: 26px;
  }
}
