/* ============================================================
   Seguros Ivonne Lizaldi — styles.css
   Archetype: Glassmorphism Modern, paleta morado/lila personalizada
   Mobile-first | Poppins | Sin frameworks
   ============================================================ */

/* ── Variables ── */
:root {
  --purple:      #8B5FBF;
  --purple-dark: #6B3FA0;
  --lila:        #C9A8E8;
  --magenta:     #A855C9;
  --bg:          #F2EFF5;
  --bg-white:    #FFFFFF;
  --text-dark:   #4A2E73;
  --text-body:   #5a4070;
  --text-muted:  #8a7aa0;
  --shadow-sm:   0 4px 16px rgba(139,95,191,0.10);
  --shadow-md:   0 8px 32px rgba(139,95,191,0.18);
  --shadow-lg:   0 16px 48px rgba(139,95,191,0.22);
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h:       72px;
  --grad-main:   linear-gradient(135deg, var(--purple) 0%, var(--magenta) 100%);
  --grad-light:  linear-gradient(135deg, #EDD9FA 0%, #D4B8F0 100%);
}

/* ── Reset mínimo ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ── Tipografía general ── */
h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

em { font-style: italic; color: var(--magenta); }

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.6rem;
}
/* Centrar el kicker cuando se pide text-center */
.section-kicker.text-center {
  display: block;
  text-align: center;
}

.section-title {
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.text-center { text-align: center; }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.08);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-sm  { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg  { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Scroll reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Defensive: elementos con data-split nunca se quedan invisibles */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Stagger en listas */
.trust-item:nth-child(1) { transition-delay: 0.05s; }
.trust-item:nth-child(2) { transition-delay: 0.12s; }
.trust-item:nth-child(3) { transition-delay: 0.19s; }
.trust-item:nth-child(4) { transition-delay: 0.26s; }

.servicio-card:nth-child(1) { transition-delay: 0.05s; }
.servicio-card:nth-child(2) { transition-delay: 0.12s; }
.servicio-card:nth-child(3) { transition-delay: 0.19s; }
.servicio-card:nth-child(4) { transition-delay: 0.26s; }

.testimonio-card:nth-child(1) { transition-delay: 0.05s; }
.testimonio-card:nth-child(2) { transition-delay: 0.12s; }
.testimonio-card:nth-child(3) { transition-delay: 0.19s; }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(242,239,245,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139,95,191,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Agrupa botón de idioma + CTA en desktop */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

/* Botón ES / EN */
.lang-btn {
  background: transparent;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  border-radius: 20px;
  padding: 0.28rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.lang-btn:hover,
.lang-btn:focus-visible {
  background: var(--purple);
  color: #fff;
  outline: none;
}
/* En el menú móvil */
.lang-btn--mobile {
  margin-top: 0.5rem;
  border-color: var(--purple);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 56px;
  height: 56px;
  background: var(--grad-main);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Logo imagen (reemplaza el texto IL) */
.logo-icon--img {
  background: #fff;
  border: 1.5px solid rgba(139,95,191,0.15);
  padding: 3px;
  overflow: hidden;
}
.logo-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* En el footer, fondo semitransparente claro para que el logo negro sea visible */
.logo-icon--footer-img {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.3);
}
.logo-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.3;
}
.logo-text strong { display: block; font-weight: 700; }

/* Nav desktop */
.nav-desktop {
  flex: 1;
  display: none;
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; justify-content: center; }
}
.nav-desktop ul {
  display: flex;
  gap: 0.25rem;
}
.nav-desktop a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
}
.nav-desktop a:hover {
  background: rgba(139,95,191,0.1);
  color: var(--purple);
}

/* Header actions (lang btn + CTA): solo en desktop */
.header-actions {
  display: none;
}
@media (min-width: 900px) {
  .header-actions { display: flex; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: 8px;
  transition: background var(--transition);
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--purple);
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav mobile */
/* Dropdown desde el header hacia abajo */
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 32px rgba(74,46,115,0.14);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  z-index: 199;
  animation: slideDown 0.22s ease;
  overflow: hidden;
}
.nav-mobile[hidden] { display: none !important; }

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  gap: 0.15rem;
}
.nav-mobile .mobile-link {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-mobile .mobile-link:hover,
.nav-mobile .mobile-link:active {
  background: rgba(139,95,191,0.08);
  color: var(--purple);
}
.mobile-cta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  width: 100%;
}
.nav-mobile .mobile-cta {
  flex: 1;
  justify-content: center;
  margin-top: 0;
}
.lang-btn--inline {
  flex-shrink: 0;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(160deg, #EDD9FA 0%, var(--bg) 60%);
  overflow: clip;
}
@media (min-width: 960px) {
  .hero { padding-bottom: 5rem; }
}

.hero-bg-mesh {
  position: absolute;
  inset: -30% -10% -10% -10%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(168,85,201,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(139,95,191,0.14) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.1) rotate(4deg); }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 820px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

/* Foto hero */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  order: -1;
}
@media (min-width: 820px) { .hero-photo-wrap { order: 1; } }

