/* ---------- Botones ---------- */
.btn {
  --_bg: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: .98rem; line-height: 1; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform var(--duration-short) var(--ease-emphasis), box-shadow var(--duration-short), background-color var(--duration-short), border-color var(--duration-short), color var(--duration-short);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn__arrow { transition: transform var(--duration-short) var(--ease-emphasis); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; transform: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: 0 30px; }
.btn--primary { color: #fff; background: linear-gradient(100deg, #0a2f49 0%, #0a3552 55%, #a9783a 135%); box-shadow: 0 8px 20px rgba(9, 40, 62, .28); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(9, 40, 62, .34); background: linear-gradient(100deg, #0a2f49 0%, #0d4062 50%, #c59145 130%); }
.btn--ghost { color: var(--brand-navy); border-color: rgba(9, 40, 62, .35); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { background: #fff; border-color: var(--brand-navy); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--light { color: var(--brand-navy); background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* Barrido diagonal en hover: línea de 2px gris claro inclinada 30°, con extremos que se funden a transparente y un halo tenue (blur).
   Un tile de 44px recorre el botón de izquierda a derecha vía background-position (sin medir anchos ni animar layout). */
.btn, .hero-card__cta { --sweep: rgba(222, 228, 234, .25); --sweep-glow: rgba(255, 255, 255, .06); position: relative; }
.btn--ghost, .btn--light { --sweep: rgba(128, 142, 156, .25); --sweep-glow: rgba(9, 40, 62, .03); } /* fondos claros: un gris más oscuro para que se lea */
.btn::before, .hero-card__cta::before {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(120deg, transparent calc(50% - 1px), var(--sweep) calc(50% - 1px), var(--sweep) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(120deg, transparent calc(50% - 7px), var(--sweep-glow) 50%, transparent calc(50% + 7px));
  background-size: 44px 100%; background-repeat: no-repeat; background-position: -44px 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}
.btn:hover::before, .btn:focus-visible::before, .hero-card:hover .hero-card__cta::before, .hero-card__cta:focus-visible::before {
  animation: btn-sweep 650ms cubic-bezier(.45, .05, .35, 1) 1; /* curva pareja: un barrido de brillo no debe frenar en seco como el expo-out */
}
@keyframes btn-sweep { from { background-position: -44px 0; } to { background-position: calc(100% + 44px) 0; } }
.btn[disabled]::before, .btn[aria-disabled="true"]::before { animation: none; }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--brand-navy); transition: background-color var(--duration-short), transform var(--duration-short); }
.icon-btn:hover { background: rgba(9, 40, 62, .08); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 22px; height: 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: .95rem; color: var(--brand-blue); }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform var(--duration-short) var(--ease-emphasis); }
.link-arrow:hover .icon, .link-arrow:focus-visible .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.chip-demo { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--brand-amber-soft); color: #7a5319; border: 1px solid rgba(212, 164, 89, .5); width: fit-content; }
.impact .chip-demo { background: rgba(212, 164, 89, .18); color: #f2d9ab; border-color: rgba(212, 164, 89, .5); }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--brand-blue); color: #fff; }

/* ---------- Header / navegación ---------- */
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.nav-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(6, 29, 44, .55); opacity: 0; visibility: hidden; transition: opacity var(--duration-medium) var(--ease-emphasis), visibility 0s linear var(--duration-medium); }
.primary-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(86vw, 360px); padding: 84px 24px 28px; display: flex; flex-direction: column; gap: 24px;
  background: linear-gradient(170deg, var(--brand-navy), var(--brand-deep)); color: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--duration-medium) var(--ease-emphasis), visibility 0s linear var(--duration-medium);
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-open .primary-nav { transform: none; visibility: visible; transition-delay: 0s; }
.nav-open .nav-toggle { position: relative; z-index: 71; color: #fff; }
.nav-open .nav-toggle:hover { background: rgba(255, 255, 255, .12); }
.primary-nav__list { display: grid; }
.primary-nav__list a { display: flex; align-items: center; min-height: 52px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative; }
.primary-nav__list a[aria-current="true"] { color: var(--brand-amber); }
.primary-nav__tools { display: grid; gap: 12px; }
.primary-nav__search, .primary-nav__divider { display: none; }
.primary-nav .btn--primary { width: 100%; background: #fff; color: var(--brand-navy); box-shadow: none; }

/* ---------- Hero card + phone ---------- */
.hero-card-wrap { width: min(100%, 340px); }
/* Vidrio esmerilado: backdrop-filter va en el propio .hero-card (su filter/opacity de scroll no le quita el desenfoque). */
.hero-card {
  position: relative; display: grid; gap: 18px; padding: 20px 18px 18px; overflow: hidden; isolation: isolate;
  border-radius: 28px; color: var(--text-primary);
  background: linear-gradient(160deg, rgba(240, 246, 251, .62) 0%, rgba(214, 228, 240, .5) 55%, rgba(226, 236, 245, .58) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 56px rgba(6, 29, 44, .32), inset 0 1px 0 rgba(255, 255, 255, .75);
  transform: translate3d(0, var(--cs-y, 0px), 0); opacity: var(--cs-o, 1); filter: blur(var(--cs-b, 0px)); will-change: transform, opacity, filter;
}
/* Resplandor suave detrás del teléfono, como en la referencia */
.hero-card::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 34%; width: 120%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); pointer-events: none;
}
.hero-card__top { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding-inline: 4px; }
.hero-card__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--brand-blue);
  background: linear-gradient(145deg, rgba(255, 255, 255, .85), rgba(190, 216, 232, .75)); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 6px 16px rgba(9, 40, 62, .14);
}
.hero-card__icon .icon { width: 24px; height: 24px; }
.hero-card__divider { width: 1px; height: 46px; background: rgba(9, 40, 62, .28); }
.hero-card__text { display: grid; line-height: 1.2; gap: 3px; }
.hero-card__text strong { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--brand-navy); }
.hero-card__text span { font-size: .9rem; color: var(--text-secondary); }

