/* Goizueta Abogados — hoja de estilos */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url("../fonts/eb-garamond-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --navy: #11417b;
  --navy-deep: #0b2d57;
  --navy-ink: #071d3a;
  --ink: #16202d;
  --text: #333c49;
  --muted: #5d6776;
  --paper: #f5f4f0;
  --mist: #eef1f5;
  --line: #dcd9d2;
  --line-soft: #e8e5df;
  --white: #ffffff;
  --on-navy: rgba(255, 255, 255, 0.8);
  --on-navy-soft: rgba(255, 255, 255, 0.18);
  --shadow: 0 1px 2px rgba(7, 29, 58, 0.06), 0 12px 32px rgba(7, 29, 58, 0.08);
  --shadow-hover: 0 2px 4px rgba(7, 29, 58, 0.08), 0 20px 44px rgba(7, 29, 58, 0.14);

  --serif: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.68; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); margin-bottom: 20px; }
.kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 32px; height: 1px; background: currentColor; }

.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-deep); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .kicker { color: rgba(255,255,255,0.75); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-head p { margin-top: 18px; font-size: 1.06rem; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--light { background: var(--white); color: var(--navy-deep); }
.btn--light:hover { background: var(--paper); color: var(--navy-deep); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.hero--single .btn--ghost { background: rgba(8,12,20,0.32); border-color: rgba(255,255,255,0.75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero--single .btn--ghost:hover { background: rgba(8,12,20,0.5); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line-soft); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 29, 58, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { color: var(--navy); display: inline-flex; flex-shrink: 0; }
.brand svg { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.tabs { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tabs a { display: block; position: relative; padding: 10px 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.tabs a:hover { color: var(--navy); }
.tabs a:hover::after, .tabs a[aria-current="page"]::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--navy); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--navy); }
.lang [aria-current="true"] { color: var(--navy); }
.lang .sep { color: var(--line); }
.header-call { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.header-call:hover { background: var(--navy-deep); color: #fff; }
.header-call .icon { width: 16px; height: 16px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) { .header-call span { display: none; } .header-call { padding: 0 14px; } }
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand svg { width: 150px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 26px; border-bottom: 1px solid var(--line-soft); box-shadow: 0 18px 30px rgba(7,29,58,0.1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .tabs { flex-direction: column; gap: 0; }
  .tabs a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
  .tabs a::after { left: 0; right: auto; width: 28px; bottom: -1px; }
  .header-tools { justify-content: space-between; padding-top: 20px; }
  .header-call span { display: inline; }
}

/* ---------- Portada con imágenes en movimiento ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-ink); color: #fff; min-height: min(calc(100svh - var(--header-h)), 900px); display: flex; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: -24px; z-index: -2; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img, .hero-slide.is-leaving img { animation: kenburns 9s ease-out forwards; }
.hero-slide:nth-child(2n).is-active img, .hero-slide:nth-child(2n).is-leaving img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.8%, -1.2%, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.03) translate3d(0,0,0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7,29,58,0.92) 0%, rgba(11,45,87,0.82) 42%, rgba(11,45,87,0.45) 100%), linear-gradient(0deg, rgba(7,29,58,0.55), transparent 40%); }
.hero--single::before { background: linear-gradient(95deg, rgba(8,12,20,0.62) 0%, rgba(8,12,20,0.42) 38%, rgba(8,12,20,0.08) 72%, rgba(8,12,20,0) 100%), linear-gradient(0deg, rgba(8,12,20,0.35), transparent 35%); }
.hero--single .hero-logo, .hero--single .hero-rule { filter: drop-shadow(0 2px 14px rgba(0,0,0,0.3)); }
.hero-inner { position: relative; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(96px, 12vw, 140px); width: 100%; }
.hero-logo { color: #fff; width: min(620px, 86%); }
.hero-rule { width: 72px; height: 1px; background: rgba(255,255,255,0.6); margin: clamp(28px, 4vw, 40px) 0; }
.hero-claim { font-family: var(--serif); font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.18; color: #fff; margin: 0 0 clamp(56px, 8vw, 104px); font-weight: 500; letter-spacing: -0.005em; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero--single .hero-slide img { animation: herodrift 24s ease-in-out infinite alternate; object-position: 50% 32%; }
@keyframes herodrift { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.13) translate3d(-1.6%, -1.2%, 0); } }
@media (max-width: 760px) { .hero--single .hero-slide img { object-position: 50% 40%; } .hero-logo { width: min(420px, 92%); } .hero--single::before { background: linear-gradient(180deg, rgba(8,12,20,0.25) 0%, rgba(8,12,20,0.5) 35%, rgba(8,12,20,0.5) 70%, rgba(8,12,20,0.6) 100%); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 34px; }
.hero-dots .container { display: flex; gap: 10px; }
.hero-dots button { width: 44px; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(255,255,255,0.35); }
.hero-dots button::after { content: ""; position: absolute; left: 0; top: 9px; height: 2px; width: 0; background: #fff; }
.hero-dots button[aria-current="true"]::after { animation: dotfill var(--slide-ms, 6500ms) linear forwards; }
@keyframes dotfill { to { width: 100%; } }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--navy-ink); }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-out forwards; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(8,12,20,0.7) 0%, rgba(8,12,20,0.45) 45%, rgba(8,12,20,0.12) 100%); }
.page-hero h1, .page-hero p, .page-hero .kicker { text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.page-hero-inner { padding: clamp(80px, 11vw, 140px) 0 clamp(64px, 8vw, 100px); }
.page-hero .kicker { color: rgba(255,255,255,0.78); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; }
.page-hero p { margin-top: 18px; max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--on-navy); }

/* ---------- Introducción / lead ---------- */
.lead-block { max-width: 920px; }
.lead-block .lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.32; color: var(--ink); }
.lead-block .lead-2 { margin-top: 22px; font-size: 1.08rem; color: var(--muted); max-width: 720px; }
.intro-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 100px); align-items: end; }
.intro-grid h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.intro-grid p { font-size: 1.08rem; color: var(--muted); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Tarjetas de compromiso ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--white); box-shadow: var(--shadow); padding: 34px 30px 36px; border-bottom: 3px solid var(--navy); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .icon { width: 34px; height: 34px; color: var(--navy); stroke-width: 1.4; }
.card h3 { font-size: 1.55rem; margin: 22px 0 12px; }
.card p { font-size: 0.96rem; color: var(--muted); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de áreas (inicial) ---------- */
.letter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.letter-card { position: relative; background: var(--white); border: 1px solid var(--line-soft); padding: 30px 24px 28px; display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; transition: border-color .3s, box-shadow .3s, transform .3s; }
.letter-card:hover { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-4px); color: inherit; }
.letter { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--navy); color: var(--navy); font-family: var(--serif); font-size: 2.2rem; line-height: 1; transition: background .3s, color .3s; }
.letter-card:hover .letter { background: var(--navy); color: #fff; }
.letter-card h3 { font-size: 1.38rem; margin: 24px 0 10px; }
.team-body h2 { margin-bottom: 26px; }
.letter-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 22px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.more .icon { width: 15px; height: 15px; }
.section--paper .letter-card { border-color: transparent; box-shadow: var(--shadow); }
@media (max-width: 1180px) { .letter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .letter-grid { grid-template-columns: 1fr; } .letter-card { padding: 28px 24px; } }
.center-cta { margin-top: 48px; text-align: center; }

/* ---------- Ventana de detalle de área ---------- */
dialog.area-modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; box-shadow: 0 30px 80px rgba(7,29,58,0.35); color: var(--text); overflow: auto; }
dialog.area-modal::backdrop { background: rgba(7, 29, 58, 0.62); backdrop-filter: blur(3px); }
dialog.area-modal[open] { animation: modalin .28s ease-out; }
@keyframes modalin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-head { background: var(--navy-deep); color: #fff; padding: 34px 40px 30px; display: flex; gap: 22px; align-items: center; position: relative; }
.modal-head .letter { border-color: rgba(255,255,255,0.6); color: #fff; flex-shrink: 0; }
.modal-head h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); padding-right: 40px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,0.12); }
.modal-close .icon { width: 20px; height: 20px; }
.modal-body { padding: 34px 40px 40px; }
.modal-body > p { font-size: 1.04rem; }
.modal-body ul { list-style: none; margin: 24px 0 30px; padding: 0; border-top: 1px solid var(--line-soft); }
.modal-body li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line-soft); font-size: 0.97rem; }
.modal-body li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 10px; height: 1px; background: var(--navy); }
@media (max-width: 560px) { .modal-head { padding: 28px 22px 24px; } .modal-body { padding: 26px 22px 30px; } .modal-head .letter { width: 52px; height: 52px; font-size: 1.8rem; } }

