/* =========================================================
   ALSSA INSURANCE - Hoja de estilos profesional
   Paleta de marca (extraída del logotipo oficial):
   - Azul marino  #181B72
   - Azul noche   #10114F
   - Turquesa     #0EA4CA
   - Teal         #18CFC3
   ========================================================= */

:root {
  --azul-marino: #181B72;
  --azul-noche: #10114F;
  --turquesa: #0EA4CA;
  --teal: #18CFC3;
  --claro: #F4F9FC;
  --blanco: #ffffff;
  --texto: #2B3A55;
  --gris: #64748b;
  --sombra: 0 8px 30px rgba(16, 17, 79, .10);
  --radio: 14px;
  --transicion: .25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Segoe UI", -apple-system, Arial, Helvetica, sans-serif;
  color: var(--texto);
  line-height: 1.7;
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transicion); }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.section { padding: clamp(56px, 8vw, 90px) 0; }

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--azul-marino);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.section-sub {
  text-align: center;
  color: var(--gris);
  margin-bottom: 40px;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .4px;
  transition: all var(--transicion);
  cursor: pointer;
  border: none;
}

.btn-turquesa { background: linear-gradient(135deg, var(--turquesa), var(--teal)); color: var(--blanco); box-shadow: 0 6px 18px rgba(14, 164, 202, .35); }
.btn-turquesa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 164, 202, .45); }

.btn-marino { background: var(--azul-marino); color: var(--blanco); box-shadow: 0 6px 18px rgba(24, 27, 114, .3); }
.btn-marino:hover { background: var(--azul-noche); transform: translateY(-2px); }

.btn-whatsapp { background: #25D366; color: var(--blanco); box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: #1eb457; transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--turquesa); color: var(--turquesa); background: transparent; }
.btn-outline:hover { background: var(--turquesa); color: var(--blanco); }

.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Campos táctiles: 16px evita el zoom automático en iPhone */
input, select, textarea { font-size: 16px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  background: rgba(16, 17, 79, .97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-img {
  width: 48px; height: 48px;
  background: var(--blanco);
  border-radius: 12px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(14, 164, 202, .35);
  flex-shrink: 0;
}
.logo-img img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-alssa { font-size: 1.45rem; font-weight: 900; color: var(--blanco); letter-spacing: 2px; }
.logo-alssa span { color: var(--turquesa); }
.logo-insurance { font-size: .62rem; color: #a8c9e8; letter-spacing: 5px; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: 24px; align-items: center; }
.site-nav ul a {
  color: #dbe7f5;
  font-weight: 600;
  font-size: .94rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--turquesa); border-color: var(--turquesa); }

.btn-cotiza { padding: 10px 20px; }

.nav-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1300;
  position: relative;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--blanco); border-radius: 2px; transition: all .3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  margin-top: 76px;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; }

.slide-content { text-align: center; color: var(--blanco); }
.slide-content .eyebrow {
  display: inline-block;
  background: rgba(24, 27, 114, .55);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #e6f4fb;
}
.slide-content h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: 2px; }
.slide-content h1 span { color: var(--turquesa); }
.slide-content h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: 1px; }
.slide-content .lead {
  font-size: 1.3rem;
  margin: 18px auto 32px;
  max-width: 720px;
  color: #eaf2fb;
}

.slide-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-controls {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: none; cursor: pointer; transition: background .3s; }
.hero-dot.active { background: var(--turquesa); }

.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(16, 17, 79, .55);
  color: var(--blanco);
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: background .3s;
}
.hero-arrow:hover { background: var(--turquesa); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ===== Sección Servicios ===== */
.servicios { background: var(--claro); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--blanco);
  border: 1px solid #e6eef5;
  border-radius: var(--radio);
  padding: 0;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
  position: relative;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-img img {
  transform: scale(1.05);
}

/* Mini Carousel de servicios */
.service-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.service-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.service-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.service-slide.active { opacity: 1; }
.service-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,17,79,.3) 0%, rgba(16,17,79,.7) 100%);
  z-index: 1;
}
.service-carousel-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  background: rgba(16,17,79,.75);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.3);
}
.service-carousel-icon i {
  font-size: 1.8rem;
  color: var(--turquesa);
}
.service-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .3s;
}
.sc-dot.active { background: var(--turquesa); }

.service-card .card-body {
  padding: 24px 28px 28px;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--turquesa), var(--teal));
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(16, 17, 79, .16); }

.service-icon {
  width: 62px; height: 62px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--blanco);
  background: linear-gradient(135deg, var(--azul-marino), var(--turquesa));
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.1rem; color: var(--azul-marino); margin-bottom: 8px; }
.service-card p { color: var(--gris); font-size: .93rem; }

