/* CalmaLink · Estudiantes Home page. Calm, inviting motion: floating tickets, cards that rise in, a path that draws itself,
   a week that lights up, documents that tick themselves off, steps that connect. Scoped with the eh- prefix. */
.eh {
  --eh-navy: #16354B; --eh-deep: #0a1e33; --eh-teal: #167E79; --eh-mint: #9fe3c9; --eh-amber: #f2c35a;
  --eh-muted: #4b5d72; --eh-line: #dbe5ee; --eh-paper: #f6f9fb; --eh-mintbg: #e8f5ef; --eh-white: #fff;
  color: var(--eh-navy);
}
.eh, .eh *, .eh *::before, .eh *::after { box-sizing: border-box; }
.eh [hidden] { display: none !important; }
.eh p { margin: 0; }
.eh h1, .eh h2, .eh h3 { margin: 0; text-wrap: balance; }
.eh-c { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.eh-sec { padding-block: clamp(56px, 8vw, 96px); }
.eh-tint { background: var(--eh-paper); }
.eh-dark { background: radial-gradient(70% 90% at 70% 40%, #1e4b74 0%, #11314f 55%, var(--eh-deep) 100%); color: #fff; }
.eh-eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--eh-teal); }
.eh-dark .eh-eyebrow { color: var(--eh-mint); }
.eh-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: clamp(24px, 3vw, 36px); }
.eh-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; }
.eh-head p:not(.eh-eyebrow) { color: var(--eh-muted); font-size: 1.06rem; max-width: 62ch; }
.eh-fine { font-size: .82rem; color: var(--eh-muted); }
.eh-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.eh-rv.in { opacity: 1; transform: none; }
.eh-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.eh-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 13px 18px; font-weight: 800; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease; }
.eh-btn.eh-amber { background: var(--eh-amber); color: var(--eh-navy); }
.eh-btn.eh-amber:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242, 195, 90, .4); }
.eh-btn.eh-line { background: var(--eh-white); color: var(--eh-navy); border-color: var(--eh-line); }
.eh-btn:focus-visible, .eh a:focus-visible, .eh summary:focus-visible { outline: 3px solid var(--eh-amber); outline-offset: 3px; }

/* 1 · hero with floating tickets */
.eh-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 7vw, 90px); background: radial-gradient(60% 80% at 85% 30%, #fff3d6 0%, rgba(255, 243, 214, 0) 60%), linear-gradient(135deg, #eaf6f0, #eef4fb); }
.eh-herogrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.eh-crumb { font-size: .82rem; color: var(--eh-muted); margin-bottom: 16px; }
.eh-crumb a { color: inherit; }
.eh-hero h1 { margin-top: 10px; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.03; font-weight: 800; letter-spacing: -.03em; }
.eh-hero h1 em { font-style: normal; color: var(--eh-teal); }
.eh-lead { margin-top: 16px !important; color: var(--eh-muted); font-size: 1.1rem; max-width: 58ch; }
.eh-hero .eh-btns { margin-top: 24px; }
.eh-stack { display: grid; gap: 14px; }
.eh-ticket { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(11, 23, 38, .1); opacity: 0; animation: eh-in .8s cubic-bezier(.2, .8, .2, 1) forwards, eh-float 6s ease-in-out 1s infinite alternate; }
.eh-ticket.t1 { animation-delay: .15s, 1s; margin-right: 12%; }
.eh-ticket.t2 { animation-delay: .35s, 1.6s; margin-left: 8%; border-color: #f4dea0; background: #fffaf0; }
.eh-ticket.t3 { animation-delay: .55s, 2.2s; margin-right: 4%; }
@keyframes eh-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes eh-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.eh-tk-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--eh-mintbg); }
.eh-ticket small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--eh-teal); }
.eh-ticket b { display: block; font-size: 1.15rem; font-weight: 800; }
.eh-ticket.t2 b { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.05; color: var(--eh-navy); font-variant-numeric: tabular-nums; }
.eh-ticket em { display: block; font-style: normal; font-size: .82rem; color: var(--eh-muted); }
.eh-ticket > i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--eh-teal); color: #fff; font-weight: 800; }
@media (max-width: 900px) { .eh-herogrid { grid-template-columns: 1fr; } .eh-ticket.t1, .eh-ticket.t2, .eh-ticket.t3 { margin: 0; } }

