/* CALIDRION — inner pages (services, nosotros, casos, FAQ, contacto, legal). Builds on styles.css tokens. */

/* same base as the home: light pink with soft brand glows */
.page {
  background:
    radial-gradient(80% 50% at 85% 0%, rgba(253, 170, 198, .22), transparent 70%),
    radial-gradient(70% 50% at 70% 30%, rgba(181, 156, 240, .12), transparent 70%),
    #f8f1f5;
}

/* page header with a particle figure on the right (js/particulas.js, 'hero' mode) */
.page-hero--figure { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.page-hero--figure::after { display: none; }
.page-hero--figure > :not(.hero-figure) { position: relative; z-index: 1; max-width: min(640px, 56%); }
.hero-figure {
  position: absolute; z-index: 0; right: 2%; top: 50%; transform: translateY(-50%);
  width: min(40%, 440px); aspect-ratio: 1; pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-figure.is-ready { opacity: 1; }
.page .nav { position: sticky; top: env(safe-area-inset-top, 0px); }
.page__main { padding: 0 var(--gutter); }
.page__main > *, .page .footer { max-width: 1180px; margin-inline: auto; }
.page .footer { padding-inline: var(--gutter); max-width: calc(1180px + 2 * var(--gutter)); }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 22px 0 0; font: 500 13px var(--font-head); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(10, 25, 47, .25); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* hero band */
.page-hero {
  position: relative; margin-top: 18px; padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 72px);
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(120deg, rgba(253, 170, 198, .32), rgba(130, 203, 245, .34) 50%, rgba(96, 224, 172, .3));
}
.page-hero::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 280px; aspect-ratio: 94.77 / 56.94; opacity: .12; background: url("/assets/isotipo.svg") no-repeat center / contain; pointer-events: none; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.03em; max-width: 900px; margin-bottom: 18px; text-wrap: balance; }
.page-hero__lead { font-size: clamp(16px, 1.35vw, 19px); max-width: 820px; color: var(--ink); margin: 0 0 8px; }
.page-hero .actions { margin-top: 22px; }
.page__body { padding-top: clamp(56px, 7vw, 96px); }
.page__body .block { padding-bottom: clamp(56px, 7vw, 96px); }