.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--turquesa);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  padding: 8px 0 4px;
  transition: color var(--transicion);
}
.btn-ver-mas:hover { color: var(--azul-marino); }
.btn-ver-mas i { transition: transform .3s ease; }
.service-card.open .btn-ver-mas i { transform: rotate(180deg); }

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease, padding .3s ease;
  padding: 0;
}
.service-card.open .service-details { max-height: 480px; padding-top: 14px; }

.service-features { margin-bottom: 16px; }
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--texto);
  padding: 5px 0;
}
.service-features li i { color: var(--teal); margin-top: 4px; }

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-sm { padding: 10px 16px; font-size: .85rem; }

/* ===== Banner CTA ===== */
.banner-cta {
  background: linear-gradient(120deg, var(--azul-noche), var(--azul-marino) 55%, var(--turquesa));
  color: var(--blanco);
  text-align: center;
  padding: 76px 0;
}
.banner-cta h2 { font-size: 2rem; margin-bottom: 12px; letter-spacing: 1px; }
.banner-cta p { color: #dbe7f5; margin-bottom: 28px; }
.banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Quiénes Somos ===== */
.quienes { background: var(--blanco); }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.col-text .section-title { text-align: left; }
.col-text p { margin-bottom: 16px; color: var(--texto); }
.col-text .btn { margin-top: 8px; }

.col-img {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--sombra);
}
.col-img img { width: 100%; height: 100%; object-fit: cover; }
.col-img .badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(16, 17, 79, .88);
  color: var(--blanco);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .82rem;
  border-left: 4px solid var(--turquesa);
}

/* ===== CEO / Asesor ===== */
.asesor { background: var(--claro); }

.asesor-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.asesor-foto {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 6px solid var(--blanco);
}
.asesor-foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.asesor-info h2 { font-size: 1.9rem; color: var(--azul-marino); margin-bottom: 4px; }
.asesor-info .cargo { color: var(--turquesa); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; margin-bottom: 18px; }
.asesor-info p { color: var(--texto); margin-bottom: 22px; }

.asesor-contacto { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.asesor-contacto li { display: flex; align-items: center; gap: 12px; color: var(--texto); font-weight: 600; }
.asesor-contacto i { color: var(--turquesa); width: 20px; text-align: center; }

.social-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blanco);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: transform var(--transicion);
}
.social-btn:hover { transform: translateY(-2px); color: var(--blanco); }
.social-btn.facebook { background: #1877F2; }
.social-btn.tiktok { background: #000; }
.social-btn.whatsapp { background: #25D366; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.linkedin { background: #0A66C2; }

.contact-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Testimonios / valores ===== */
.valores { background: var(--blanco); }
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.valor-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radio);
  background: var(--claro);
  border: 1px solid #e6eef5;
  transition: transform var(--transicion);
}
.valor-item:hover { transform: translateY(-4px); }
.valor-item i { font-size: 2rem; color: var(--turquesa); margin-bottom: 12px; }
.valor-item h4 { color: var(--azul-marino); margin-bottom: 6px; font-size: 1rem; }
.valor-item p { color: var(--gris); font-size: .88rem; }

/* ===== Contacto ===== */
.contacto { background: var(--claro); }

.contact-info { margin: 22px 0 26px; }
.contact-info li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 1rem; }
.contact-info i { color: var(--turquesa); margin-top: 4px; }

