/* =========================================================
   MENTOR BML · Blindaje Médico Legal
   Estilo Apple · CSS personalizado (complementa Tailwind CDN)
   ========================================================= */

:root {
  --gris: #8A8A8A;
  --azul: #00AEEF;
  --azul-oscuro: #0A2540;
  --negro: #000000;
  --blanco: #FFFFFF;
  --fondo: #F5F5F7;
  --texto: #1D1D1F;
  --texto-sec: #6E6E73;
  --radio: 24px;
  --sombra: 0 2px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
  --sombra-hover: 0 4px 12px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.10);
  --ease: cubic-bezier(.25,.1,.25,1);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul);
}
.titulo-xl { font-size: clamp(2.6rem, 6.5vw, 5.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.titulo-lg { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.titulo-md { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--texto-sec); }
.texto-azul { color: var(--azul); }
.texto-gradiente {
  background: linear-gradient(90deg, var(--azul-oscuro) 0%, var(--azul) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Secciones ---------- */
.seccion { padding: 110px 0; }
.seccion-gris { background: var(--fondo); }
.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 768px) { .seccion { padding: 76px 0; } }

/* ---------- Header glass ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { background: rgba(255,255,255,.86); box-shadow: 0 1px 20px rgba(0,0,0,.05); }
.header .logo img { height: 42px; width: auto; }
.nav-link {
  font-size: .86rem; color: var(--texto); opacity: .82; padding: 6px 2px;
  transition: opacity .2s, color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.activo { opacity: 1; color: var(--azul); }

/* Menú móvil */
.menu-movil {
  position: fixed; inset: 64px 0 0 0; z-index: 49;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  padding: 24px 28px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .35s var(--ease);
}
.menu-movil.abierto { opacity: 1; visibility: visible; transform: none; }
.menu-movil a.item {
  display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em;
  padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); color: var(--texto);
}
.burger { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; }
.burger:hover { background: rgba(0,0,0,.05); }

/* ---------- Botones Apple (píldora) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 980px; font-weight: 600; font-size: 1rem;
  padding: 14px 28px; line-height: 1; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s, border-color .25s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn-negro { background: var(--negro); color: var(--blanco); }
.btn-negro:hover { background: #1d1d1f; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.btn-azul { background: var(--azul); color: var(--blanco); }
.btn-azul:hover { background: #0099d6; box-shadow: 0 10px 30px rgba(0,174,239,.35); }
.btn-blanco { background: var(--blanco); color: var(--texto); border-color: #D2D2D7; }
.btn-blanco:hover { border-color: var(--gris); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.btn-block { width: 100%; }

/* ---------- Tarjetas ---------- */
.tarjeta {
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tarjeta-hover:hover { transform: translateY(-6px); box-shadow: var(--sombra-hover); }
.icono-caja {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,174,239,.14), rgba(10,37,64,.08)); color: var(--azul);
}
.icono-caja svg { width: 26px; height: 26px; stroke-width: 1.8; }
.icono-caja.oscuro { background: var(--azul-oscuro); color: var(--blanco); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: 140px; padding-bottom: 90px; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% 30%, rgba(0,174,239,.13), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(10,37,64,.06), transparent 60%),
    var(--blanco);
}
.mascota-hero {
  width: 100%; max-width: 520px; margin: 0 auto; display: block;
  filter: drop-shadow(0 30px 50px rgba(10,37,64,.18));
  animation: flotar 6s ease-in-out infinite;
}
@keyframes flotar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.halo {
  position: absolute; inset: 10% 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,.22), transparent 65%); filter: blur(10px); z-index: -1;
}

/* Barra de cifras */
.cifra-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; color: var(--azul-oscuro); line-height: 1; }
.cifra-label { font-size: .9rem; color: var(--texto-sec); margin-top: 8px; }
.divisor-v { width: 1px; background: #E5E5EA; align-self: stretch; }

/* Filosofía */
.filosofia {
  background: var(--azul-oscuro); color: var(--blanco); border-radius: 32px; position: relative; overflow: hidden;
}
.filosofia::before {
  content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,.35), transparent 65%);
}
.comillas { font-size: 9rem; line-height: .6; color: var(--azul); font-family: Georgia, serif; }
.cita { font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; }