/* prose */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; margin-bottom: 16px; }
.prose p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.prose a, .feature-grid a, .faq a, .block__head a { color: var(--ave-azul); text-decoration: underline; text-underline-offset: 3px; }
.pull { margin: 28px 0 0; padding: 22px 26px; border-left: 3px solid; border-image: var(--grad) 1; font: 600 clamp(19px, 2vw, 24px)/1.35 var(--font-head); color: var(--navy); background: #f8f7fb; }

/* articles (/recursos/<slug>/) */
.article-hero h1 { max-width: 980px; }
.byline { margin: 6px 0 0; font: 500 14px/1.5 var(--font-head); color: var(--ink); }
.byline a { color: var(--navy); }
.article { max-width: 780px; }
.article h2 { margin-top: 44px; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { font-size: 17px; line-height: 1.65; margin-bottom: 8px; }
.article a, .sources a { color: var(--ave-azul); text-decoration: underline; text-underline-offset: 3px; }
.article .answer { font-size: 18.5px; line-height: 1.6; padding: 22px 24px; border-radius: 18px; background: #f8f7fb; border-left: 3px solid; border-image: var(--grad) 1; }
.article .table-wrap table { min-width: 560px; font-size: 15px; }
.article .checks { list-style: none; padding: 0; }
.article .checks li { position: relative; padding-left: 30px; }
.article .checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--verde); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--verde); }
.article .todo, .todo { background: #fff4c2; border-radius: 6px; padding: 2px 6px; font-weight: 600; color: #6b5300; }
.sources ol { padding-left: 22px; font-size: 15px; }
.sources li { margin-bottom: 6px; }

/* service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); background: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(10, 25, 47, .09); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:not(.svc-card--static):hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(10, 25, 47, .09), 0 28px 50px -32px rgba(10, 25, 47, .4); }
.svc-card::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); opacity: .8; }
.svc-card__eyebrow { font: 600 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-card h3, .svc-card__title { font-size: 20px; line-height: 1.25; margin: 0; }
.svc-card p { margin: 0; font-size: 15px; flex: 1; }
.svc-card__more { font: 600 14px var(--font-head); color: var(--navy); margin-top: 6px; }
.svc-card__more::after { content: " \2192"; }
.svc-card__soon { align-self: flex-start; font: 600 12px var(--font-head); color: var(--navy); background: #f2f3f7; padding: 6px 10px; border-radius: 999px; margin-top: 8px; }

/* feature grid */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.feature-grid li { padding: 26px; border-radius: var(--radius); background: #f8f7fb; }
.feature-grid h3 { font-size: 18px; margin-bottom: 8px; }
.feature-grid p { margin: 0; font-size: 15.5px; }
.kicker { display: block; font: 600 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ave-verde); margin-bottom: 8px; }

/* split + checklist */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.split h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding: 16px 18px 16px 50px; border-radius: 16px; background: #f8f7fb; font-size: 16px; color: var(--navy); }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); border-radius: 50%; background: var(--verde); box-shadow: inset 0 0 0 5px #fff; }

.benefits--3 { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
.cases--one { grid-template-columns: minmax(0, 720px); }
.case__link { margin-top: 14px; font: 600 14px var(--font-head); color: var(--navy); text-decoration: none; }
.case__link::after { content: " \2192"; }
.case h2 { font-size: 20px; line-height: 1.25; margin-bottom: 18px; }

/* FAQ headings inside summary */
.faq__q { display: inline; font: inherit; color: inherit; letter-spacing: normal; margin: 0; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-bottom: clamp(64px, 8vw, 110px); padding: clamp(32px, 5vw, 60px); border-radius: 32px; background: var(--navy); color: rgba(255, 255, 255, .8); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; margin-bottom: 12px; }
.cta-band .eyebrow { color: var(--verde); }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-band .btn--dark { background: #fff; color: var(--navy); }
.cta-band .btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* contact on inner page */
.page .contact { margin-bottom: clamp(56px, 7vw, 96px); }
.form__legal { margin: 0; font-size: 12.5px; color: var(--muted); }
.form__legal a { color: var(--ink); }

/* legal */
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p { font-size: 15.5px; }
.table-wrap { overflow-x: auto; margin: 10px 0 18px; }
.table-wrap table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 14px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(10, 25, 47, .1); vertical-align: top; }
.table-wrap th { font: 600 12px var(--font-head); color: var(--navy); background: #f8f7fb; }

/* footer contact column */
.footer__contact a { display: block; text-decoration: none; font-size: 14px; padding: 4px 0; opacity: .85; }
.footer__legal a { color: inherit; }
.footer { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

/* ---------- Mobile menu (shared with the home page) ---------- */
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(10, 25, 47, .1); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__links a[aria-current="page"] { opacity: 1; color: var(--navy); box-shadow: inset 0 -2px 0 var(--verde); }
.nav__menu-cta { display: none; }

@media (max-width: 1024px) {
  .benefits--3 { grid-template-columns: 1fr 1fr; }
  .cta-band, .split { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav .nav__cta { display: none; }
  .nav__links {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
    flex-direction: column; gap: 0; padding: 10px; border-radius: 20px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px -24px rgba(10, 25, 47, .35);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 14px; font-size: 16px; opacity: 1; border-radius: 12px; }
  .nav__links a:hover { background: #f4f5f9; }
  .nav__menu-cta { display: block; margin-top: 6px; text-align: center; background: var(--navy); color: #fff !important; font-weight: 600; }
  .page-hero { border-radius: 24px; }
  .page-hero::after { width: 160px; }
  .page-hero--figure > :not(.hero-figure) { max-width: none; }
  .hero-figure { position: relative; right: auto; top: auto; transform: none; display: block; width: 100%; max-width: 320px; height: auto; margin: 18px auto -10px; }
}
@media (max-width: 520px) {
  .benefits--3 { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

/* Cookie consent */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; background: #fff; color: var(--navy, #0a192f); border: 1px solid rgba(10, 25, 47, .12); border-radius: 18px; box-shadow: 0 12px 40px rgba(10, 25, 47, .18); }
.cc__text { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.cc__text a { text-decoration: underline; }
.cc__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cc__actions .btn { padding: 10px 20px; font-size: 14px; }
.footer__legal button.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .cc { left: 10px; right: 10px; bottom: 10px; } .cc__actions { width: 100%; } .cc__actions .btn { flex: 1; } }

/* LinkedIn footer */
.li-footer { display: inline-flex; align-items: center; gap: 10px; }
.li-footer .li-icon { width: 18px; height: 18px; flex: none; aspect-ratio: 1; color: #0a66c2; background: #fff; border-radius: 4px; transition: transform .3s var(--ease, ease); }
.li-footer:hover .li-icon, .li-footer:focus-visible .li-icon { transform: translateY(-1px); }