.contact-form {
  background: var(--blanco);
  border: 1px solid #e6eef5;
  border-radius: var(--radio);
  padding: 34px;
  box-shadow: var(--sombra);
}
.contact-form h3 { color: var(--azul-marino); margin-bottom: 6px; }
.contact-form .form-hint { color: var(--gris); font-size: .9rem; margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; color: var(--azul-marino); margin: 14px 0 6px; font-size: .88rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  background: #fbfdff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(14, 164, 202, .15);
}
.form-note { margin-top: 12px; font-weight: 600; color: #16a34a; font-size: .92rem; }

/* ===== Footer ===== */
.site-footer { background: var(--azul-noche); color: #cfe0f2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding: 60px 0;
}
.footer-brand p { margin-top: 14px; font-size: .93rem; color: #b9cde6; }
.footer-brand .logo { margin-bottom: 10px; }

.footer-col h4 { color: var(--turquesa); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 9px; font-size: .93rem; }
.footer-col a:hover { color: var(--turquesa); }
.footer-col ul li i { margin-right: 8px; color: var(--turquesa); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
  font-size: 1rem;
}
.footer-social a:hover { background: var(--turquesa); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .85rem; color: #8fa9c8; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: #8fa9c8; font-size: .85rem; transition: color var(--transicion); }
.footer-legal-links a:hover { color: var(--turquesa); }
.footer-legal { background: rgba(0, 0, 0, .15); padding: 14px 0; font-size: .8rem; color: #7a94b0; text-align: center; }

/* ===== Páginas legales ===== */
.page-legal { padding: 120px 0 60px; min-height: 60vh; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; color: var(--azul-marino); margin: 28px 0 10px; font-weight: 700; }
.legal-content p { color: var(--texto); margin-bottom: 12px; font-size: .95rem; }
.legal-content ul { margin: 8px 0 16px 20px; }
.legal-content ul li { margin-bottom: 6px; font-size: .95rem; color: var(--texto); }
.legal-content a { color: var(--turquesa); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }

/* ===== Botón flotante WhatsApp ===== */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--blanco);
  font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  z-index: 999;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); color: var(--blanco); }

/* ===== Modal de propuesta ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.modal.open { visibility: visible; opacity: 1; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 79, .65);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px 30px;
  transform: translateY(20px);
  transition: transform .35s ease;
}

.modal.open .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--claro);
  color: var(--azul-marino);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.modal-close:hover { background: #e3eef7; }

.modal-card h3 { color: var(--azul-marino); font-size: 1.4rem; margin-bottom: 6px; }
.modal-hint { color: var(--gris); font-size: .92rem; margin-bottom: 14px; }

.modal-card label { display: block; font-weight: 600; color: var(--azul-marino); margin: 14px 0 6px; font-size: .88rem; }

.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  background: #fbfdff;
}

.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  outline: none;
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(14, 164, 202, .15);
}

.modal-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

/* =========================================================
   RESPONSIVE - Móviles y tablets (prioridad: clientes)
   ========================================================= */

/* ----- Tablets / laptops pequeñas (hasta 1100px) ----- */
@media (max-width: 1100px) {
  .container { width: 92%; }
  .service-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .hero { min-height: 92vh; }
}

/* ----- Tablets (hasta 992px) ----- */
@media (max-width: 992px) {
  .two-col, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .asesor-grid { grid-template-columns: 1fr; text-align: center; }
  .asesor-foto { max-width: 300px; margin: 0 auto; }
  .asesor-contacto li { justify-content: center; }
  .social-btns { justify-content: center; }
  .col-text .section-title { text-align: center; }
  .col-img { min-height: 380px; }
  .contacto .section-sub { text-align: center; margin-left: auto; }
  .contact-info { text-align: center; }
  .contact-info li { justify-content: center; }
  .contact-btns { justify-content: center; }
  .banner-cta h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
}

/* ----- Móviles grandes / tablets pequeñas (hasta 768px) ----- */
@media (max-width: 768px) {
  .nav-toggle { display: flex !important; }

  .site-nav {
    position: fixed !important;
    display: flex !important;
    top: 76px; left: 0; right: 0;
    height: calc(100vh - 76px) !important;
    min-height: calc(100vh - 76px) !important;
    background: rgba(16, 17, 79, .97) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 24px !important;
    transform: translateX(100%) !important;
    transition: transform .35s ease !important;
    overflow: hidden !important;
    z-index: 1500 !important;
  }
  .site-nav.open { transform: translateX(0) !important; }
  .site-nav ul { display: flex !important; flex-direction: column !important; gap: 0 !important; align-items: center !important; width: 100% !important; max-width: 320px !important; padding: 0 !important; height: auto !important; list-style: none !important; }
  .site-nav ul li { display: block !important; width: 100% !important; text-align: center !important; opacity: 1 !important; visibility: visible !important; }
  .site-nav ul li a { font-size: 1.2rem !important; font-weight: 700 !important; padding: 16px 0 !important; display: block !important; width: 100% !important; color: #ffffff !important; text-decoration: none !important; letter-spacing: 1px !important; text-transform: uppercase !important; border-bottom: 1px solid rgba(255,255,255,.12) !important; transition: color .2s, padding-left .2s !important; }
  .site-nav ul li a:hover { color: var(--turquesa) !important; padding-left: 8px !important; }
  .btn-cotiza { margin-top: 28px !important; width: 100% !important; max-width: 320px !important; padding: 16px !important; font-size: 1rem !important; }

  .hero { min-height: 100svh; margin-top: 76px; }
  .slide-content { padding: 30px 0; }
  .slide-content h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); letter-spacing: 1px; }
  .slide-content h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .slide-content .lead { font-size: clamp(1rem, 4vw, 1.1rem); margin: 16px auto 26px; }
  .slide-btns { flex-direction: column; align-items: center; width: 100%; }
  .slide-btns .btn { width: 100%; max-width: 340px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }

  .banner-btns { flex-direction: column; align-items: center; }
  .banner-btns .btn { width: 100%; max-width: 340px; }

  .service-card { padding: 26px 20px; }
  .service-actions .btn { width: 100%; }
  .btn-sm { width: 100%; }

  .contact-form { padding: 26px 20px; }
  .modal-card { padding: 26px 20px; }

  .valores-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-card.open .service-details { max-height: 700px; }
  .col-img { min-height: 320px; }
}

