/* Una superficie de lectura estable; el color se mueve debajo, no sobre el texto. */
:root {
  --narrative-paper: #f8f8f3;
  --narrative-dark: #073c4c;
  /* Relieve discreto: contraste reducido al 30% de la prueba anterior. */
  --petroleum-pattern:
    repeating-linear-gradient(135deg,
      rgb(1 18 31 / 12%) 0 1px,
      rgb(173 215 231 / 7.2%) 1px 2px,
      transparent 2px 56px),
    repeating-linear-gradient(135deg,
    rgb(1 20 35 / 6%) 0,
    rgb(1 20 35 / 2.1%) 5px,
    rgb(175 216 235 / .9%) 12px,
    rgb(175 216 235 / 3.9%) 23px,
    rgb(175 216 235 / 1.8%) 36px,
    transparent 45px,
    rgb(1 20 35 / 3.6%) 54px,
    rgb(1 20 35 / 6%) 56px);
  --paper-pattern: url('assets/paper-grain.svg?v=20261009-3'), radial-gradient(ellipse at 85% 15%, rgb(220 208 180 / 12%), transparent 65%);
}
body { background: var(--narrative-paper); }
.hero { background: var(--narrative-dark); height: min(860px, 94svh); min-height: 730px; }
.hero-photo { left: 52%; background-position: 68% center; filter: none; }
.hero-photo-court { background-position: 58% center; filter: none; }
.hero-photo-desk { background-position: 35% center; }
.hero-wash {
  inset: 0 48% 0 0;
  background-color: #073c4c;
  background-image: linear-gradient(135deg, #062f44, #0c4058 70%, #154759);
  overflow: hidden;
}
.hero-wash::before { content: ''; position: absolute; inset: -25%; pointer-events: none; }
.hero-wash::before { background: radial-gradient(ellipse at 75% 25%, #1f6580 0, transparent 58%), radial-gradient(ellipse at 15% 85%, #244956 0, transparent 52%); opacity: .55; }
/* El detalle gana presencia hacia abajo y a la derecha; se atenúa bajo el título. */
.hero-wash::after, .approach::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--petroleum-pattern);
  -webkit-mask-image: linear-gradient(135deg, transparent 8%, rgb(0 0 0 / 16%) 48%, #000 100%);
  mask-image: linear-gradient(135deg, transparent 8%, rgb(0 0 0 / 16%) 48%, #000 100%);
}
.hero-light { display: none; }
.hero::after { display: none; }
.hero-content { padding-top: 90px; padding-bottom: 105px; }
.hero-content > * { max-width: 44%; }
.hero .eyebrow { color: #c0ddd9; font-size: 11px; letter-spacing: .16em; }
.hero h1 { color: #fff; max-width: 44%; font-size: clamp(42px, 4.05vw, 62px); line-height: 1.15; letter-spacing: -.012em; margin-block: 25px; }
.hero-description { color: #e0ede9; }
.hero-actions { gap: 24px; flex-wrap: wrap; }
.hero-actions .button, .approach .button { color: #073c4c; background: #eef4e9; border-color: #eef4e9; }
.hero-actions .button:hover, .approach .button:hover { background: #fff; }
.hero-actions .text-link { color: #edf4ee; }
.hero-bottom { bottom: 28px; color: #d1e5df; gap: 24px; }
.hero-bottom > span { max-width: 44%; }
.hero-bottom > a { background: #f7f8f0; color: #073c4c; margin-right: 78px; }
.hero-motion-toggle { top: auto; bottom: 91px; right: max(36px, calc((100% - 1280px)/2)); background: #f7f8f0; }
.hero-color-running .hero-wash::before { animation: color-breathe 16s ease-in-out infinite alternate; }
.hero-color-paused .hero-wash::before { animation-play-state: paused; }
@keyframes color-breathe { from { transform: translate(-3%, 3%) scale(1); opacity: .4; } to { transform: translate(7%, -5%) scale(1.12); opacity: .65; } }
.section { padding-block: clamp(80px, 8vw, 120px); }
.studio { width: 100%; border-radius: 0; margin: 0; background: var(--narrative-paper); color: #123b4b; }
/* Arenado fino con luz marfil: el grano irregular se repite sin juntas visibles. */
.studio { background-image: var(--paper-pattern); }
.studio > .wrap, .approach > .wrap, .contact > .wrap { width: min(1280px, calc(100% - 112px)); }
.studio-layout { align-items: start; gap: 80px; grid-template-columns: 1.15fr 1fr; }
.studio .eyebrow { color: #07516a; margin-bottom: 24px; }
.studio h2 { font-size: clamp(32px, 3.1vw, 46px); letter-spacing: -.015em; line-height: 1.23; }
.studio-copy { max-width: 48ch; padding-top: 9px; }
.studio-copy .fine-rule { background: #537e79; width: 56px; }
.studio-copy > p:first-of-type { color: #123b4b; font-size: 21px; }
.studio-copy > p { color: #455f66; }
.studio .text-link { color: #07516a; }
.practices { padding-top: 0; background: var(--narrative-paper); background-image: var(--paper-pattern); }
.practice-layout { display: grid; grid-template-columns: .85fr 1.3fr; gap: 90px; border-top: 1px solid #cbd7d3; padding-top: 72px; }
.practice-intro h2, .team-intro h2, .approach h2 { font-family: var(--brand-font); font-weight: 500; font-size: clamp(32px, 3.15vw, 46px); line-height: 1.2; letter-spacing: -.015em; margin-top: 22px; }
.practice-intro > p:not(.eyebrow), .team-intro > p:not(.eyebrow) { color: #455f66; max-width: 35ch; margin-top: 26px; line-height: 1.8; }
.practice-intro .text-link { margin-top: 28px; }
.practice-list { border-top: 1px solid #b9cdc8; }
.practice-item { border-bottom: 1px solid #b9cdc8; }
.practice-item summary { display: grid; grid-template-columns: 36px 1fr 28px; gap: 24px; align-items: center; padding: 30px 10px; list-style: none; cursor: pointer; transition: background 220ms; }
.practice-item summary::-webkit-details-marker { display: none; }
.practice-item summary:hover, .practice-item[open] summary { background: #edf1e9; }
.practice-item summary:focus-visible { outline-offset: -3px; }
.card-number { color: #436963; font-size: 13px; }
.practice-name { display: block; font-size: clamp(22px, 2.1vw, 29px); line-height: 1.35; font-weight: 500; color: #123b4b; }
.practice-caption { display: block; color: #52686c; font-size: 14px; margin-top: 7px; }
.practice-icon { width: 28px; height: 28px; border: 1px solid #66857c; border-radius: 50%; position: relative; }
.practice-icon::before, .practice-icon::after { content: ''; position: absolute; background: #07516a; width: 10px; height: 1px; top: 12px; left: 8px; }
.practice-icon::after { transform: rotate(90deg); transition: transform 240ms; }
.practice-item[open] .practice-icon::after { transform: rotate(0); }
.practice-body { padding: 0 42px 30px 70px; color: #455f66; max-width: 62ch; }
.practice-body .text-link { color: #07516a; margin-top: 18px; }
.team { background: #eef1eb; padding-block: clamp(60px, 8svh, 88px); }
.team-layout { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 360px) minmax(0, 350px); gap: 28px clamp(28px, 4vw, 60px); align-items: center; justify-content: center; }
.team-eyebrow { grid-column: 1 / -1; grid-row: 1; text-align: center; }
.team-intro { grid-column: 2; grid-row: 2; padding-top: 0; text-align: center; }
.team-intro > p:not(.eyebrow) { margin-inline: auto; }
.team-intro h2 { font-size: clamp(32px, 3vw, 42px); margin-top: 0; }
.team-instruction { display: block; margin-top: 28px; font-size: 13px; color: #455f66; max-width: 26ch; }
.team-instruction { margin-inline: auto; }
.team-grid { display: contents; }
.team-grid > .team-card { grid-row: 2; }
.team-grid > .team-card:first-child { grid-column: 1; }
.team-grid > .team-card:last-child { grid-column: 3; }
.team-card { display: block; position: relative; overflow: visible; border: 0; border-radius: 12px; min-width: 0; perspective: 1600px; }
.partner-switch { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; clip-path: inset(50%); overflow: hidden; }
.partner-turn { position: relative; border-radius: inherit; height: clamp(480px, calc(100svh - 240px), 580px); transform-style: preserve-3d; transition: transform 720ms cubic-bezier(.25,.75,.25,1), box-shadow 240ms; box-shadow: 0 12px 28px -24px #073c4c80; }
.partner-face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; visibility: visible; transition: visibility 0s; }
.partner-front { background: #fff; display: flex; flex-direction: column; transform: rotateY(0deg); }
.portrait-placeholder { height: auto; flex: 1; min-height: 220px; position: relative; background: #d4ded4; color: #43635d; border-bottom: 1px solid #c3d1c6; }
.portrait-placeholder::before { content: ''; position: absolute; inset: 22px; border: 1px solid #b0c2b2; }
.portrait-placeholder > span { font-family: var(--brand-font); font-style: normal; font-size: 80px; opacity: .65; font-weight: 400; letter-spacing: -.045em; }
.portrait-placeholder > p { position: absolute; bottom: 38px; left: 24px; right: 24px; font-size: 12px; text-align: center; color: #3e5d56; }
.team-card:nth-child(2) .portrait-placeholder { background: #d0dde0; border-color: #bbced2; }
.team-card:nth-child(2) .portrait-placeholder::before { border-color: #aec4c9; }
.team-info { padding: 24px; flex: 0 0 auto; display: flex; flex-direction: column; }
.team-info .eyebrow { font-size: 10px; letter-spacing: .12em; }
.team-info h3 { font-size: 24px; line-height: 1.35; margin: 13px 0 0; letter-spacing: -.01em; }
.team-info > p:not(.eyebrow) { color: #455f66; line-height: 1.65; }
.profile-toggle, .profile-return { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; border: 0; border-top: 1px solid #cbd7d3; padding: 13px 10px; margin-top: 18px; background: transparent; color: #07516a; font-size: 14px; text-align: left; cursor: pointer; border-radius: 6px; min-height: 48px; transition: background 220ms, color 220ms, transform 180ms; }
.profile-toggle[hidden], .profile-return[hidden] { display: none; }
.profile-toggle span, .profile-return span { font-size: 22px; line-height: 1; }
.partner-back { background: #073c4c; color: #fff; padding: 26px; transform: rotateY(180deg); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
.partner-back .eyebrow { color: #c0ddd9; font-size: 10px; letter-spacing: .12em; }
.partner-back h3 { font-family: var(--brand-font); font-weight: 500; font-size: 26px; line-height: 1.3; margin-top: 20px; }
.partner-back dl { margin: 22px 0 0; }
.partner-back dl > div + div { margin-top: 16px; }
.partner-back dt { font-size: 12px; color: #c0ddd9; letter-spacing: .06em; }
.partner-back dd { margin: 7px 0 0; font-size: 15px; line-height: 1.65; }
.partner-quote { border-top: 1px solid #608185; padding-top: 18px; margin-top: 22px; margin-bottom: 18px; }
.partner-quote > span { font-family: Georgia, serif; font-size: 55px; color: #cbd9b8; line-height: .8; }
.partner-quote p { font-size: 16px; line-height: 1.65; margin-top: 8px; }
.profile-return { color: #fff; border-color: #608185; margin-top: auto; }
/* Ambas caras comparten siempre el mismo espacio, también sin JavaScript. */
.partner-switch:checked ~ .partner-turn { transform: rotateY(180deg); }
.partner-switch:not(:checked) ~ .partner-turn .partner-back, .partner-switch:checked ~ .partner-turn .partner-front { visibility: hidden; transition: visibility 0s linear 360ms; }
.partner-switch:focus-visible ~ .partner-turn { outline: 3px solid #36859c; outline-offset: 6px; }
.flip-ready .partner-face { cursor: pointer; }
.profile-toggle:hover { background: #edf3ee; }
.profile-return:hover { background: #ffffff14; }
.profile-toggle:active, .profile-return:active { transform: scale(.97); }
.profile-toggle span, .profile-return span { transition: transform 240ms; }
.profile-toggle:hover span { transform: translate(3px, -3px); }
.profile-return:hover span { transform: rotate(-25deg); }
.approach { width: 100%; margin: 0; border-radius: 0; background: #073c4c; color: #fff; position: relative; isolation: isolate; }
.approach::before { z-index: -1; }
.approach-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.approach .eyebrow { color: #c0ddd9; }
.approach-intro > p:not(.eyebrow) { color: #d1e5df; max-width: 43ch; margin-top: 26px; line-height: 1.8; }
.approach .button { margin-top: 32px; }
.steps { grid-template-columns: 1fr; gap: 0; border-left: 1px solid #618187; padding-left: 30px; margin-top: 8px; }
.steps > li { border: 0; padding: 0 0 35px; position: relative; display: grid; grid-template-columns: 25px 1fr; column-gap: 21px; }
.steps > li::before { content: ''; position: absolute; left: -35px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #cbd9b8; box-shadow: 0 0 0 5px #073c4c; }
.steps > li:last-child { padding-bottom: 0; }
.step-number { color: #c0ddd9; padding-top: 4px; }
.steps h3 { grid-column: 2; margin: 0 0 10px; font-size: 23px; max-width: none; letter-spacing: 0; }
.steps p { grid-column: 2; color: #d1e5df; max-width: 40ch; font-size: 16px; line-height: 1.75; }
.faq { background: var(--narrative-paper); background-image: var(--paper-pattern); }
.site-footer { background-image: var(--paper-pattern); }
.studio, .practices, .faq, .site-footer { background-size: 192px 192px, 100% 100%; }
.contact { background: #e9eeea; width: 100%; margin: 0; border-radius: 0; border-top: 1px solid #cbd7d3; }
/* La información aparece completa, sin entradas que reduzcan su opacidad. */
.reveal-pending, .reveal-visible { opacity: 1; transform: none; transition: none; }
/* Superficie legible sin JS; el cristal transparente se activa con contraste local. */
.compact-pill .glass-bg, .compact-pill.scrolled .glass-bg, .compact-pill:hover .glass-bg {
  background: rgb(248 250 248 / 92%);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  box-shadow: inset 0 1px 1px #ffffff8c, inset 0 -1px 1px #ffffff38;
  transition: box-shadow 300ms;
}
.compact-pill.glass-reactive .glass-bg { background: rgb(255 255 255 / 8%); }
.compact-pill .glass-bg::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, #ffffff14, transparent 45%, transparent 75%, #ffffff08); }
.compact-pill .glass-bg::after { background: radial-gradient(ellipse at var(--shine-x, 28%) var(--shine-y, 0%), #ffffff1f, #ffffff03 58%, transparent 82%); }
.compact-pill.glass-reactive [data-glass-ink="light"] { color: #fff; text-shadow: 0 1px 3px #001a2680; }
.compact-pill.glass-reactive [data-glass-ink="dark"] { color: #04191f; text-shadow: 0 1px 2px #ffffff55; }
.compact-pill.glass-reactive .brand[data-glass-ink="light"] img { filter: brightness(0) invert(1); }
.compact-pill.glass-reactive .brand[data-glass-ink="dark"] img { filter: brightness(0) saturate(100%); }
.compact-pill.glass-reactive [data-glass-protection="true"] { background: transparent; box-shadow: none; }
.compact-pill.glass-reactive [data-glass-protection="true"][data-glass-ink="light"] { text-shadow: 0 1px 3px #001a26, 0 0 2px #001a26; -webkit-text-stroke: .2px #001a2680; }
.compact-pill.glass-reactive [data-glass-protection="true"][data-glass-ink="dark"] { text-shadow: 0 1px 3px #ffffff, 0 0 2px #ffffff; -webkit-text-stroke: .2px #ffffff80; }
.compact-pill.glass-reactive .nav-links a::after { background: currentColor; }
.compact-pill.glass-reactive .nav-links a, .compact-pill.glass-reactive .nav-phone, .compact-pill.glass-reactive .menu-toggle { transition: color 200ms, text-shadow 200ms, background 200ms, transform 180ms; }
.compact-pill .brand-symbol img { transition: filter 400ms; }
.compact-pill .nav-links a, .compact-pill .nav-phone { color: #123b4b; transition: background 220ms, transform 180ms; }
.compact-pill .nav-links a:active { transform: translateY(1px); }
.compact-pill .nav-cta { background: #07516a; transition: color 350ms, background-color 350ms, border-color 350ms, transform 220ms, box-shadow 250ms; }
.compact-pill .menu-toggle { transition: color 350ms, background 220ms, transform 180ms; }
.compact-pill .menu-toggle:active { transform: scale(.94); }
.hero-bottom > a { transition: background 220ms, box-shadow 220ms, transform 180ms; }
.hero-bottom > a:hover { background: #fff; box-shadow: 0 4px 16px #073c4c26; }
.hero-bottom > a:active { transform: translateY(1px); }
.text-link { transition: color 220ms, border-color 220ms, transform 180ms; }
.text-link:active { transform: translateY(1px); }
.hero-motion-toggle { transition: background 220ms, color 220ms, transform 180ms, box-shadow 220ms; }
.hero-motion-toggle:hover { background: #fff; box-shadow: 0 4px 16px #073c4c33; }
.hero-motion-toggle:active { transform: scale(.94); }
.practice-item { overflow: hidden; }
.practice-item.is-closing .practice-icon::after { transform: rotate(90deg); }
.practice-item summary:active { background: #e2eade; }
@media (max-width: 800px) {
  .compact-pill.nav-enhanced .nav-menu { display: flex; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.985); transform-origin: top; pointer-events: none; transition: opacity 240ms, transform 280ms cubic-bezier(.22,1,.36,1), visibility 240ms; }
  .compact-pill.nav-enhanced.menu-open .nav-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .partner-turn { box-shadow: 0 16px 35px -22px #073c4c66; }
}
@media (prefers-reduced-transparency: reduce) {
  .compact-pill .glass-bg, .compact-pill.scrolled .glass-bg, .compact-pill:hover .glass-bg { background: #f4f5f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 1100px) {
  .studio > .wrap, .approach > .wrap, .contact > .wrap { width: calc(100% - 72px); }
  .hero h1 { font-size: clamp(40px, 4.5vw, 50px); }
  .practice-layout { gap: 50px; }
  .team-layout { gap: 26px; }
  .team-info, .partner-back { padding: 24px; }
  .team-info h3 { font-size: 22px; }
  .approach-layout { gap: 60px; }
}
@media (max-width: 900px) {
  .hero h1 { max-width: 45%; font-size: 43px; }
  .hero-actions { gap: 20px; }
  .studio-layout { gap: 40px; }
  .team-layout { grid-template-columns: repeat(2, minmax(0, 350px)); gap: 36px 24px; }
  .team-intro { grid-column: 1 / -1; grid-row: 2; }
  .team-grid > .team-card { grid-row: 3; }
  .team-grid > .team-card:last-child { grid-column: 2; }
  .team-intro h2 br { display: none; }
  .team-intro > p:not(.eyebrow) { max-width: 48ch; }
  .team-instruction { max-width: none; margin-top: 14px; }
}
@media (max-width: 800px) {
  .hero { display: block; height: auto; min-height: 0; padding-bottom: 285px; }
  .hero-photo { inset: auto 0 0; height: 285px; background-position: center 60%; }
  .hero-photo-court { background-position: center 52%; }
  .hero-wash { inset: 0 0 285px; }
  .hero-content { padding-top: 145px; padding-bottom: 45px; }
  .hero-content > *, .hero h1 { max-width: 100%; }
  .hero h1 { font-size: clamp(38px, 7.5vw, 48px); max-width: 18ch; }
  .hero-description { font-size: 18px; }
  .hero-actions { max-width: 100%; gap: 24px; }
  .hero-bottom { bottom: 20px; }
  .hero-bottom > span { display: none; }
  .hero-bottom > a { margin-left: 0; }
  .hero-motion-toggle { bottom: 19px; right: 24px; }
  .studio > .wrap, .approach > .wrap, .contact > .wrap { width: calc(100% - 40px); }
  .studio-layout, .practice-layout, .approach-layout { grid-template-columns: 1fr; gap: 35px; }
  .studio h2, .practice-intro h2, .team-intro h2, .approach h2 { font-size: clamp(30px, 7vw, 38px); }
  .studio-copy { padding-top: 0; max-width: none; }
  .practice-layout { padding-top: 45px; }
  .practice-intro > p:not(.eyebrow) { max-width: none; }
  .practice-item summary { gap: 15px; grid-template-columns: 26px 1fr 28px; padding-block: 24px; }
  .practice-name { font-size: 23px; }
  .practice-body { padding-left: 51px; padding-right: 15px; }
  .steps { margin-top: 15px; }
}
@media (max-width: 540px) {
  .hero-actions { gap: 20px; }
  .hero .eyebrow { font-size: 10px; }
  .team-layout { grid-template-columns: minmax(0, 390px); gap: 30px; }
  .team-grid > .team-card:last-child { grid-column: 1; grid-row: 4; }
  .team-info, .partner-back { padding: 28px; }
  .team-info h3 { font-size: 24px; }
  .partner-turn { height: 560px; }
  .partner-back h3 { font-size: 28px; }
}
@media (max-width: 360px) {
  .team-info, .partner-back { padding: 24px; }
  .partner-turn { height: 600px; }
  .partner-back h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wash::before, .hero-wash::after { animation: none !important; }
  .partner-turn, .partner-switch:checked ~ .partner-turn { transform: none; transition: none; }
  .partner-back { transform: none; }
  .partner-switch:not(:checked) ~ .partner-turn .partner-back, .partner-switch:checked ~ .partner-turn .partner-front { visibility: hidden; }
}

/* Portada inmersiva: las tres escenas comparten una sola superficie de lectura. */
.hero {
  display: flex;
  align-items: center;
  height: min(960px, 100svh);
  min-height: 720px;
  padding-bottom: 0;
  background: #073c4c;
}
.hero .hero-photo { inset: 0; height: auto; background-position: center; filter: none; }
.hero .hero-photo-court { background-position: center 48%; }
.hero .hero-photo-desk { background-position: center; }
.hero .hero-wash {
  inset: 0;
  background: linear-gradient(180deg, rgb(3 31 44 / 72%), rgb(4 38 53 / 36%) 35%, rgb(3 31 44 / 48%) 100%),
    radial-gradient(ellipse at 50% 54%, rgb(4 38 53 / 66%) 0%, rgb(5 45 61 / 44%) 48%, rgb(5 42 57 / 26%) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}
.hero .hero-wash::before, .hero .hero-wash::after { display: none; }
.hero .hero-content { padding-top: 176px; padding-bottom: 112px; text-align: center; }
.hero .hero-content > * { max-width: 760px; margin-inline: auto; }
.hero h1 { max-width: 860px; font-size: clamp(46px, 5.6vw, 80px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; margin-block: 26px; }
.hero .eyebrow { color: #c0ddd9; font-size: 12px; letter-spacing: .2em; }
.hero .hero-description { font-size: 22px; color: #e0ede9; }
.hero .hero-actions { max-width: none; margin-top: 36px; justify-content: center; }
.hero .hero-bottom { bottom: 34px; }
.hero .hero-bottom > span { display: block; max-width: calc(100% - 70px); }
.hero .hero-motion-toggle { top: auto; bottom: 24px; right: max(36px, calc((100% - 1280px)/2)); background: #ffffff12; border-color: #ffffff55; color: #fff; backdrop-filter: blur(10px); }
.hero .hero-motion-toggle:hover { background: #ffffff26; }
/* El nav nace integrado. Al separarse, la superficie se redondea y recoge luz. */
.pillbar.compact-pill {
  top: 0;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  transition: top 650ms cubic-bezier(.22,1,.36,1), width 650ms cubic-bezier(.22,1,.36,1), border-radius 650ms cubic-bezier(.22,1,.36,1), box-shadow 650ms;
}
.compact-pill .nav-inner { width: min(1280px, calc(100% - 112px)); min-height: 108px; transition: min-height 650ms cubic-bezier(.22,1,.36,1), width 650ms; }
.compact-pill .brand-symbol { width: 64px; height: 58px; transition: width 650ms, height 650ms; }
.pillbar.compact-pill:not(.nav-detached) .glass-bg { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.pillbar.compact-pill:not(.nav-detached)::before,
.pillbar.compact-pill:not(.nav-detached) .glass-bg::before,
.pillbar.compact-pill:not(.nav-detached) .glass-bg::after { opacity: 0; }
.compact-pill:not(.nav-detached) .brand-symbol img { filter: brightness(0) invert(1); }
.compact-pill:not(.nav-detached) .nav-links a,
.compact-pill:not(.nav-detached) .menu-toggle { color: #fff; }
.compact-pill:not(.nav-detached) .nav-links a::after { background: currentColor; }
.compact-pill:not(.nav-detached) .nav-cta { background: #ffffff12; border-color: #ffffff65; color: #fff; }
.compact-pill:not(.nav-detached) .nav-cta:hover { background: #ffffff26; }
.pillbar.compact-pill.nav-detached {
  top: 18px;
  width: min(1360px, calc(100% - 48px));
  border-radius: 999px;
  box-shadow: 0 16px 40px -20px #062f4466;
}
.compact-pill.nav-detached .nav-inner { width: calc(100% - 44px); min-height: 64px; }
.compact-pill.nav-detached .brand-symbol { width: 46px; height: 42px; }
.pillbar.compact-pill.nav-detached .glass-bg {
  background: rgb(248 250 248 / 92%);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  box-shadow: inset 0 1px 1px #ffffffcc, inset 0 -1px 1px #ffffff66;
}
.pillbar.compact-pill.nav-releasing { animation: nav-release 850ms both; }
@keyframes nav-release {
  0% { transform: translateX(-50%) translateY(-10px) scaleX(1.025) scaleY(.94); }
  48% { transform: translateX(-50%) translateY(3px) scaleX(.995) scaleY(1.035); }
  75% { transform: translateX(-50%) translateY(-1px) scaleX(1.002) scaleY(.99); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}
@media (max-width: 1100px) {
  .compact-pill .nav-inner { width: calc(100% - 72px); }
}
@media (max-width: 800px) {
  .hero { height: 94svh; min-height: 650px; max-height: none; }
  .hero .hero-content { padding-top: 144px; padding-bottom: 100px; }
  .hero h1 { max-width: 18ch; font-size: clamp(40px, 7.5vw, 60px); }
  .hero .hero-description { font-size: 19px; }
  .hero .hero-wash { background: linear-gradient(180deg, #032635b8, #042d3bb8 58%, #03263594); }
  .compact-pill .nav-inner { width: calc(100% - 40px); min-height: 88px; }
  .compact-pill .brand-symbol { width: 56px; height: 50px; }
  .pillbar.compact-pill.nav-detached { top: 12px; width: calc(100% - 24px); }
  .compact-pill.nav-detached .nav-inner { min-height: 60px; width: calc(100% - 28px); }
  .compact-pill.nav-detached .brand-symbol { width: 42px; height: 38px; }
  .compact-pill:not(.nav-detached) .nav-menu { left: 12px; right: 12px; }
  .compact-pill:not(.nav-detached) .nav-menu .nav-links a { color: #123b4b; }
  .compact-pill:not(.nav-detached) .nav-menu .nav-cta { background: #07516a; border-color: #07516a; color: #fff; }
  .hero .hero-motion-toggle { right: 20px; }
  .hero .hero-bottom { bottom: 36px; font-size: 11px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .hero .hero-actions { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pillbar.compact-pill, .compact-pill .nav-inner, .compact-pill .brand-symbol { transition: none; }
  .pillbar.compact-pill.nav-releasing { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pillbar.compact-pill.nav-detached .glass-bg { background: #f4f5f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Vidrio original: recoge el fondo; la tinta se adapta a cada control. */
.pillbar.compact-pill.nav-detached.glass-reactive .glass-bg { background: rgb(255 255 255 / 8%); }

/* Entrées éditoriales : une seule apparition, à mesure que la lecture avance. */
.studio .eyebrow { --entry-delay: 0ms; }
.studio h2 { --entry-delay: 90ms; }
.studio-copy .fine-rule { --entry-delay: 130ms; }
.studio-copy > p:first-of-type { --entry-delay: 180ms; font-size: clamp(23px, 2.15vw, 29px); line-height: 1.45; max-width: 26ch; }
.studio-copy > p:nth-of-type(2) { --entry-delay: 260ms; }
.studio-copy > .text-link { --entry-delay: 320ms; }
.practice-intro > :nth-child(2) { --entry-delay: 80ms; }
.practice-intro > :nth-child(3) { --entry-delay: 160ms; }
.practice-intro > :nth-child(4) { --entry-delay: 240ms; }
.studio .reveal-pending, .practices .reveal-pending { opacity: 0; transform: translateY(18px); }
.studio .reveal-visible, .practices .reveal-visible { animation: editorial-entry 760ms cubic-bezier(.22,1,.36,1) both; animation-delay: var(--entry-delay, var(--reveal-delay, 0ms)); }
@keyframes editorial-entry {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Des lignes ouvertes et des détails discrets, sans ajouter de matières fictives. */
.practice-list { border-top-color: #9cb5b0; }
.practice-item { border-bottom-color: #c6d3cf; }
.practice-item summary { padding: 34px 4px; gap: 28px; transition: padding 280ms, background 280ms; }
.practice-item .card-number { align-self: start; padding-top: 7px; font-size: 11px; letter-spacing: .14em; color: #62817b; }
.practice-name { font-size: clamp(24px, 2.3vw, 32px); font-weight: 400; letter-spacing: -.02em; }
.practice-caption { font-size: 12px; color: #60746f; letter-spacing: .025em; margin-top: 10px; }
.practice-icon { border-color: #a4bbb4; transition: background 240ms, border-color 240ms; }
.practice-item summary:hover, .practice-item[open] summary { background: transparent; }
.practice-item summary:hover .practice-icon, .practice-item[open] .practice-icon { background: #e1eae3; border-color: #66857b; }
.practice-body { padding-top: 0; padding-bottom: 32px; line-height: 1.85; }
@media (hover: hover) and (pointer: fine) {
  .practice-item summary:hover { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 800px) {
  .practice-item summary { padding-block: 27px; gap: 16px; }
  .studio-copy > p:first-of-type { max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) {
  .studio .reveal-pending, .practices .reveal-pending,
  .studio .reveal-visible, .practices .reveal-visible { opacity: 1; transform: none; animation: none; }
  .practice-item summary { transition: none; }
}
@media print {
  .studio .reveal-pending, .practices .reveal-pending,
  .studio .reveal-visible, .practices .reveal-visible { opacity: 1; transform: none; animation: none; }
}

/* Presentación breve del estudio y transición al mosaico continuo. */
.studio-editorial { padding-bottom: clamp(60px, 7vw, 105px); }
.studio-editorial .studio-layout { grid-template-columns: 1.1fr 1fr; gap: 50px 90px; }
.studio-editorial .studio-heading h2 { font-size: clamp(34px, 3.7vw, 56px); line-height: 1.16; }
.studio-editorial .studio-copy { max-width: 47ch; justify-self: end; }
.practices-editorial { padding: 0; }
.practice-heading { display: grid; grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; border-top: 1px solid #bdcec8; padding-block: clamp(56px, 6vw, 88px); }
.practice-heading .practice-intro h2 { margin: 20px auto 0; max-width: 22ch; text-wrap: balance; }
.practice-context { max-width: 62ch; padding-bottom: 3px; color: #455f66; line-height: 1.8; }
.practice-context > p:first-child { font-size: 19px; color: #123b4b; }
.practice-context .mosaic-note { font-size: 12px; line-height: 1.75; margin-top: 16px; }
.practice-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; background: #dce5df; }
.mosaic-tile { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(300px, 25vw, 370px); color: #fff; background: #073c4c; display: flex; align-items: end; padding: clamp(24px, 2.8vw, 42px); }
.mosaic-tile:nth-child(2n+1) { --mosaic-x: -20px; }
.mosaic-tile:nth-child(2n) { --mosaic-x: 20px; }
.mosaic-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms cubic-bezier(.22,1,.36,1); }
.mosaic-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #032c3d66, #032c3de6); transition: opacity 500ms; }
.mosaic-light { color: #073c4c; background: #dae5de; }
.mosaic-light::before { background: linear-gradient(180deg, #e8eee3b8, #e8eee3f2); }
.mosaic-number { position: absolute; top: 30px; left: clamp(24px, 2.8vw, 42px); font-size: 11px; letter-spacing: .15em; opacity: .8; }
.mosaic-content { width: 100%; max-width: 48ch; }
.mosaic-label { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; margin: 0 0 16px; }
.mosaic-content h3 { font-size: clamp(25px, 2.4vw, 35px); line-height: 1.15; font-weight: 400; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.mosaic-detail { margin-top: 22px; }
.mosaic-detail > p { font-size: 14px; line-height: 1.7; max-width: 39ch; }
.mosaic-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: inherit; border-top: 1px solid currentColor; padding-block: 16px 4px; margin-top: 22px; font-size: 13px; }
.mosaic-link span { font-size: 24px; transition: transform 350ms; }
.mosaic-link:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
.mosaic-tile:focus-within .mosaic-image { transform: scale(1.035); }
.practices .mosaic-tile.reveal-pending { opacity: 0; transform: translate(var(--mosaic-x, 0), 36px); }
.practices .mosaic-tile.reveal-visible { animation: mosaic-assemble 950ms cubic-bezier(.22,1,.36,1) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes mosaic-assemble { from { opacity: 0; transform: translate(var(--mosaic-x, 0), 36px); } to { opacity: 1; transform: translate(0, 0); } }
@media (hover: hover) and (pointer: fine) {
  .mosaic-detail { opacity: 0; transform: translateY(12px); transition: opacity 400ms, transform 500ms cubic-bezier(.22,1,.36,1); }
  .mosaic-tile:hover .mosaic-detail, .mosaic-tile:focus-within .mosaic-detail { opacity: 1; transform: none; }
  .mosaic-tile:hover .mosaic-image { transform: scale(1.035); }
  .mosaic-tile:hover::before { opacity: .93; }
  .mosaic-link:hover span { transform: translate(4px, -4px); }
}
@media (max-width: 1000px) {
  .studio-editorial .studio-layout { gap: 44px; }
}
@media (max-width: 800px) {
  .studio-editorial .studio-layout { grid-template-columns: 1fr; gap: 32px; }
  .studio-editorial .studio-copy { justify-self: start; max-width: 52ch; }
  .practice-heading { grid-template-columns: 1fr; gap: 24px; padding-block: 42px; }
  .practice-context { max-width: 52ch; }
  .practice-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic-tile { min-height: 330px; padding: 30px 24px; }
  .mosaic-tile:nth-child(4n+1), .mosaic-tile:nth-child(4n) { color: #073c4c; }
  .mosaic-tile:nth-child(4n+1)::before, .mosaic-tile:nth-child(4n)::before { background: linear-gradient(180deg, #e8eee3b8, #e8eee3f2); }
  .mosaic-tile:nth-child(4n+2), .mosaic-tile:nth-child(4n+3) { color: #fff; }
  .mosaic-tile:nth-child(4n+2)::before, .mosaic-tile:nth-child(4n+3)::before { background: linear-gradient(180deg, #032c3d66, #032c3de6); }
  .mosaic-detail { opacity: 1; transform: none; }
  .mosaic-number { top: 24px; left: 24px; }
}
@media (max-width: 560px) {
  .practice-mosaic { grid-template-columns: 1fr; }
  .mosaic-tile { min-height: 320px; padding: 34px 28px; }
  .mosaic-number { left: 28px; }
  .practice-mosaic .mosaic-tile:nth-child(odd) { color: #073c4c; }
  .practice-mosaic .mosaic-tile:nth-child(odd)::before { background: linear-gradient(180deg, #e8eee3b8, #e8eee3f2); }
  .practice-mosaic .mosaic-tile:nth-child(even) { color: #fff; }
  .practice-mosaic .mosaic-tile:nth-child(even)::before { background: linear-gradient(180deg, #032c3d66, #032c3de6); }
}
@media (prefers-reduced-motion: reduce), print {
  .mosaic-image, .mosaic-detail, .mosaic-link span { transition: none; transform: none; }
  .practices .mosaic-tile.reveal-pending, .practices .mosaic-tile.reveal-visible { opacity: 1; transform: none; animation: none; }
}

/* Un único panel de lectura, con el contenido de las seis áreas precargado. */
html { scrollbar-gutter: stable; }
html.practice-panel-open { overflow: hidden; }
.practice-fallbacks[hidden] { display: none; }
.practice-fallbacks { padding-block: 36px; }
.practice-fallback { border-bottom: 1px solid #b9cdc8; padding-block: 18px; scroll-margin-top: 110px; }
.practice-fallback summary { cursor: pointer; font-size: 20px; }
.mosaic-link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.mosaic-tile:focus-within { outline: 2px solid currentColor; outline-offset: -8px; }
.practice-dialog { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(640px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: #f8f8f3; color: #123b4b; overscroll-behavior: contain; box-shadow: -24px 0 90px #031f4433; }
.practice-dialog::backdrop { background: #031f4480; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.practice-dialog[open] { animation: practice-panel-enter 460ms cubic-bezier(.22,1,.36,1) both; }
.practice-dialog-shell { min-height: 100%; }
.practice-dialog-toolbar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: end; margin: 0; padding: 18px 26px; background: #f8f8f3f5; border-bottom: 1px solid #cbd7d3; }
.practice-dialog-close { display: inline-flex; align-items: center; gap: 18px; border: 1px solid #afc4bd; border-radius: 999px; padding: 9px 18px; min-height: 44px; font: inherit; font-size: 13px; color: #073c4c; background: transparent; cursor: pointer; }
.practice-dialog-close span { font-size: 26px; line-height: 1; }
.practice-dialog-close:hover { background: #e8eee8; }
.practice-dialog-close:focus-visible { outline: 2px solid #07516a; outline-offset: 4px; }
.practice-dialog-image { display: block; width: 100%; height: 190px; object-fit: cover; }
.area-sheet-copy { padding: clamp(26px, 4vw, 48px); }
.area-sheet-copy h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; margin: 18px 0 22px; }
.area-sheet-copy .area-sheet-lead { font-size: 19px; line-height: 1.6; color: #365b62; }
.area-sheet-copy h3 { margin: 30px 0 10px; font-size: 16px; font-weight: 500; }
.area-sheet-copy > p:not(.eyebrow):not(.area-sheet-lead) { color: #526b6c; line-height: 1.8; font-size: 15px; }
.area-sheet-copy .area-contact { margin-top: 34px; gap: 22px; }
@keyframes practice-panel-enter { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .practice-dialog[open] { animation: none; } }

/* Contenidos confirmados: títulos de especialidad y perfiles completos. */
.hero h1 { max-width: 1000px; font-size: clamp(42px, 4.8vw, 68px); }
.hero h1 > span { display: inline-block; max-width: 22ch; }
.hero .hero-content > .hero-description { max-width: 65ch; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.65; }
.practice-heading .practice-intro { max-width: 850px; }
.practice-heading .practice-intro h2 { max-width: 26ch; }
.practice-heading .practice-description { max-width: 70ch; margin: 24px auto 0; font-size: 16px; line-height: 1.85; color: #455f66; }
.mosaic-content h3 { font-size: clamp(22px, 1.9vw, 29px); line-height: 1.2; text-wrap: pretty; }
.mosaic-tile { min-height: clamp(360px, 29vw, 440px); }
.area-independence { margin-top: 32px; padding-top: 24px; border-top: 1px solid #b9cdc8; }
.area-independence h3 { margin-top: 0; line-height: 1.5; }
.area-independence p { font-size: 14px; line-height: 1.85; color: #526b6c; }
.team-info h3 { font-size: 22px; }
.team-info > p:not(.eyebrow) { font-size: 13px; margin-top: 9px; }
.partner-biography { margin-block: 22px; }
.partner-biography p { font-size: 14px; line-height: 1.8; }
.partner-biography p + p { margin-top: 18px; }
.partner-back .profile-return { flex-shrink: 0; }
@media (max-width: 800px) {
  .hero h1 { font-size: clamp(36px, 6.2vw, 50px); max-width: 100%; }
  .hero .hero-content { padding-top: 130px; padding-bottom: 100px; }
  .practice-heading .practice-description { font-size: 15px; }
  .mosaic-tile { min-height: 390px; }
}
@media (max-width: 560px) {
  .hero { min-height: 760px; }
  .mosaic-tile { min-height: 330px; }
}

/* Jerarquía de portada y una introducción de práctica más horizontal. */
.hero .hero-content > h1 { max-width: 1020px; font-size: clamp(44px, 5vw, 72px); line-height: 1.12; margin-block: 24px 28px; }
.hero h1 > .hero-specialty { display: block; max-width: none; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; margin-bottom: 22px; color: #fff; }
.hero h1 > .hero-service { display: block; max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.hero .hero-content > .hero-description { max-width: 64ch; font-size: clamp(17px, 1.4vw, 20px); }
.hero .hero-content { padding-top: 144px; padding-bottom: 100px; }
.practices-editorial .practice-heading { gap: 0; padding-block: clamp(44px, 4vw, 62px); }
.practice-heading .practice-intro { width: 100%; max-width: 1100px; }
.practice-heading .practice-intro h2 { max-width: none; margin-top: 18px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.2; }
.practice-heading .practice-intro h2 > span { display: block; }
.practice-heading .practice-intro > .practice-description { width: 100%; max-width: 70ch; margin: 22px auto 0; font-size: 17px; line-height: 1.75; }
@media (max-width: 800px) {
  .hero .hero-content > h1 { font-size: clamp(36px, 6.8vw, 52px); }
  .hero h1 > .hero-specialty { font-size: clamp(28px, 4.8vw, 36px); margin-bottom: 18px; }
  .hero .hero-content { padding-top: 126px; padding-bottom: 96px; }
  .practice-heading .practice-intro h2 > span { display: inline; }
  .practice-heading .practice-intro > .practice-description { font-size: 15px; max-width: 65ch; }
}

/* Información de datos junto al formulario, sin un banner de cookies. */
.contact-privacy { margin: 4px 0 18px; padding: 0; background: transparent; border: 0; border-radius: 0; scroll-margin-top: 110px; }
.contact-privacy p { font-size: 12px; line-height: 1.8; color: #455f66; }
.contact-privacy summary { cursor: pointer; font-size: 12px; line-height: 1.65; color: #07516a; padding-block: 7px; }
.contact-privacy-detail { padding: 0 0 8px 16px; border-left: 1px solid #cbd7d3; }
.contact-privacy summary:focus-visible { outline: 2px solid #07516a; outline-offset: 3px; }
.contact-privacy-detail p { margin-top: 12px; }
.contact-privacy a { color: #07516a; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Orden completo del recorrido, sin comprimir los enlaces en tablet. */
@media (min-width: 801px) {
  .compact-pill .nav-links { gap: clamp(12px, 1.65vw, 26px); }
  .compact-pill .nav-links a { font-size: 14px; white-space: nowrap; }
  .compact-pill .nav-menu { gap: 20px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .compact-pill .nav-inner { gap: 20px; }
  .compact-pill .nav-cta { padding-inline: 12px; }
  .compact-pill .nav-links { gap: 12px; }
  .compact-pill .nav-links a { font-size: 12px; }
}

/* Tres entradas principales; los destinos secundarios se agrupan por recorrido. */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown > summary { position: relative; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 0; list-style: none; font-size: 14px; font-weight: 500; color: #123b4b; cursor: pointer; white-space: nowrap; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary:focus-visible { outline: 2px solid #36859c; outline-offset: 4px; border-radius: 4px; }
.nav-chevron { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 220ms; }
.nav-dropdown[open] > summary .nav-chevron { transform: translateY(2px) rotate(225deg); }
.nav-dropdown[data-current="true"] > summary::after { content: ''; position: absolute; left: 0; right: 15px; bottom: 3px; height: 1px; background: currentColor; }
.nav-dropdown-panel { position: absolute; left: -20px; top: calc(100% + 14px); min-width: 240px; padding: 10px; border-radius: 16px; border: 1px solid #ffffffb3; background: rgb(255 255 255 / 8%); box-shadow: 0 16px 36px -16px #073c4c55, inset 0 1px 1px #ffffff55; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.compact-pill .nav-dropdown-panel a, .compact-pill:not(.nav-detached) .nav-dropdown-panel a { display: flex; padding: 12px 14px; min-height: 44px; color: #123b4b; font-size: 13px; border-radius: 8px; text-shadow: none; }
.compact-pill .nav-dropdown-panel a:hover { background: #ffffff24; }
.compact-pill .nav-dropdown-panel a::after { display: none; }
.compact-pill .nav-dropdown-panel a[aria-current] { background: #ffffff24; font-weight: 500; }
.compact-pill:not(.nav-detached) .nav-dropdown > summary { color: #fff; }
@media (min-width: 801px) {
  .compact-pill .nav-links { justify-content: flex-start; gap: clamp(18px, 2.6vw, 40px); }
  .compact-pill .nav-links > * { transform: translateX(0); transition: transform 650ms cubic-bezier(.22,1,.36,1); }
  .compact-pill.nav-detached .nav-links > * { transform: translateX(0); }
  .compact-pill .nav-links > a:active { transform: translateX(0) translateY(1px); }
  .compact-pill.nav-detached .nav-links > a:active { transform: translateX(0) translateY(1px); }
}
@media (max-width: 800px) {
  .nav-dropdown > summary, .compact-pill:not(.nav-detached) .nav-dropdown > summary { padding: 12px; font-size: 16px; color: #123b4b; justify-content: space-between; }
  .nav-dropdown-panel { position: static; min-width: 0; padding: 2px 0 8px 14px; margin-left: 12px; border: 0; border-left: 1px solid #cbd7d3; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; }
  .nav-dropdown[data-current="true"] > summary::after { left: 12px; right: 30px; }
}
@media (prefers-reduced-motion: reduce) { .compact-pill .nav-links > *, .nav-chevron { transition: none; } }

/* Puente de hover continuo entre el control y el panel de vidrio. */
@media (min-width: 801px) {
  .nav-dropdown-panel::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
  .compact-pill:not(.nav-detached) .nav-dropdown-panel a { color: #fff; text-shadow: 0 1px 3px #001a2680; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-dropdown-panel { background: #f4f5f3; }
  .compact-pill:not(.nav-detached) .nav-dropdown-panel a { color: #123b4b; text-shadow: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-dropdown-panel { background: #f4f5f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .compact-pill:not(.nav-detached) .nav-dropdown-panel a { color: #123b4b; text-shadow: none; }
}

/* Vidrio ligero: fondo visible, reflejos luminosos y apertura breve hacia abajo. */
@media (min-width: 801px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav-dropdown-panel {
      background: rgb(255 255 255 / 4%);
      border-color: #ffffff66;
      border-bottom-color: #ffffff24;
      backdrop-filter: blur(10px) saturate(165%) brightness(1.06);
      -webkit-backdrop-filter: blur(10px) saturate(165%) brightness(1.06);
      box-shadow: 0 14px 34px -19px #031f4459, inset 0 1px 1px #ffffffa6, inset 0 -1px 1px #ffffff30;
    }
    .nav-dropdown-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, #ffffff24, transparent 35%, transparent 70%, #ffffff0a); }
  }
  .nav-dropdown[open] > .nav-dropdown-panel { transform-origin: 50% 0; animation: nav-glass-unfold 280ms cubic-bezier(.22,1,.36,1) both; }
  .compact-pill .nav-dropdown-panel a { transition: background 180ms, color 180ms, text-shadow 180ms; }
  @keyframes nav-glass-unfold {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
@media (min-width: 801px) and (prefers-reduced-transparency: reduce) {
  .nav-dropdown-panel { background: #f4f5f3; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-dropdown-panel::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown[open] > .nav-dropdown-panel { animation: none; }
}

/* Tarjetas de socios: fotografía a sangre con el nombre sobre un velo petróleo. */
.partner-front { background: #073c4c; }
.partner-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: 0; transition: transform 1200ms cubic-bezier(.2,.7,.2,1); }
.partner-front::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #052c38 0%, #073c4cee 24%, #073c4c80 44%, #073c4c00 64%); transition: opacity 600ms; }
.partner-front::after { content: ''; position: absolute; z-index: 2; inset: 14px; border: 1px solid #ffffff4d; border-radius: 10px; pointer-events: none; }
.partner-front .team-info { position: relative; z-index: 3; margin-top: auto; padding: 28px 30px 26px; color: #fff; }
.partner-front .team-info h3 { color: #fff; font-size: clamp(25px, 2.1vw, 30px); line-height: 1.2; }
.partner-front .team-info > p { color: #d3e6e3; font-size: 13.5px; line-height: 1.65; margin-top: 12px; max-width: 34ch; }
.partner-front .profile-toggle { color: #fff; border-top-color: #ffffff47; border-radius: 0; padding-inline: 0; margin-top: 20px; }
.partner-front .profile-toggle:hover { background: transparent; color: #c0ddd9; }
@media (hover: hover) {
  .team-card:hover .partner-portrait { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-portrait { transition: none; }
  .team-card:hover .partner-portrait { transform: none; }
}