/* Teléfono: bisel oscuro, isla dinámica y pantalla blanca; su base queda tapada por el CTA. */
.hero-phone {
  position: relative; justify-self: center; width: 68%; margin-bottom: -46px; padding: 7px; border-radius: 38px; background: linear-gradient(160deg, #1b2530, #0a1017 60%);
  box-shadow: 0 0 0 1.5px #3a4a58 inset, 0 22px 40px rgba(6, 29, 44, .34), 0 0 0 1px rgba(255, 255, 255, .06);
}
.hero-phone__island { position: absolute; z-index: 2; left: 50%; top: 15px; width: 34%; height: 15px; transform: translateX(-50%); border-radius: 999px; background: #06090d; }
.hero-phone__screen { display: grid; gap: 8px; align-content: start; padding: 38px 14px 54px; min-height: 250px; border-radius: 31px; background: #fff; }
.hero-phone__logo { height: 28px; width: auto; justify-self: start; margin-block: 2px 4px; }
.hero-phone__list { display: grid; }
.hero-phone__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border-soft); font-size: .78rem; font-weight: 600; line-height: 1.25; }
.hero-phone__row .icon { width: 18px; height: 18px; color: var(--brand-navy); }
.hero-phone__row .icon--chev { width: 14px; height: 14px; color: #8aa0ad; }

.hero-card__cta {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 22px;
  border-radius: 999px; color: #fff; font-weight: 600; font-size: .98rem; background: linear-gradient(180deg, #123a58, var(--brand-navy));
  box-shadow: 0 12px 26px rgba(9, 40, 62, .38), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform var(--duration-short) var(--ease-emphasis), box-shadow var(--duration-short);
}
/* Toda la tarjeta es clickeable: el CTA extiende su área, sin anidar botones. */
.hero-card__cta::after { content: ''; position: absolute; inset: -400px -40px -40px; }
.hero-card__cta .icon { transition: transform var(--duration-short) var(--ease-emphasis); }
.hero-card:hover .hero-card__cta { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(9, 40, 62, .45), inset 0 1px 0 rgba(255, 255, 255, .14); }
.hero-card:hover .hero-card__cta .icon { transform: translateX(3px); }
.phone { display: block; width: 100%; padding: 8px 8px 0; background: #0b1a25; border-radius: 34px 34px 0 0; box-shadow: 0 0 0 2px #26394a inset; }
.phone__screen { display: grid; gap: 10px; align-content: start; padding: 14px 14px 18px; background: #fff; border-radius: 28px 28px 0 0; min-height: 200px; color: var(--text-primary); }
.phone__bar { justify-self: center; width: 70px; height: 18px; border-radius: 999px; background: #0b1a25; }
.phone__logo { height: 26px; width: auto; justify-self: start; margin-block: 4px 2px; }
.phone__list { display: grid; gap: 4px; }
.phone__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--border-soft); font-size: .76rem; font-weight: 600; }
.phone__row .icon { width: 18px; height: 18px; color: var(--brand-blue); }
.phone__row .icon--chev { width: 14px; height: 14px; color: #8aa0ad; }
.phone--app { width: 250px; border-radius: 38px; padding: 9px; box-shadow: 0 0 0 2px #26394a inset, 0 30px 60px rgba(0, 0, 0, .4); }
.phone--app .phone__screen { border-radius: 30px; min-height: 380px; }

/* ---------- Banda de valor ---------- */
.value-item { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 12px; border-radius: var(--radius-md); font-weight: 500; font-size: .98rem; line-height: 1.25; transition: background-color var(--duration-short); }
.value-item:hover { background: rgba(255, 255, 255, .08); }
.value-item__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #cfe6f3; }
.value-item__icon .icon { width: 24px; height: 24px; }
/* Tooltip de la banda (solo ≥ 768 px: en mobile la banda es un carrusel con overflow y lo recortaría). */
.has-tip { position: relative; }
.tip { display: none; }
@media (min-width: 768px) {
  .tip {
    display: block; position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 250px;
    padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--brand-navy); font-size: .85rem; font-weight: 500; line-height: 1.35; text-align: center;
    box-shadow: 0 12px 32px rgba(6, 29, 44, .28); pointer-events: none;
    opacity: 0; transform: translate(-50%, 6px); transition: opacity var(--duration-short) var(--ease-emphasis), transform var(--duration-short) var(--ease-emphasis);
  }
  .tip::after { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; background: #fff; transform: translate(-50%, -5px) rotate(45deg); }
  .has-tip:hover .tip, .has-tip:focus-within .tip { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Recursos ---------- */
.resource-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; height: 100%; padding: 16px;
  background: var(--surface-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: 0 2px 8px rgba(9, 40, 62, .04);
  transition: transform var(--duration-medium) var(--ease-emphasis), box-shadow var(--duration-medium), border-color var(--duration-medium);
}
.resource-card:hover, .resource-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(10, 91, 137, .35); }
.resource-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; transition: transform var(--duration-medium) var(--ease-emphasis); }
.resource-card__icon .icon { width: 24px; height: 24px; }
.resource-card__icon--blue { background: var(--brand-sky); color: var(--brand-blue); }
.resource-card__icon--amber { background: var(--brand-amber-soft); color: #a9742a; }
.resource-card__body p { margin-top: 4px; font-size: .9rem; color: var(--text-secondary); line-height: 1.45; }
.resource-card__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-navy); background: var(--surface-soft); transition: transform var(--duration-medium) var(--ease-emphasis), background-color var(--duration-short), color var(--duration-short); }
.resource-card__go .icon { width: 16px; height: 16px; }
.resource-card:hover .resource-card__go, .resource-card:focus-within .resource-card__go { transform: translateX(2px); background: var(--brand-navy); color: #fff; }
.resource-card:hover .resource-card__icon, .resource-card:focus-within .resource-card__icon { transform: translateX(2px) scale(1.04); }
.stretched { text-align: left; font: inherit; color: inherit; letter-spacing: inherit; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.news-card .stretched:focus-visible::after, .resource-card .stretched:focus-visible::after { border-radius: var(--radius-md); }

/* ---------- Sobre ---------- */
.about__figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); isolation: isolate; aspect-ratio: 4 / 3.2; }
.about__frame { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.about__figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 29, 44, .82) 0%, rgba(6, 29, 44, .2) 45%, transparent 70%); }
.about__caption { position: absolute; left: 22px; bottom: 18px; z-index: 2; color: #fff; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.axes > li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.axes__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-soft); color: var(--brand-blue); border: 1px solid var(--border-soft); }
.axes h3 { font-size: .98rem; font-weight: 700; line-height: 1.3; }
.axes p { font-size: .88rem; color: var(--text-secondary); line-height: 1.45; margin-top: 2px; }

/* ---------- Indicadores ---------- */
.impact__list > li { display: flex; align-items: center; gap: 16px; }
.impact__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #cfe6f3; }
.impact__icon .icon { width: 26px; height: 26px; }
.impact__list strong { display: block; font-size: 1.1rem; line-height: 1.25; font-weight: 700; }
.impact__list li > div > span { display: block; font-size: .85rem; color: var(--text-inverse-soft); line-height: 1.4; }
.impact__list .chip-demo { margin-top: 6px; }
.impact__value { display: block; font-size: 1.7rem; letter-spacing: -.03em; }
.impact__value:empty { display: none; }

/* ---------- Novedades ---------- */
.news-card { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(9, 40, 62, .04); transition: transform var(--duration-medium) var(--ease-emphasis), box-shadow var(--duration-medium); }
.news-card:hover, .news-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-long) var(--ease-emphasis); }
.news-card:hover .news-card__media img, .news-card:focus-within .news-card__media img { transform: scale(1.035); }
.news-card__media .tag { position: absolute; left: 10px; top: 10px; }
.news-card__date { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .92); font-size: .74rem; font-weight: 600; color: var(--text-secondary); }
.news-card__body { display: grid; gap: 8px; align-content: start; padding: 16px; }
.news-card__body p { font-size: .9rem; color: var(--text-secondary); line-height: 1.5; }
.news-card__more { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.news-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--brand-blue); }
.news-card__link .icon { width: 1em; height: 1em; transition: transform var(--duration-short) var(--ease-emphasis); }
.news-card:hover .news-card__link .icon, .news-card:focus-within .news-card__link .icon { transform: translateX(4px); }