/* 2 · who */
.eh-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eh-card { background: var(--eh-white); border: 1px solid var(--eh-line); border-radius: 20px; padding: 22px; display: grid; gap: 8px; align-content: start; transition: transform .3s ease, box-shadow .3s ease; }
.eh-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 23, 38, .1); }
.eh-card h3 { font-size: 1.15rem; font-weight: 800; }
.eh-card p { color: var(--eh-muted); font-size: .95rem; }
.eh-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: #eaf1f8; flex: none; }
.eh-note { margin-top: 18px !important; border-radius: 16px; padding: 14px 18px; background: #fff8e6; border: 1px solid #f4dea0; color: #5a4310; max-width: 900px; }
.eh-note a { color: var(--eh-teal); font-weight: 800; }
@media (max-width: 960px) { .eh-who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eh-who { grid-template-columns: 1fr; } }

/* 4 · calculator links */
.eh-calcs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eh-calc { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px; border-radius: 22px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, #eef8f3, #eef4fb); border: 1px solid var(--eh-line); transition: transform .3s ease, box-shadow .3s ease; }
.eh-calc:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(11, 23, 38, .1); }
.eh-calc h3 { font-size: 1.2rem; font-weight: 800; }
.eh-calc p { color: var(--eh-muted); font-size: .95rem; }
.eh-calc > i { font-style: normal; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--eh-amber); font-weight: 800; transition: transform .3s ease; }
.eh-calc:hover > i { transform: translateX(4px); }
@media (max-width: 760px) { .eh-calcs { grid-template-columns: 1fr; } }

/* 5 · areas */
.eh-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eh-area { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; background: var(--g); box-shadow: 0 12px 26px rgba(11, 23, 38, .14); transition: transform .3s ease, box-shadow .3s ease, opacity .7s ease var(--d, 0s); }
.eh-area i { font-style: normal; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255, 255, 255, .16); }
.eh-area:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 34px rgba(11, 23, 38, .2); }
.eh-more { margin-top: 18px !important; }
.eh-more a { color: var(--eh-teal); font-weight: 800; text-decoration: none; }
@media (max-width: 900px) { .eh-areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .eh-areas { grid-template-columns: 1fr; } }