/* ---------- Bloque partido (imagen + panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split-media { position: relative; overflow: hidden; min-height: 380px; background: var(--navy-ink); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split:hover .split-media img { transform: scale(1.04); }
.split-panel { background: var(--navy); color: var(--on-navy); display: flex; align-items: center; padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); position: relative; overflow: hidden; }
.split-panel::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 0 40px rgba(255,255,255,0.025), 0 0 0 80px rgba(255,255,255,0.02); pointer-events: none; }
.split-panel .kicker { color: rgba(255,255,255,0.75); }
.split-panel h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 22px; }
.split-panel p { font-size: 1.04rem; margin-bottom: 32px; }
.split-panel > div { position: relative; z-index: 1; max-width: 540px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; min-height: 0; } }

/* ---------- Franja de llamada a la acción ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; padding: clamp(80px, 11vw, 130px) 0; background: var(--navy-ink); }
.cta-band-media { position: absolute; inset: 0; z-index: -2; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,29,58,0.86), rgba(11,45,87,0.72)); }
.cta-band h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.cta-band p { max-width: 560px; margin: 18px auto 34px; color: var(--on-navy); font-size: 1.08rem; }

/* ---------- La Firma ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-grid h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.about-body p { font-size: 1.06rem; }
.vision { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.vision-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.vision-media img { width: 100%; height: 100%; object-fit: cover; }
.vision-body { border-left: 3px solid var(--navy); padding-left: clamp(24px, 3vw, 40px); }
.vision-body h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 16px; }
.vision-body p { font-size: 1.06rem; }
@media (max-width: 900px) { .about-grid, .vision { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: 5fr 7fr; background: var(--navy); color: var(--on-navy); }
.portrait { position: relative; margin: 0; min-height: 520px; overflow: hidden; background: linear-gradient(165deg, #164a8a 0%, var(--navy-deep) 100%); display: flex; align-items: center; justify-content: center; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .portrait-mark { width: 34%; color: #fff; opacity: 0.9; }
.portrait figcaption { position: absolute; left: 28px; right: 28px; bottom: 24px; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.team-body { padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px); position: relative; overflow: hidden; }
.team-body .kicker { color: rgba(255,255,255,0.75); }
.team-body h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.team-role { margin: 10px 0 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.team-body p { font-size: 1.01rem; }
.creds { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--on-navy-soft); }
.creds li { padding: 20px 18px 0 0; }
.creds li + li { padding-left: 18px; border-left: 1px solid var(--on-navy-soft); }
.creds .label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.creds .value { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-top: 6px; line-height: 1.3; overflow-wrap: anywhere; }
.creds .value a { color: #fff; text-decoration: none; }
.creds .value a:hover { text-decoration: underline; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } .portrait { min-height: 420px; } }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } .creds li, .creds li + li { padding: 16px 0; border-left: 0; } .creds li + li { border-top: 1px solid var(--on-navy-soft); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.step { border-top: 1px solid var(--ink); padding-top: 26px; }
.step-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--navy); }
.step h3 { font-size: 1.5rem; margin: 16px 0 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--on-navy-soft); border: 1px solid var(--on-navy-soft); }
.sector { background: var(--navy-deep); padding: 32px 28px 34px; transition: background .3s; }
.sector:hover { background: #0e3668; }
.sector .icon { width: 30px; height: 30px; color: #fff; stroke-width: 1.3; opacity: 0.9; }
.sector h3 { color: #fff; font-size: 1.35rem; margin: 20px 0 10px; }
.sector p { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
@media (max-width: 1040px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }

.closing { max-width: 860px; margin: 0 auto; text-align: center; }
.closing p { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.35; color: var(--ink); margin-bottom: 34px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-grid h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.contact-grid .lead { margin: 20px 0 34px; font-size: 1.06rem; color: var(--muted); }
.contact-lines { list-style: none; margin: 0 0 34px; padding: 0; }
.contact-lines li { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-lines li:last-child { border-bottom: 1px solid var(--line); }
.contact-lines .icon-box { width: 48px; height: 48px; display: grid; place-items: center; background: var(--mist); color: var(--navy); flex-shrink: 0; }
.contact-lines .icon-box .icon { width: 22px; height: 22px; }
.contact-lines .label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-lines a { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-lines a:hover { color: var(--navy); text-decoration: underline; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office { background: var(--white); box-shadow: var(--shadow); border-bottom: 3px solid var(--navy); overflow: hidden; }
.office-media { aspect-ratio: 4 / 3; overflow: hidden; }
.office-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.office:hover .office-media img { transform: scale(1.05); }
.office-body { padding: 26px 26px 28px; }
.office-tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.office h3 { font-size: 2rem; margin-top: 6px; }
.office p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.office .addr { display: flex; gap: 8px; align-items: center; font-size: 0.93rem; color: var(--text); margin-top: 14px; }
.office .addr .icon { width: 16px; height: 16px; color: var(--navy); }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,0.66); padding: clamp(56px, 8vw, 84px) 0 30px; font-size: 0.93rem; }
.footer-top { display: grid; grid-template-columns: 5fr 2.5fr 3.5fr 2.5fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { color: #fff; }
.footer-brand svg { width: 210px; }
.footer-brand p { margin-top: 22px; max-width: 340px; color: rgba(255,255,255,0.6); }
.footer-title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.92); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.84rem; color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.7rem; margin: 48px 0 16px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.legal-body h2:first-child, .legal-body .note + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body .note + h2 { margin-top: 24px; }
.legal-body p, .legal-body li { font-size: 1rem; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal-body li { margin-bottom: 8px; }
.legal-body dl { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; margin: 0 0 1.1em; border-top: 1px solid var(--line-soft); }
.legal-body dt, .legal-body dd { padding: 12px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.legal-body dt { font-weight: 600; color: var(--ink); padding-right: 20px; font-size: 0.95rem; }
.legal-body .note { color: var(--muted); font-size: 0.92rem; font-style: italic; }
@media (max-width: 560px) { .legal-body dl { grid-template-columns: 1fr; } .legal-body dt { border-bottom: 0; padding-bottom: 0; } }
.page-hero--plain { background: var(--navy-deep); }
.page-hero--plain::before { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 18px; }
.notfound p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Aparición suave al desplazarse ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
