:root {
  color-scheme: light;
  --ink: #171b38;
  --muted: #4d5674;
  --blue: #293dc7;
  --deep: #192a9d;
  --paper: #f8f9fd;
  --line: #dce1f1;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #a44911; outline-offset: 5px; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; background: white; padding: .7rem; translate: 0 -200%; }
.skip:focus { translate: 0; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: #202b88; text-decoration: none; white-space: nowrap; font-size: 1.6rem; font-weight: 450; line-height: 1; letter-spacing: -.035em; }
.brand img { display: block; flex: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 3vw, 34px); }
nav a { text-decoration: none; font-size: .93rem; font-weight: 600; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 8px; color: var(--deep); }
.hero { padding-block: clamp(52px, 6.3vw, 90px); background: #eef1ff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(30px, 5.3vw, 80px); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--deep); }
.eyebrow::before { content: ""; display: inline-block; vertical-align: .24em; width: 1.45rem; height: 2px; margin-right: .65rem; background: currentColor; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.055em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.4vw, 5.15rem); margin: 17px 0 20px; }
h2 { font-size: clamp(2.05rem, 4vw, 3.45rem); }
h3 { font-size: 1.52rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lede { max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.18rem); line-height: 1.65; }
.hero-art { position: relative; overflow: hidden; border-radius: 18px; isolation: isolate; aspect-ratio: 1.28; background: linear-gradient(120deg, #252a9f, #060d43); box-shadow: 0 16px 40px #2f3c8d21; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(transparent, #07143da8); pointer-events: none; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-top: 28px; }
.button { display: inline-flex; text-decoration: none; align-items: center; justify-content: center; min-height: 47px; padding: .72rem 1.1rem; border-radius: 8px; background: var(--blue); color: white; font-weight: 680; }
.button:hover { background: var(--deep); }
.button.secondary { background: transparent; border: 1px solid #b8c3ef; color: var(--deep); }
.button.secondary:hover { background: #e1e7ff; }
.section { padding-block: clamp(53px, 7vw, 93px); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 29px; }
.section-title h2 { margin-top: 11px; }
.section-title .lede { max-width: 37ch; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.card { --tile: #e8ecff; --glyph: #293dc7; display: flex; position: relative; flex-direction: column; min-height: 235px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 13px; transition: border-color .18s, box-shadow .18s; }
.card:focus-within, .card:hover { border-color: #a1ace5; box-shadow: 0 10px 26px #191f6321; }
.card[data-tone="lilac"] { --tile: #f2eafb; --glyph: #67378d; }
.card[data-tone="mint"] { --tile: #def4ec; --glyph: #16634f; }
.card[data-tone="sky"] { --tile: #e0f1fd; --glyph: #1c577e; }
.card[data-tone="sand"] { --tile: #fff0d9; --glyph: #764e12; }
.card[data-tone="rose"] { --tile: #fae9ef; --glyph: #963b60; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 19px; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; flex: 0 0 44px; color: var(--glyph); background: var(--tile); }
.icon svg { width: 22px; height: 22px; }
.card p { margin: 9px 0 17px; color: var(--muted); line-height: 1.55; }
.text-link { color: var(--deep); font-weight: 700; text-decoration: none; }
.card .text-link { margin-top: auto; }
.card .text-link::after { content: ""; position: absolute; inset: 0; }
.universities { background: #eef1ff; }
.universities .lede { margin-top: 10px; }
.university-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; padding: 0; margin: 27px 0 0; list-style: none; }
.university-grid li { display: grid; place-items: center; min-height: 8.75rem; padding: 12px 9px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.university-grid img { display: block; width: 100%; height: var(--logo-height, 5.875rem); object-fit: contain; }
.university-cordoba { --logo-height: 5.125rem; }
.university-malaga { --logo-height: 6.3125rem; }
.university-cadiz { --logo-height: 6.25rem; }
.university-jaen { --logo-height: 3.25rem; }
.university-huelva { --logo-height: 7rem; }
.contact { background: #202b88; color: white; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.contact .lede { color: #e4e9ff; margin-top: 12px; }
.contact .button { flex: none; background: white; color: var(--deep); }
.contact .button:hover { background: #e4e9ff; }
.site-footer { background: white; }
.footer-inner { min-height: 92px; }
.footer-inner a:not(.brand) { font-size: .9rem; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.detail-head { background: #eef1ff; }
.product-brand { display: block; width: 88px; height: auto; }
.product-brand-alumni { width: 172px; padding: 12px 14px; border-radius: 10px; background: #6b4a00; }
.detail-hero.illustrated { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.detail-hero.illustrated h1 { font-size: clamp(2.55rem, 4.4vw, 4.25rem); }
.practice-cover { overflow: hidden; border-radius: 16px; background: #dce1f1; }
.practice-cover img { display: block; width: 100%; height: auto; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 6vw, 84px); align-items: start; }
.detail-grid h2 { margin-bottom: 18px; }
.detail-grid p, .detail-grid li { color: var(--muted); line-height: 1.75; }
.detail-grid p + p { margin-top: 1rem; }
.detail-grid aside { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 24px; }
.detail-grid ul { padding-left: 1.25rem; margin-bottom: 0; }
.detail-grid li + li { margin-top: .3rem; }
.product-features { padding-bottom: 42px; }
.product-features h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 0; margin: 22px 0 0; list-style: none; }
.feature-grid li { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 10px; background: white; }
.feature-grid.illustrated, .practice-benefits .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid img { display: block; width: 100%; height: clamp(135px, 20vw, 260px); margin-bottom: 16px; object-fit: contain; border-radius: 8px; background: #f1f5fa; }
.feature-grid h3 { font-size: 1.25rem; }
.feature-grid p { margin-top: 9px; color: var(--muted); line-height: 1.6; }
.practice-gallery { padding-block: 22px 48px; }
.practice-gallery h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.practice-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 23px 0; }
.practice-stats div { display: flex; flex-direction: column-reverse; gap: 5px; padding: clamp(8px, 2vw, 20px); background: #eef1ff; border-radius: 10px; }
.practice-stats dt { font-size: .875rem; color: var(--muted); }
.practice-stats dd { margin: 0; font-weight: 700; font-size: clamp(1.4rem, 3.2vw, 2.4rem); letter-spacing: -.05em; color: var(--deep); }
.practice-gallery-grid { display: grid; grid-template-columns: 1.15fr 1fr .75fr; gap: 13px; margin: 20px 0 32px; }
.practice-gallery-grid img { width: 100%; height: clamp(100px, 19vw, 235px); border-radius: 10px; object-fit: cover; }
.practice-testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.practice-testimonials figure { margin: 0; padding: 20px; border-left: 3px solid var(--blue); background: white; border-radius: 8px; }
.practice-testimonials blockquote { margin: 0 0 9px; font-size: 1.05rem; line-height: 1.5; }
.practice-testimonials figcaption { color: var(--muted); font-size: .875rem; }
.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(25px, 5vw, 75px); }
.contact-form { display: grid; gap: 15px; padding: clamp(17px, 3vw, 32px); background: white; border: 1px solid var(--line); border-radius: 13px; }
.contact-form[hidden] { display: none; }
.contact-form label { display: grid; gap: 6px; font-weight: 650; }
.contact-form input, .contact-form textarea { width: 100%; padding: .65rem; color: var(--ink); background: var(--paper); border: 1px solid #a1abc8; border-radius: 6px; font: inherit; font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.contact-form button { justify-self: start; border: 0; font: inherit; font-weight: 680; cursor: pointer; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-form .form-result:empty { margin-top: -15px; }
.breadcrumb { margin-bottom: 28px; }
.related { padding: 0 0 48px; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 56px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .university-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; }
  .header-inner nav { gap: 12px; justify-content: end; }
  .header-inner nav a { font-size: .875rem; }
  .nav-cta { padding: .45rem .55rem; }
  .hero-inner, .detail-grid, .cards, .feature-grid { grid-template-columns: 1fr; }
  .contact-page, .detail-hero.illustrated, .practice-benefits .feature-grid, .feature-grid.illustrated, .practice-testimonials { grid-template-columns: 1fr; }
  .hero { padding-block: 44px; }
  .hero-art { aspect-ratio: 1.4; }
  .section-title, .contact-inner { align-items: start; flex-direction: column; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding-block: 20px; }
}
@media (max-width: 470px) {
  .university-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
