:root {
  --ink: #16383d;
  --ink-2: #244e53;
  --teal: #28747a;
  --teal-dark: #173f45;
  --sage: #bfcfbd;
  --mint: #e8f0eb;
  --cream: #f7f3eb;
  --paper: #fffdfa;
  --white: #ffffff;
  --text: #243236;
  --muted: #627174;
  --line: #dce4df;
  --accent: #d98567;
  --shadow: 0 18px 55px rgba(20, 57, 61, .12);
  --radius: 22px;
  --radius-sm: 13px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 9999; padding: .8rem 1rem; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.content-narrow { max-width: 830px; }
.section { padding: 92px 0; }
.section-soft { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--white); }
.section-heading { max-width: 680px; margin-bottom: 44px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.13; margin: 0 0 .8rem; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.8rem); max-width: 940px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.28rem; }
.section-dark h1, .section-dark h2, .section-dark h3, .page-hero h1, .contact-cta h2, .legal-hero h1 { color: var(--white); }
p { margin: 0 0 1rem; }
.lead-text, .intro-copy { font-size: 1.18rem; color: #415154; }
.eyebrow { display: inline-block; margin-bottom: 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: #d8e7dc; }
.eyebrow.dark { color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(217,133,103,.28); }
.button-secondary { background: var(--ink); color: #fff; }
.button-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.button-light { background: #fff; color: var(--ink); }
.text-link, .card-link { color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.text-link:hover, .card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.light-link { color: #fff; }
.notice { padding: 1rem 1.15rem; background: var(--mint); border-left: 4px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #35474a; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,253,250,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(22,56,61,.08); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 50% 50% 50% 12px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 900; letter-spacing: .05em; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: .16rem; color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 1.05rem; }
.main-nav a { text-decoration: none; color: #425154; font-size: .9rem; font-weight: 750; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); }
.main-nav .nav-cta { color: #fff; background: var(--ink); padding: .65rem 1rem; border-radius: 999px; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: var(--teal); color: #fff; }
.language-switch { display: inline-flex; align-items: center; gap: .28rem; padding: .28rem .42rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.language-switch button { padding: .18rem .28rem; border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 850; cursor: pointer; }
.language-switch button:hover, .language-switch button.active { color: var(--teal-dark); }
.language-switch button.active { text-decoration: underline; text-underline-offset: 3px; }
.language-switch span { color: #aab6b2; font-size: .75rem; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; border-radius: 50%; background: var(--mint); }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

/* Home hero */
.hero { position: relative; min-height: 730px; color: #fff; overflow: hidden; display: grid; align-items: center; }
.hero-media { position: absolute; inset: 0; background-image: url('assets/images/marta-ponencia-horizontal.webp'); background-size: cover; background-position: center 28%; transform: scale(1.01); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,29,32,.92) 0%, rgba(16,48,52,.78) 47%, rgba(16,48,52,.22) 77%, rgba(16,48,52,.1) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 70px; }
.hero h1 { color: #fff; max-width: 850px; }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.38rem); max-width: 690px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 2rem 0 0; color: #e9f1ec; font-weight: 700; }
.hero-points li::before { content: '•'; margin-right: .55rem; color: var(--accent); }

.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.cards { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 10px 32px rgba(20,57,61,.055); }
.card p { color: #536164; }
.service-card { display: flex; flex-direction: column; min-height: 320px; }
.service-card .card-link { margin-top: auto; padding-top: 1rem; }
.featured-card { background: var(--ink); border-color: var(--ink); color: #fff; }
.featured-card h3, .featured-card .card-link { color: #fff; }
.featured-card p { color: #d5e0dc; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.25rem; border-radius: 14px; background: var(--mint); color: var(--ink); font-weight: 900; }
.featured-card .icon { background: rgba(255,255,255,.13); color: #fff; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-grid.reverse > :first-child { order: 2; }
.feature-photo { margin: 0; min-height: 540px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-photo img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; object-position: center; }
.feature-photo.landscape { min-height: 430px; }
.feature-photo.landscape img { min-height: 430px; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.check-list.light li::before { color: #c8e1d1; }
.stats-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.statement p { color: #d7e2df; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-grid article { padding: 24px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); background: rgba(255,255,255,.055); }
.fact-grid strong, .fact-grid span { display: block; }
.fact-grid strong { font-size: 1.2rem; }
.fact-grid span { color: #c9d8d4; margin-top: .4rem; font-size: .9rem; }
.quote-block { text-align: center; max-width: 930px; }
.quote-block blockquote { margin: 0 auto 1.3rem; color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.8rem,4vw,3.2rem); line-height: 1.3; }
.quote-block > p:last-child { max-width: 700px; margin-inline: auto; color: var(--muted); }
.modalities-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.modality-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { display: flex; flex-direction: column; gap: .35rem; min-height: 130px; justify-content: center; padding: 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.mini-card strong { font-size: 1.2rem; color: var(--ink); }
.mini-card span { color: var(--muted); }
.mini-card.accent { grid-column: 1/-1; background: var(--sage); border-color: var(--sage); }
.contact-cta { padding: 60px 0; background: var(--teal-dark); color: #fff; }
.contact-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.contact-cta h2 { margin-bottom: .4rem; }
.contact-cta p { margin-bottom: 0; color: #d4e2df; }

/* Internal page heroes */
.page-hero, .legal-hero { background: var(--ink); color: #fff; overflow: hidden; }
.page-hero-grid { min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.page-hero p { max-width: 680px; color: #dbe5e2; font-size: 1.12rem; }
.page-hero .button { margin-top: 1rem; }
.page-hero figure { align-self: stretch; margin: 0; overflow: hidden; min-height: 620px; clip-path: polygon(13% 0,100% 0,100% 100%,0 100%); }
.page-hero figure img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: center; }
.compact-hero figure img { object-position: 45% center; }
.orientation-hero figure img { object-position: center 28%; }
.family-hero figure img { object-position: center 28%; }
.about-hero figure img { object-position: center 20%; }
.page-hero figure.image-focus-top img, .image-focus-top img { object-position: center 18%; }
.institutional-section { background: var(--mint); }
.institutional-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.institutional-card { display: block; padding: 32px; border: 1px solid rgba(22,56,61,.12); border-radius: var(--radius); background: var(--white); text-decoration: none; box-shadow: 0 12px 36px rgba(20,57,61,.07); transition: transform .2s ease, box-shadow .2s ease; }
.institutional-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.institutional-card p { color: var(--muted); }
.institutional-card strong { color: var(--teal-dark); }
.credential-tag { display: inline-block; margin-bottom: 1rem; padding: .35rem .7rem; border-radius: 999px; background: var(--cream); color: var(--teal); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.pill-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pill-grid span { padding: .7rem 1rem; border-radius: 999px; background: var(--mint); color: var(--ink); font-weight: 750; }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.numbered-process { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.numbered-process li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.numbered-process li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; }
.numbered-process h3, .numbered-process p { margin-bottom: .25rem; }
.three-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.credibility { display: grid; grid-template-columns: .95fr 1.05fr; gap: 65px; align-items: center; }
.credibility figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-long { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.education-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.education-grid article { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.education-grid span { display: inline-block; margin-bottom: 1rem; color: var(--teal); font-size: .83rem; font-weight: 800; }
.education-grid p { color: var(--muted); }
.timeline-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.timeline { position: relative; display: grid; gap: 0; border-left: 2px solid var(--sage); padding-left: 30px; }
.timeline article { position: relative; padding: 0 0 34px; }
.timeline article::before { content: ''; position: absolute; left: -39px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); border: 4px solid var(--paper); }
.timeline span { color: var(--teal); font-weight: 850; font-size: .82rem; }
.timeline h3 { margin-top: .35rem; }
.timeline p { color: var(--muted); }

/* Contact */
.contact-page-hero, .legal-hero { padding: 100px 0 70px; }
.contact-page-hero p { color: #dae5e2; font-size: 1.12rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-details { display: grid; gap: 12px; margin: 2rem 0; }
.contact-details a, .contact-details > div { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: #fff; }
.contact-details strong { color: var(--ink); }
.contact-details span { color: var(--muted); }
.contact-form { display: grid; gap: 18px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: .45rem; font-weight: 750; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .9rem 1rem; border: 1px solid #becbc6; border-radius: 10px; color: var(--text); background: #fff; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,116,122,.13); }
.contact-form small, .form-help { color: var(--muted); font-weight: 400; font-size: .83rem; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; }
.consent input { width: 18px; margin-top: .25rem; }
.form-button { justify-self: start; border: 0; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 1px !important; width: 1px !important; }

/* Legal */
.legal-hero { min-height: 320px; display: flex; align-items: center; }
.legal-warning { padding: 1rem; border: 1px solid rgba(255,255,255,.26); border-radius: var(--radius-sm); color: #fff; background: rgba(255,255,255,.07); }
.legal-content { max-width: 850px; }
.legal-content h2 { margin-top: 2.2rem; font-size: 1.6rem; }

/* Footer */
.site-footer { padding: 70px 0 24px; background: #0f2b2f; color: #d5e0dd; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr .8fr; gap: 38px; }
.footer-brand { color: #fff; margin-bottom: 1rem; }
.footer-brand small { color: #b8c8c4; }
.footer-grid h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a, .footer-grid span { display: block; color: #c8d5d2; text-decoration: none; margin-bottom: .6rem; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #aebfbb; font-size: .82rem; }

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .education-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { position: fixed; inset: 78px 18px auto; display: none; flex-direction: column; align-items: stretch; gap: .25rem; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1rem; border-radius: 8px; }
  .language-switch { align-self: flex-start; margin: .35rem 1rem .5rem; }
  .menu-toggle { display: block; }
  .page-hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .page-hero figure { min-height: 480px; clip-path: none; border-radius: var(--radius) var(--radius) 0 0; }
  .page-hero figure img { min-height: 480px; }
  .stats-grid, .split-grid, .intro-grid, .modalities-grid, .process-grid, .credibility, .about-long, .timeline-layout, .contact-grid, .institutional-grid { grid-template-columns: 1fr; }
  .split-grid.reverse > :first-child { order: initial; }
  .feature-photo, .feature-photo img { min-height: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .brand small { display: none; }
  .hero { min-height: 720px; }
  .hero-media { background-position: 61% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,29,32,.96) 0%, rgba(8,29,32,.8) 58%, rgba(8,29,32,.34) 100%); }
  .hero-content { align-self: end; padding-bottom: 50px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-points { display: grid; gap: .5rem; }
  .services-grid, .three-cards, .fact-grid, .education-grid, .modality-cards, .field-row { grid-template-columns: 1fr; }
  .mini-card.accent { grid-column: auto; }
  .service-card { min-height: auto; }
  .page-hero-grid { padding-top: 54px; }
  .page-hero figure, .page-hero figure img { min-height: 410px; }
  .feature-photo, .feature-photo img, .feature-photo.landscape, .feature-photo.landscape img { min-height: 390px; }
  .contact-cta .container { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