/* ---------- Footer ---------- */
.footer__col h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 4px; }
.footer__col a, .footer__col button.link { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-inverse-soft); font-size: .92rem; transition: color var(--duration-short); }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-inverse-soft); font-size: .92rem; padding-block: 5px; }
.footer__contact .icon { margin-top: 2px; color: #fff; }
.footer__contact a { display: inline; min-height: 0; color: inherit; font-size: inherit; }
.footer__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__social { display: flex !important; gap: 8px !important; margin-top: 10px; }
.footer__social button, .footer__col .footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background-color var(--duration-short); }
.footer__social button:hover, .footer__col .footer__social a:hover { background: rgba(255, 255, 255, .16); }
.footer__legal button { min-height: 44px; color: var(--text-inverse-soft); }
.footer__legal button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--brand-navy); box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(12px); transition: opacity var(--duration-medium), transform var(--duration-medium) var(--ease-emphasis); }
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--brand-blue); }

/* ---------- Toast ---------- */
.toast { pointer-events: auto; padding: 12px 16px; border-radius: var(--radius-md); background: var(--brand-navy); color: #fff; font-size: .92rem; box-shadow: var(--shadow-lift); animation: toast-in var(--duration-medium) var(--ease-emphasis); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Diálogos ---------- */
.modal { width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--text-primary); box-shadow: 0 40px 90px rgba(6, 29, 44, .45); overflow: hidden; }
.modal[open] { display: flex; flex-direction: column; animation: modal-in var(--duration-medium) var(--ease-emphasis); }
.modal::backdrop { background: rgba(6, 29, 44, .62); }
.modal[open]::backdrop { animation: fade-in var(--duration-medium) ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 14px 24px; border-bottom: 1px solid var(--border-soft); }
.modal__head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.modal__head h2:focus { outline: none; }
.modal__head .eyebrow:empty { display: none; }
.modal__head .eyebrow { margin-bottom: 4px; }
.modal__body { padding: 20px 24px 26px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.modal__body p { color: var(--text-secondary); line-height: 1.6; }
.modal__body h3 { font-size: 1.05rem; font-weight: 700; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-amber-soft); border: 1px solid rgba(212, 164, 89, .5); font-size: .88rem; color: #5c3f10; line-height: 1.5; }
.notice .icon { margin-top: 2px; }
.notice--ok { background: #e6f4ee; border-color: #9ed3b9; color: #0f4b32; }
.item-list { display: grid; gap: 10px; }
.item { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--surface); }
.item h3 { font-size: 1rem; }
.item p { font-size: .9rem; }
.item__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--text-secondary); }
details.item summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 28px; list-style: none; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--brand-blue); }
details.item[open] summary::after { content: '–'; }
details.item[open] summary { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border-soft); background: #fff; font-weight: 600; font-size: .88rem; transition: background-color var(--duration-short), color var(--duration-short), border-color var(--duration-short); }
.chip:hover { border-color: var(--brand-blue); }
.chip[aria-pressed="true"] { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.mini-btn { justify-self: start; }

/* Búsqueda */
.search { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }
.search input, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid rgba(9, 40, 62, .28); background: #fff; font-size: 1rem; }
.search input { padding-left: 46px; border-radius: 999px; }
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(31, 123, 176, .35); border-color: var(--brand-blue); }
.search__status { min-height: 1.4em; font-size: .88rem; color: var(--text-secondary); }
.search__results { display: grid; gap: 8px; }
.search__results button { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--surface); text-align: left; transition: border-color var(--duration-short), background-color var(--duration-short); }
.search__results button:hover { border-color: var(--brand-blue); background: #fff; }
.search__results strong { font-size: .98rem; }
.search__results small { grid-column: 1; color: var(--text-secondary); font-size: .82rem; }
.search__results .tag { grid-column: 2; grid-row: 1 / span 2; background: var(--brand-sky); color: var(--brand-navy); }

/* Formularios */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field textarea { min-height: 120px; padding: 12px 16px; resize: vertical; }
.field__help { font-size: .8rem; color: var(--text-secondary); }
.field__error { font-size: .84rem; color: #a3261e; font-weight: 600; }
.field [aria-invalid="true"] { border-color: #a3261e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-secondary); }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand-navy); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Vistas de bienestar */
.moods { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mood { min-height: 56px; padding: 10px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--border-soft); background: #fff; font-weight: 700; transition: border-color var(--duration-short), background-color var(--duration-short), transform var(--duration-short) var(--ease-emphasis); }
.mood:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.mood[aria-pressed="true"] { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.breath-wrap { display: grid; gap: 14px; justify-items: center; padding: 10px 0; }
.breath { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5ea9d2, var(--brand-blue) 70%); color: #fff; font-weight: 700; font-size: 1.1rem; text-align: center; transform: scale(.7); transition: transform 4s ease-in-out; box-shadow: 0 16px 40px rgba(10, 91, 137, .35); }
.breath.is-big { transform: scale(1); }
.breath--static { transform: none !important; transition: none; }

.app-demo { display: grid; gap: 14px; justify-items: center; }
.app-demo .phone { width: min(100%, 280px); border-radius: 36px; padding: 9px; }
.app-demo .phone__screen { border-radius: 28px; padding-bottom: 20px; }
.app-demo .phone__row { width: 100%; text-align: left; min-height: 44px; background: none; }
.app-demo .phone__row:hover { background: var(--surface-soft); border-radius: 8px; }
.timeline { display: grid; gap: 12px; border-left: 2px solid var(--border-soft); padding-left: 16px; }
.timeline li { position: relative; font-size: .92rem; color: var(--text-secondary); }
.timeline li::before { content: ''; position: absolute; left: -22px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-blue); }
.modal-figure { margin: -4px 0 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 7; }
.modal-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
