/* Identidad compartida del sitio comercial. Quicksand es la tipografía original. */
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cream: #f4f8fa;
  --white: #ffffff;
  --text: #123648;
  --text-soft: #355c7b;
  --text-faint: #47698a;
  --ink-900: #123648;
  --ink-800: #1a4459;
  --border: #dae6f0;
  --accent-100: #e4f1f9;
  --accent-400: #4babdb;
  --accent-500: #2c7a9e;
  --accent-600: #276a8d;
  --accent-700: #1a4a62;
  /* Naranja ARCLY: solo la acción que convierte y su señal. Texto navy encima
     (5:1); el blanco sobre #ED8C09 no pasa de 2.5:1. */
  --orange-400: #ed8c09;
  --orange-300: #f5ad48;
  --orange-600: #a85e00;
  --primary-50: #eff4f9;
  --primary-500: #3f6f93;
  --primary-600: #355c7b;
  --secondary-50: #e9f0fd;
  --secondary-500: #4076bd;
  --secondary-600: #34619f;
  --gradient-accent: linear-gradient(135deg, #2c7a9e, #123648);
  --shadow-sm: 0 14px 35px -28px rgba(23,59,75,.28);
  --shadow-lg: 0 25px 50px -32px rgba(23,59,75,.36);
  --font: "Quicksand", sans-serif;
}