/* 6 · foundation year path */
.eh-fygrid { display: grid; gap: 8px; }
.eh-path { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; }
.eh-path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 41px; height: 4px; border-radius: 2px; background: var(--eh-line); }
.eh-path::after { content: ""; position: absolute; left: 4%; top: 41px; height: 4px; border-radius: 2px; width: 0; background: linear-gradient(90deg, var(--eh-teal), var(--eh-amber)); transition: width 2.4s cubic-bezier(.4, .1, .2, 1) .3s; }
.eh-path.in::after { width: 92%; }
.eh-path li { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding-top: 34px; }
.eh-path li::before { content: ""; position: absolute; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--eh-white); border: 3px solid var(--eh-line); transition: background .4s ease, border-color .4s ease, transform .4s ease; }
.eh-path.in li::before { background: var(--eh-teal); border-color: var(--eh-teal); transform: scale(1.1); }
.eh-path.in li:nth-child(1)::before { transition-delay: .3s; } .eh-path.in li:nth-child(2)::before { transition-delay: .75s; } .eh-path.in li:nth-child(3)::before { transition-delay: 1.2s; }
.eh-path.in li:nth-child(4)::before { transition-delay: 1.65s; } .eh-path.in li:nth-child(5)::before { transition-delay: 2.1s; } .eh-path.in li:nth-child(6)::before { transition-delay: 2.55s; background: var(--eh-amber); border-color: var(--eh-amber); transform: scale(1.35); }
.eh-path b { font-size: 1rem; }
.eh-path li.fy b { color: var(--eh-teal); }
.eh-path li.end b { color: #a0700f; }
.eh-path span { font-size: .85rem; color: var(--eh-muted); }
@media (max-width: 760px) {
  .eh-path { grid-template-columns: 1fr; padding: 0 0 0 40px; gap: 18px; }
  .eh-path::before { left: 12px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  .eh-path::after { left: 12px; top: 6px; width: 4px; height: 0; transition: height 2.4s cubic-bezier(.4, .1, .2, 1) .3s; }
  .eh-path.in::after { width: 4px; height: calc(100% - 12px); }
  .eh-path li { justify-items: start; text-align: left; padding: 0; }
  .eh-path li::before { left: -40px; top: 0; }
}

/* 7 · week */
.eh-weekgrid { display: grid; gap: 14px; }
.eh-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.eh-week div { border-radius: 16px; padding: 14px 8px; text-align: center; display: grid; gap: 6px; background: var(--eh-white); border: 1px solid var(--eh-line); transition: background .5s ease, color .5s ease, transform .5s ease, border-color .5s ease; }
.eh-week small { font-weight: 800; color: var(--eh-muted); font-size: .8rem; }
.eh-week span { font-weight: 700; font-size: .9rem; }
.eh-week .off { background: #f2f5f8; }
.eh-week.in .cls { background: #102F48; color: #fff; border-color: var(--eh-navy); transform: translateY(-6px); }
.eh-week.in .cls small { color: var(--eh-mint); }
.eh-week.in .cls:nth-child(2) { transition-delay: .4s; } .eh-week.in .cls:nth-child(4) { transition-delay: .8s; }
@media (max-width: 560px) { .eh-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 8 · documents that tick themselves off */
.eh-docgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.eh-docgrid .eh-head { margin: 0; }
.eh-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eh-docs li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--eh-white); border: 1px solid var(--eh-line); box-shadow: 0 8px 20px rgba(11, 23, 38, .05); }
.eh-docs i { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #c4d4e3; position: relative; transition: background .35s ease var(--d, 0s), border-color .35s ease var(--d, 0s); }
.eh-docs i::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.2, .8, .3, 1.6) calc(var(--d, 0s) + .15s); }
.eh-docs.in i { background: var(--eh-teal); border-color: var(--eh-teal); }
.eh-docs.in i::after { transform: rotate(45deg) scale(1); }
.eh-docs b { display: block; }
.eh-docs span { color: var(--eh-muted); font-size: .9rem; }
@media (max-width: 860px) { .eh-docgrid { grid-template-columns: 1fr; } }

/* 9 · steps */
.eh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.eh-steps li { position: relative; counter-increment: s; display: grid; gap: 6px; align-content: start; padding: 20px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); opacity: .25; transform: translateY(14px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s), border-color .6s ease var(--d, 0s); }
.eh-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--eh-amber); color: var(--eh-navy); }
.eh-steps.in li { opacity: 1; transform: none; border-color: rgba(242, 195, 90, .5); }
.eh-steps b { font-size: 1.05rem; }
.eh-steps span { color: #c6d6e5; font-size: .92rem; }
.eh-steps.eh-rv { opacity: 1; transform: none; }
@media (max-width: 1000px) { .eh-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eh-steps { grid-template-columns: 1fr; } }

/* 10 · faq */
.eh-faqgrid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.eh-faq { display: grid; gap: 10px; }
.eh-faq details { border: 1px solid var(--eh-line); border-radius: 16px; background: var(--eh-white); transition: box-shadow .3s ease, border-color .3s ease; }
.eh-faq details[open] { border-color: #bfe3d4; box-shadow: 0 12px 26px rgba(29, 138, 108, .08); }
.eh-faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 800; position: relative; }
.eh-faq summary::-webkit-details-marker { display: none; }
.eh-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--eh-mintbg); color: var(--eh-teal); font-size: 1.2rem; transition: transform .3s ease; }
.eh-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.eh-faq details p { padding: 0 20px 18px; color: #33465b; }
@media (max-width: 860px) { .eh-faqgrid { grid-template-columns: 1fr; } }

/* 11 · closing */
.eh-cta { text-align: center; background: linear-gradient(180deg, #fff 0%, #fff4dc 100%); }
.eh-cta .eh-c { display: grid; justify-items: center; gap: 14px; }
.eh-cta h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
.eh-cta > .eh-c > p:not(.eh-fine) { color: var(--eh-muted); font-size: 1.08rem; }

.eh.eh-still .eh-rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .eh *, .eh *::before, .eh *::after { animation: none !important; transition: none !important; }
  .eh-rv, .eh-ticket, .eh-steps li { opacity: 1; transform: none; }
}