.hero-photo-frame {
  width: clamp(240px, 40vw, 340px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-light);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Badge decorativo */
.hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.hero-badge svg { width: 24px; height: 24px; color: var(--magenta); flex-shrink: 0; }

/* Texto hero */
.hero-content {
  flex: 1;
  text-align: center;
}
@media (min-width: 820px) { .hero-content { text-align: left; } }

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 2rem;
}
@media (min-width: 820px) { .hero-sub { margin-left: 0; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 820px) { .hero-actions { justify-content: flex-start; } }

/* Ola al pie del hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; }


/* ============================================================
   LOGOS DE ASEGURADORAS — dos filas, carrusel doble dirección
   ============================================================ */
.logos-bar {
  background: var(--bg);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(139,95,191,0.08);
  border-bottom: 1px solid rgba(139,95,191,0.08);
  overflow: hidden;
}

.logos-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.logos-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Contenedor de cada fila con fade en bordes */
.logos-track-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.logos-track-wrap:last-child { margin-bottom: 0; }

.logos-track-wrap::before,
.logos-track-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logos-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.logos-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

/* Pista base */
.logos-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding: 0.4rem 0;
}

/* Fila 1 → izquierda */
.logos-track--left {
  animation: scrollLeft 35s linear infinite;
}
/* Fila 2 → derecha (empieza desde -50% para que llegue a 0) */
.logos-track--right {
  animation: scrollRight 38s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Pausa global al hover en la sección */
@media (hover: hover) {
  .logos-bar:hover .logos-track { animation-play-state: paused; }
}

/* Ítem de lista */
.logos-track li {
  flex-shrink: 0;
}

/* Tarjeta blanca estilo app-icon */
.logo-card {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(139,95,191,0.10), 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .logo-card:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139,95,191,0.18);
  }
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Color completo, sin desaturar */
}

/* Desktop: 6 logos por fila, full-width, sin fades laterales */
@media (min-width: 900px) {
  /* Quitar los fades que crean apariencia de espacio blanco */
  .logos-track-wrap::before,
  .logos-track-wrap::after { display: none; }

  /* Gap entre tarjetas */
  .logos-track { gap: 1.25rem; }

  /* Cada tarjeta = 1/8 del viewport menos los 7 gaps intermedios */
  .logo-card {
    width:  calc((100vw - 7 * 1.25rem) / 8);
    height: calc((100vw - 7 * 1.25rem) / 8);
    border-radius: 22px;
    padding: 16px;
  }
}

/* En mobile: tarjetas un poco más pequeñas */
@media (max-width: 540px) {
  .logo-card {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    padding: 10px;
  }
  .logos-track { gap: 0.75rem; }
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--grad-main);
  padding: 2.5rem 0;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.trust-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.trust-icon svg { width: 24px; height: 24px; }

.trust-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}


/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros {
  padding: 6rem 0;
  background: var(--bg-white);
}

.nosotros-inner {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 820px) {
  .nosotros-inner {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
}

/* Visual / blob */
.nosotros-visual {
  position: relative;
  flex-shrink: 0;
  width: clamp(260px, 38vw, 360px);
  aspect-ratio: 1;
}

.nosotros-blob {
  width: 100%;
  height: 100%;
  background: var(--grad-light);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blobMorph 10s ease-in-out infinite alternate;
}

.nosotros-shield-icon {
  width: 100px;
  height: 100px;
  color: var(--purple);
  opacity: 0.55;
}

@keyframes blobMorph {
  0%   { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
  50%  { border-radius: 56% 44% 42% 58% / 60% 38% 62% 40%; }
  100% { border-radius: 48% 52% 38% 62% / 52% 60% 40% 48%; }
}

/* Stats flotantes */
.nosotros-stat {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 110px;
  line-height: 1.3;
}
.nosotros-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple);
}
.nosotros-stat span {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nosotros-stat--1 { bottom: 10%; right: -8%; }
.nosotros-stat--2 { top: 10%; left: -8%; }

/* Texto nosotros */
.nosotros-content { max-width: 52ch; }

.nosotros-text {
  margin-bottom: 1.2rem;
  color: var(--text-body);
  font-size: 1rem;
}

.nosotros-list {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.nosotros-list li {
  color: var(--text-body);
  font-size: 0.97rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  padding: 6rem 0;
  background: var(--bg);
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 540px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
}

.servicio-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(139,95,191,0.08);
}

@media (hover: hover) {
  .servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.servicio-icon {
  width: 56px;
  height: 56px;
  background: var(--grad-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}
.servicio-icon svg { width: 26px; height: 26px; }

.servicio-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.servicio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

.servicio-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--magenta);
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.servicio-cta svg { width: 16px; height: 16px; }
.servicio-cta:hover { gap: 0.6rem; color: var(--purple-dark); }


/* ============================================================
   COTIZACIÓN
   ============================================================ */
.cotiza {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(140deg, var(--purple-dark) 0%, var(--magenta) 100%);
  overflow: clip;
}

.cotiza-bg-mesh {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 55% at 80% 20%, rgba(255,255,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.cotiza-form-wrap {
  max-width: 640px;
  margin-inline: auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  /* Fallback si backdrop-filter no está disponible */
  background: rgba(255,255,255,0.12);
}
@supports (backdrop-filter: blur(16px)) {
  .cotiza-form-wrap { background: rgba(255,255,255,0.10); }
}

.cotiza-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.required { color: #ffb3e8; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  appearance: none;
}

.form-group input::placeholder { color: rgba(255,255,255,0.5); }
.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.22);
}

.form-group input.error,
.form-group select.error {
  border-color: #ffb3b3;
}

/* Select con ícono */
.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  padding-right: 2.5rem;
  cursor: pointer;
}
.select-wrap select option {
  background: var(--purple-dark);
  color: #fff;
}
.select-arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}