html { scroll-padding-top: 92px; }
body { font-family: var(--font); color: var(--text); background: var(--cream); }
::selection { background: #bfdff0; color: #123648; }
:focus-visible { outline: 3px solid #2c7a9e; outline-offset: 4px; }
.container { max-width: 1220px; }
.reveal { opacity: 1; transform: none; transition: none; }
.eyebrow { display: none; }
.accent-word { color: #2c7a9e; background: none; -webkit-text-fill-color: currentColor; }

/* Navegación y acciones */
.header { background: rgba(244,248,250,.97); border-bottom: 1px solid var(--border); }
.header.scrolled { box-shadow: 0 8px 25px -20px rgba(23,59,75,.35); }
.brand { gap: 9px; }
.nav-links { gap: clamp(12px,1.6vw,25px); }
.nav-links a, .nav-drop-btn, .nav-actions .login { font-weight: 700; color: var(--text); }
.nav-links a:hover, .nav-drop-btn:hover, .nav-actions .login:hover { color: var(--accent-500); }
.nav-drop-menu { border: 1px solid var(--border); background: var(--white); box-shadow: 0 18px 40px -25px rgba(23,59,75,.3); }
.btn { border-radius: 999px; font-weight: 700; letter-spacing: -.01em; box-shadow: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: none; }
.btn-primary { background: var(--orange-400); color: var(--text); border-color: var(--orange-400); }
.btn-primary:hover { background: var(--orange-300); border-color: var(--orange-300); }
.btn-ghost { background: transparent; border: 1.5px solid var(--accent-600); color: var(--accent-600); }
.btn-ghost:hover { background: #e4f1f9; }
.btn-ghost-light { border: 1.5px solid #ffffff; color: #ffffff; background: transparent; }
.mobile-menu { background: var(--cream); }

/* Ritmo y titulares compartidos */
.section { padding: clamp(72px,7vw,112px) 0; }
.section-white { background: var(--white); border-color: var(--border); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head h1, .section-head h2 { font-weight: 700; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.section-head h1 { font-size: clamp(2.8rem,5vw,4.7rem); }
.section-head h2 { font-size: clamp(2.55rem,4.2vw,4rem); }
.section-head p { font-size: 1.06rem; line-height: 1.65; color: var(--text-soft); }
.section-head p + p { margin-top: 14px; }
.section-head a, .section-note a, .legal a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }
.section-note { max-width: 820px; color: var(--text-soft); }

/* Recorridos y familias de servicios */
.recorrido { gap: 18px; }
.recorrido li { padding: 16px 16px 24px; background: #eff4f9; border: 1px solid #dae6f0; border-radius: 15px; }
.recorrido img { border-radius: 8px; border: 1px solid #dae6f0; background: #fff; height: 300px; object-fit: cover; object-position: top; }
.recorrido h3 { font-size: 1.18rem; font-weight: 700; color: var(--text); }
.recorrido h3::before { display: none; }
.recorrido p { color: var(--text-soft); }
.roles-grid, .roles-grid.cols-3, .roles-grid.cols-5 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--border); }
.role-card { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 28px 28px 29px 0; background: transparent; box-shadow: none; min-height: 175px; }
.role-card:hover { transform: none; box-shadow: none; background: rgba(228,241,249,.45); }
.role-card h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.035em; color: var(--text); }
.role-card p { color: var(--text-soft); }
.role-card .r-ic { border-radius: 12px; }
.feature-card { border: 1px solid var(--border); border-radius: 16px; box-shadow: none; background: var(--white); }
.feature-card h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.feature-card p { color: var(--text-soft); }

/* Precios: comparación clara, sin destacar con sombra desproporcionada */
.pricing-grid { max-width: 1170px; gap: 16px; }
.price-card { border: 1px solid #bfdff0; border-radius: 19px; box-shadow: none; padding: 31px 26px; background: var(--white); }
.price-card.featured { border: 2px solid var(--orange-400); background: #e4f1f9; box-shadow: none; }
.price-tag { top: -16px; right: 22px; border-radius: 999px; padding: 7px 13px; background: var(--orange-400); color: var(--text); font-size: .82rem; }
.price-card h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.price-card .who, .price-card .anual { color: var(--text-soft); }
.price-card .amount strong { font-size: clamp(1.7rem,2.25vw,2.1rem); font-weight: 700; letter-spacing: -.045em; }
.price-card .amount span { white-space: nowrap; }
.price-card ul li { color: var(--text-soft); }

/* Páginas con prueba visual */
.hero { padding: clamp(58px,7vw,105px) 0 95px; }
.hero::before, .hero::after { display: none; }
.hero-grid { gap: clamp(38px,6vw,90px); }
.hero-copy h1 { font-size: clamp(3.1rem,5vw,5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy p.lead { font-size: 1.12rem; line-height: 1.6; }
.hero-note { color: var(--text-soft); }
.hero-trust { border-top: 1px solid var(--border); padding-top: 19px; }
.hero-trust svg { color: #2c7a9e; }
.hero-shot { background: #e4f1f9; border-radius: 29px; padding: 24px; }
.hero-shot img { width: min(100%,300px); height: 520px; object-fit: cover; object-position: top; margin: auto; border: 7px solid #123648; border-radius: 25px; box-shadow: 0 20px 38px -20px rgba(23,59,75,.4); }
.producto-hero { padding: 85px 0 55px; }
.producto-hero h1 { max-width: 18ch; font-size: clamp(3rem,5.4vw,5.4rem); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; }
.producto-hero p { color: var(--text-soft); }
.prod-rows { gap: 78px; }
.prod-row { gap: clamp(30px,5vw,80px); }
.prod-media { padding: 24px; background: #e4f1f9; border-radius: 26px; }
.prod-media img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 14px; box-shadow: 0 16px 32px -25px rgba(23,59,75,.3); }
.prod-text h2 { font-size: clamp(2rem,3.5vw,3.2rem); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; }
.prod-text p { color: var(--text-soft); }
.prod-note { color: var(--text-soft); }

/* Family: misma marca, voz para tutores */
.family-hero { background: #e4f1f9; padding: 95px 0 80px; }
.family-hero-grid { gap: clamp(30px,6vw,80px); }
.family-hero h1 { font-size: clamp(3rem,5vw,5.2rem); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; margin: 0 0 22px; text-wrap: balance; }
.family-hero p.lead { font-size: 1.16rem; line-height: 1.6; color: var(--text-soft); }
.family-visual { background: #bfdff0; padding: 38px; border-radius: 30px; min-height: 410px; align-items: center; }
.family-visual img { box-shadow: 0 23px 40px -27px rgba(23,59,75,.35); }
.family-grid { gap: 0; border-top: 1px solid var(--border); }
.family-card { padding: 30px 26px 34px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.family-card h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.family-card p { color: var(--text-soft); }
.family-card .f-ic { background: #e4f1f9; color: var(--accent-600); }
.family-clinicas h2 { font-size: clamp(2.5rem,4vw,3.9rem); line-height: 1.1; letter-spacing: -.04em; }

/* Ayuda, preguntas y guías */
.faq-list { max-width: 930px; }
.faq-item { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; box-shadow: none; }
.faq-q { padding: 21px 0; font-size: 1.08rem; color: var(--text); }
.faq-a p { color: var(--text-soft); }
.install-card { background: var(--white); border: 1px solid var(--border); border-radius: 17px; box-shadow: none; }
.install-card li { color: var(--text-soft); }
.soporte-dato { border-radius: 17px; background: #e4f1f9; }
.soporte-texto { color: var(--text-soft); }

/* Documentos legales: lectura serena y estructura inequívoca */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2.6rem,5vw,4.3rem); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 22px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -.025em; padding-top: 28px; border-top: 1px solid var(--border); }
.legal h3 { font-size: 1.13rem; }
.legal p, .legal li { line-height: 1.75; color: var(--text-soft); }
.legal .meta { opacity: 1; color: var(--text-faint); margin-bottom: 28px; }
.legal .aviso { background: #e4f1f9; border: 1px solid #bfdff0; border-left: 1px solid #bfdff0; border-radius: 13px; padding: 18px 22px; }
.legal strong { color: var(--text); }

/* Cierre de todas las rutas */
.cta-final { background: var(--white); }
.cta-box { background: #1a4459; border-radius: 26px; box-shadow: none; }
.cta-box::before { display: none; }
.cta-box h2 { font-size: clamp(2.6rem,4.5vw,4.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; }
.cta-box p { color: #e4f1f9; }
.cta-box .btn-primary { background: var(--orange-400); color: var(--text); border-color: var(--orange-400); }
.cta-box .btn-primary:hover { background: var(--orange-300); border-color: var(--orange-300); }
.footer { background: #123648; }
.footer-col a:hover { color: #ffffff; }

@media (max-width: 940px) {
  .hero-grid, .family-hero-grid { grid-template-columns: 1fr; }
  .hero-visual, .family-visual { order: 0; }
  .roles-grid, .roles-grid.cols-3, .roles-grid.cols-5 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-grid { max-width: 600px; }
  .prod-row, .prod-row.reverse { grid-template-columns: 1fr; }
  .prod-row.reverse .prod-media { order: 0; }
  .family-grid { grid-template-columns: repeat(2,1fr); }
  .family-hero-grid { text-align: left; }
  .family-hero p.lead { margin-left: 0; }
  .family-hero .hero-cta { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .hero, .family-hero { padding: 38px 0 70px; }
  .hero-copy h1, .family-hero h1 { font-size: clamp(2.75rem,11vw,4rem); }
  .hero-cta .btn { width: 100%; }
  .hero-shot { padding: 18px; }
  .hero-shot img { height: 400px; }
  .section { padding: 72px 0; }
  .section-head h1 { font-size: 2.8rem; }
  .section-head h2 { font-size: 2.55rem; }
  .roles-grid, .roles-grid.cols-3, .roles-grid.cols-5, .family-grid { grid-template-columns: 1fr; }
  .role-card, .family-card { min-height: auto; padding: 23px 0; }
  .price-card { padding: 30px 24px; }
  .price-card .amount strong { font-size: 1.8rem; }
  .family-visual { order: 0; min-height: 290px; padding: 24px; }
  .family-visual img { width: 155px; }
  .producto-hero { padding: 55px 0 30px; }
  .producto-hero h1 { font-size: 2.9rem; }
  .prod-rows { gap: 65px; }
  .prod-media { padding: 15px; }
  .prod-media img { width: min(100%,320px); height: 530px; margin-inline: auto; object-fit: cover; object-position: center; border-radius: 20px; }
  .legal h1 { font-size: 2.6rem; }
}