/* Listas con check */
.lista-check li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--texto); }
.lista-check li svg { flex: none; width: 20px; height: 20px; color: var(--azul); margin-top: 2px; }

/* Píldoras / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--fondo); font-size: .85rem; font-weight: 500; color: var(--texto);
}
.chip svg { width: 15px; height: 15px; color: var(--azul); }

/* ---------- Formularios ---------- */
.campo label { display: block; font-size: .82rem; font-weight: 600; color: var(--texto-sec); margin: 0 0 6px 4px; }
.input {
  width: 100%; border-radius: 14px; border: 1.5px solid #E5E5EA; background: #FBFBFD;
  padding: 14px 16px; font-size: 1rem; color: var(--texto); outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { border-color: var(--azul); background: var(--blanco); box-shadow: 0 0 0 4px rgba(0,174,239,.15); }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A8A8A' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }

/* ---------- Triage ---------- */
.opcion-triage {
  text-align: left; width: 100%; border-radius: 18px; border: 1.5px solid #E5E5EA; background: var(--blanco);
  padding: 18px 20px; display: flex; gap: 14px; align-items: center; cursor: pointer;
  transition: all .25s var(--ease); font-weight: 500;
}
.opcion-triage:hover { border-color: var(--azul); transform: translateY(-2px); box-shadow: var(--sombra); }
.opcion-triage.sel { border-color: var(--azul); background: rgba(0,174,239,.06); }
.opcion-triage svg { width: 22px; height: 22px; color: var(--azul); flex: none; }
.barra-progreso { height: 6px; border-radius: 99px; background: #E5E5EA; overflow: hidden; }
.barra-progreso > span { display: block; height: 100%; background: var(--azul); border-radius: 99px; transition: width .4s var(--ease); }
.nivel { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .9rem; }
.nivel.alto { background: #FFE9E7; color: #C0261A; }
.nivel.medio { background: #FFF4DB; color: #A2670A; }
.nivel.bajo { background: #E3F7EC; color: #1A7F45; }

/* ---------- Testimonios ---------- */
.estrellas svg { width: 16px; height: 16px; fill: var(--azul); color: var(--azul); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--azul-oscuro); color: var(--blanco); font-weight: 700;
}

/* ---------- Carrusel Apple ---------- */
.carrusel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 22px 30px; scrollbar-width: none;
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > * { scroll-snap-align: center; flex: 0 0 auto; }
.constancia {
  width: min(78vw, 380px); aspect-ratio: 4 / 3; border-radius: var(--radio); overflow: hidden; position: relative;
  background: var(--blanco); box-shadow: var(--sombra);
}
.constancia img { width: 100%; height: 100%; object-fit: cover; }
.constancia .marco {
  position: absolute; inset: 14px; border-radius: 14px; border: 1.5px solid rgba(10,37,64,.12);
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F5F9FC 100%);
}
.btn-circulo {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.06); color: var(--texto); transition: all .2s;
}
.btn-circulo:hover { background: rgba(0,0,0,.12); transform: scale(1.06); }
.puntos button { width: 8px; height: 8px; border-radius: 99px; background: #D2D2D7; transition: all .3s; }
.puntos button.activo { width: 24px; background: var(--texto); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .25s var(--ease);
}
.whatsapp-flotante:hover { transform: scale(1.1); }
.whatsapp-flotante svg { width: 30px; height: 30px; }
.whatsapp-flotante::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: pulso 2.2s ease-out infinite;
}
@keyframes pulso { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones al hacer scroll ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mascota-hero, .whatsapp-flotante::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.footer { background: var(--fondo); color: var(--texto-sec); font-size: .86rem; }
.footer a:hover { color: var(--azul); }
.footer .logo img { height: 52px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); z-index: 70;
  background: rgba(29,29,31,.92); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: all .35s var(--ease);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.toast.mostrar { opacity: 1; transform: translateX(-50%); }

/* Page hero (internas) */
.page-hero {
  padding-top: 150px; padding-bottom: 80px; text-align: center;
  background: radial-gradient(900px 400px at 50% 0%, rgba(0,174,239,.12), transparent 70%), var(--blanco);
}
.numero-servicio { font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: rgba(0,174,239,.16); }