.field-error {
  font-size: 0.78rem;
  color: #ffb3b3;
  font-weight: 500;
  min-height: 1rem;
}

/* Nota debajo del botón */
.form-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.25rem;
  text-align: center;
  justify-content: center;
}
.form-note svg { width: 14px; height: 14px; flex-shrink: 0; }


/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios {
  padding: 6rem 0;
  background: var(--bg-white);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 540px) {
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .testimonios-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonio-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(139,95,191,0.10);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
  .testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

.testimonio-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.testimonio-quote {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonio-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonio-autor strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.testimonio-autor span {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 2fr 1.2fr 1.8fr; }
}

.footer-col--brand {}

.logo--footer .logo-icon {
  background: #fff;
  color: #fff;
}
.logo--footer .logo-text { color: #fff; }

.footer-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1rem;
  max-width: 34ch;
  line-height: 1.7;
}

/* Social links */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
@media (hover: hover) {
  .social-link:hover {
    background: var(--magenta);
    color: #fff;
    transform: translateY(-2px);
    border-color: transparent;
  }
}

/* Footer nav */
.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-col--nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col--nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col--nav a:hover { color: var(--lila); }

/* Contact list */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--lila);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.contact-list a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.contact-list a:hover { color: var(--lila); }
.contact-list address { color: rgba(255,255,255,0.65); }

/* Footer bottom */
.footer-bottom {
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy, .footer-credit {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}


/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* Pulse ring decorativo */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}


/* ============================================================
   HERO PHOTO PLACEHOLDER (SVG inline)
   ============================================================ */
/* Asegura el aspect ratio cuando la foto real esté */
.hero-photo-frame img { display: block; }


/* ============================================================
   UTILIDADES DE ACCESIBILIDAD
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Body con pt para el header fijo */
body { padding-top: 0; }
.hero { scroll-margin-top: 0; }
section[id] { scroll-margin-top: var(--nav-h); }


/* ============================================================
   BOTÓN FLOTANTE PROMOCIONES + MODAL
   ============================================================ */

/* Botón flotante */
.promo-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.25rem;
  background: var(--grad-main);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(139,95,191,0.35);
  z-index: 190;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: promoPulse 2.5s infinite;
}
.promo-float:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,95,191,0.45); }

@keyframes promoPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(139,95,191,0.35); }
  50%       { box-shadow: 0 4px 28px rgba(168,85,201,0.55); }
}

/* Overlay */
.promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74,46,115,0.45);
  backdrop-filter: blur(3px);
  z-index: 299;
}
.promo-overlay[hidden] { display: none !important; }

/* Modal wrapper centrador */
.promo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}
.promo-modal[hidden] { display: none !important; }

/* Tarjeta del modal */
.promo-modal-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90svh;
  overflow-y: auto;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: none; }
}

/* Botón cerrar */
.promo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 50%;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.promo-modal-close:hover { background: rgba(139,95,191,0.1); color: var(--purple); }

/* Título */
.promo-modal-inner h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
  line-height: 1.4;
}

/* Lista de promociones */
.promo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.promo-list li {
  font-size: 0.95rem;
  color: var(--text-body);
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--purple);
  line-height: 1.55;
}
.promo-list li em {
  color: var(--magenta);
  font-style: normal;
  font-weight: 700;
}

/* CTA dentro del modal */
.promo-cta {
  width: 100%;
  justify-content: center;
  display: flex;
}