/* ----- Móviles pequeños (hasta 480px) ----- */
@media (max-width: 480px) {
  .header-inner { height: 68px; }
  .logo-img { width: 40px; height: 40px; }
  .logo-alssa { font-size: 1.15rem; }
  .logo-insurance { letter-spacing: 3px; }
  .site-nav { top: 68px; height: calc(100svh - 68px) !important; min-height: calc(100svh - 68px) !important; z-index: 1500 !important; }

  .hero { min-height: 100svh; margin-top: 68px; }
  .slide-content .eyebrow { font-size: .68rem; padding: 5px 12px; }

  .valores-grid { grid-template-columns: 1fr; }
  .asesor-foto { max-width: 260px; }
  .social-btns .social-btn { width: 100%; justify-content: center; }
  .col-img { min-height: 240px; }
  .badge { font-size: .72rem; left: 12px; bottom: 12px; right: 12px; }

  .wa-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 18px; right: 18px; }
  .hero-arrow { display: none; }

  .footer-grid { padding: 44px 0; gap: 30px; }
}

/* ----- iPhone con navegación inferior segura ----- */
@media (display-mode: standalone), (min-height: 700px) and (max-width: 480px) {
  .wa-float { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .modal { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ----- Ajustes generales para pantallas táctiles ----- */
@media (hover: none), (pointer: coarse) {
  .btn { -webkit-tap-highlight-color: transparent; }
  .service-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* =========================================================
   ANIMACIONES DE APARICIÓN AL HACER SCROLL
   (solo se ocultan si el navegador tiene JS activo: .js)
   ========================================================= */

.js .service-card,
.js .valor-item,
.js .col-img,
.js .col-text,
.js .asesor-foto,
.js .asesor-info,
.js .contact-form,
.js .contact-info,
.js .banner-cta h2,
.js .banner-cta p,
.js .banner-btns,
.js .section-title,
.js .section-sub {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .8s ease;
}

.js .service-card.in-view,
.js .valor-item.in-view,
.js .col-img.in-view,
.js .col-text.in-view,
.js .asesor-foto.in-view,
.js .asesor-info.in-view,
.js .contact-form.in-view,
.js .contact-info.in-view,
.js .banner-cta h2.in-view,
.js .banner-cta p.in-view,
.js .banner-btns.in-view,
.js .section-title.in-view,
.js .section-sub.in-view {
  opacity: 1;
  transform: none;
}

/* Efecto escalonado en tarjetas de servicios y valores */
.js .service-card:nth-child(2) { transition-delay: .08s; }
.js .service-card:nth-child(3) { transition-delay: .16s; }
.js .service-card:nth-child(4) { transition-delay: .24s; }
.js .service-card:nth-child(5) { transition-delay: .32s; }
.js .service-card:nth-child(6) { transition-delay: .4s; }
.js .service-card:nth-child(7) { transition-delay: .48s; }
.js .service-card:nth-child(8) { transition-delay: .56s; }
.js .service-card:nth-child(9) { transition-delay: .64s; }

.js .valor-item:nth-child(2) { transition-delay: .08s; }
.js .valor-item:nth-child(3) { transition-delay: .16s; }
.js .valor-item:nth-child(4) { transition-delay: .24s; }

/* Usuarios con movimiento reducido: sin animación */
@media (prefers-reduced-motion: reduce) {
  .js .service-card,
  .js .valor-item,
  .js .col-img,
  .js .col-text,
  .js .asesor-foto,
  .js .asesor-info,
  .js .contact-form,
  .js .contact-info,
  .js .banner-cta h2,
  .js .banner-cta p,
  .js .banner-btns,
  .js .section-title,
  .js .section-sub {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   COMPATIBILIDAD CON NAVEGADORES
   ========================================================= */

/* Safari: evitar zoom en inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  font-size: 16px !important;
}

/* Safari: backdrop-filter */
@supports (-webkit-touch-callout: none) {
  .site-header {
    -webkit-backdrop-filter: blur(6px);
  }
  .modal-overlay {
    -webkit-backdrop-filter: blur(3px);
  }
}

/* Firefox: scrollbar personalizado */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--turquesa) transparent;
}

/* Chrome/Safari: scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--turquesa);
  border-radius: 4px;
}

/* iOS: evitar overscroll bounce */
html, body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* Samsung Internet: botones sin outline */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Edge/IE: fallback para grid */
@supports not (display: grid) {
  .service-grid,
  .footer-grid,
  .two-col,
  .asesor-grid {
    display: flex;
    flex-wrap: wrap;
  }
  .service-grid > *,
  .footer-grid > *,
  .two-col > *,
  .asesor-grid > * {
    flex: 1 1 300px;
  }
}
