/* =========================================================
   ULTRON · Landing page
   Paleta: naranja, azul oscuro y blanco
   ========================================================= */
:root {
  --navy: #0f2747;
  --navy-900: #0b1b33;
  --navy-800: #13305a;
  --orange: #f47b20;
  --orange-600: #e0650c;
  --orange-50: #fff3e9;
  --white: #ffffff;
  --mist: #f3f6fb;
  --ink: #0f2747;
  --text: #3e4c63;
  --line: #e3e8f0;
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(15, 39, 71, .35);
  --shadow-sm: 0 10px 26px -18px rgba(15, 39, 71, .4);
  --head: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font: 700 15.5px/1 var(--body); padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 14px 28px -14px rgba(244, 123, 32, .9); }
.btn-orange:hover { background: var(--orange-600); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.arr { display: inline-block; width: 15px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.arr::after {
  content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg);
}

.kicker {
  font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 12px;
}
.title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }

/* ---------- Encabezado ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15, 39, 71, .5); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--head); color: var(--navy); letter-spacing: .01em; }
.logo img { width: 40px; height: 40px; object-fit: contain; }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-menu > a:not(.btn) { white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--navy); position: relative; padding: 6px 0; }
.nav-menu > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-menu > a:not(.btn):hover::after, .nav-menu > a.active::after { transform: scaleX(1); }
.nav-panel { display: inline-flex; align-items: center; gap: 6px; }
.nav-panel svg { width: 17px; height: 17px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--orange-50); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 110px; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); overflow: hidden; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-lines path { fill: none; stroke: var(--orange); stroke-width: 1.4; opacity: .55; vector-effect: non-scaling-stroke; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; line-height: 1.02; }
.hero h1 span { color: var(--orange); }
.hero-lead { margin-top: 24px; font-size: 18px; max-width: 470px; color: var(--text); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 30px; padding-left: 14px; border-left: 3px solid var(--orange); font-size: 14px; font-weight: 600; color: var(--text); }

.hero-media { position: relative; justify-self: end; width: min(100%, 470px); }
.hero-photo {
  position: relative; overflow: hidden; aspect-ratio: 603 / 760;
  border-radius: 46% 22% 40% 24% / 22% 30% 26% 40%; box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-media::before {
  content: ""; position: absolute; inset: -18px -22px auto auto; width: 70%; height: 70%;
  border: 2px solid rgba(244, 123, 32, .5); border-radius: 50%; border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(15deg); pointer-events: none;
}
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow); font: 700 15px/1.15 var(--head); color: var(--navy);
}
.chip svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-vision { top: 6%; left: -10%; animation: flotar 6s ease-in-out infinite; }
.chip-epp { bottom: 9%; left: -6%; animation: flotar 6s ease-in-out infinite 1.5s; }
@keyframes flotar { 50% { transform: translateY(-8px); } }

/* ---------- Banda oscura ---------- */
.band { position: relative; color: #fff; margin-top: -60px; }
.wave { display: block; width: 100%; height: 70px; }
.wave path { fill: var(--navy); }
.band-body { position: relative; background: var(--navy); padding: 30px 0 46px; text-align: center; overflow: hidden; }
.band h2 { color: #fff; font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
.band h2 span { color: var(--orange); }
.band-sub { margin: 16px auto 0; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 17px; }
.band-items { margin: 44px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); }
.band-items li { display: grid; justify-items: center; gap: 14px; padding: 6px 20px; }
.band-items li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
.band-items svg { width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.band-items svg .o { stroke: var(--orange); }
.band-items b { font: 700 17px/1.2 var(--head); }
.band-arc { position: absolute; width: 220px; height: 220px; pointer-events: none; }
.band-arc path { fill: none; stroke: var(--orange); stroke-width: 1.6; opacity: .7; }
.band-arc-l { left: -20px; bottom: -20px; }
.band-arc-r { right: -20px; top: -20px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }

/* Pasos */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 22px 22px 26px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step + .step::before {
  content: ""; position: absolute; left: -24px; top: 50%; width: 20px; height: 3px; border-radius: 2px; background: var(--orange);
}
.step-num {
  position: absolute; left: 18px; top: 18px; background: var(--orange); color: #fff; font: 800 14px/1 var(--head);
  padding: 6px 10px; border-radius: 8px;
}
.step-ico { width: 64px; height: 64px; margin: 18px auto 14px; display: block; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-ico .o { stroke: var(--orange); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 14.5px; }

/* Visión + control */
.split { padding: 90px 0; background: var(--mist); }
.split-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-lead { margin-top: 18px; font-size: 16.5px; max-width: 500px; }
.checks { margin: 24px 0 28px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--navy); }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--orange);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f47b20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.pill { display: inline-block; padding: 9px 18px; border: 2px solid var(--orange); border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--navy); }

/* Entornos */
.places { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.place { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.place:hover { transform: translateY(-4px); }
.place img { width: 100%; aspect-ratio: 549 / 294; object-fit: cover; }
.place span { display: flex; align-items: center; gap: 12px; padding: 16px 20px; font: 700 17px/1.2 var(--head); color: var(--navy); }
.place svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Equipo */
.team { background: linear-gradient(180deg, #fff, var(--mist)); }
.team-lead { margin-top: 14px; max-width: 640px; font-size: 16.5px; }
.team-grid { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.team-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.team-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 32%; }
.team-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 9px 16px; border-radius: 999px;
  background: rgba(11, 27, 51, .82); color: #fff; font-size: 13.5px; font-weight: 600;
}
.team-list { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 10px 24px 22px; box-shadow: var(--shadow-sm); }
.team-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.team-list li + li { border-top: 1px solid var(--line); }
.team-list li div, .advisor div { flex: 1; min-width: 0; }
.team-list b, .advisor b { display: block; color: var(--navy); font-size: 15px; }
.team-list small, .advisor small { font-size: 13px; color: var(--text); }
.team-list em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange-600); background: var(--orange-50); padding: 5px 10px; border-radius: 999px; }
.av {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 800 14px/1 var(--head); background: var(--orange-50); color: var(--orange-600);
}
.av-dark { background: var(--navy); color: #fff; }
.advisor { margin-top: 10px; padding: 16px; display: flex; align-items: center; gap: 14px; border: 1.5px dashed rgba(244, 123, 32, .5); border-radius: 16px; }
.advisor small:first-child { display: block; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--orange-600); }

/* Llamado final */
.cta-wrap { padding: 10px 0 70px; }
.cta {
  position: relative; display: flex; align-items: center; gap: 40px; padding: 46px 56px; border-radius: 30px;
  background: radial-gradient(120% 140% at 0% 0%, var(--navy-800), var(--navy) 55%, var(--navy-900)); color: #fff; overflow: hidden;
}
.cta-shield { width: 120px; height: 120px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linejoin: round; flex: none; }
.cta-copy { padding-left: 40px; border-left: 2px solid var(--orange); }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.cta p { margin: 10px 0 22px; color: rgba(255, 255, 255, .8); font-size: 16.5px; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 30px 0 18px; }
.foot-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 32px; align-items: center; }
.foot-row p { font-size: 13.5px; padding-left: 28px; border-left: 1px solid var(--line); }
.foot-row b { color: var(--navy); }
.foot-bottom { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.foot-bottom a { font-weight: 700; color: var(--orange-600); }

/* Aparición */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav-menu { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3)::before { display: none; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(15, 39, 71, .5);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu > a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin-top: 16px; }
}
@media (max-width: 960px) {
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(15, 39, 71, .5);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu > a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin-top: 16px; }
  .hero { padding: 36px 0 100px; }
  .hero-grid, .split-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(100%, 420px); margin-top: 10px; }
  .chip-vision { left: -4%; }
  .chip-epp { left: -2%; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 70px 0; }
  .split { padding: 64px 0; }
  .logo { font-size: 23px; }
  .hero-lines { display: none; }
  .hero-lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .chip { padding: 10px 14px; font-size: 13.5px; gap: 9px; }
  .chip svg { width: 24px; height: 24px; }
  .chip-vision { left: -2%; }
  .chip-epp { left: 0; }
  .band { margin-top: -50px; }
  .wave { height: 44px; }
  .band-items { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .band-items li { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; padding: 16px 8px; }
  .band-items li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
  .band-items svg { width: 40px; height: 40px; }
  .band-arc { width: 140px; height: 140px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { text-align: left; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 20px; }
  .step::before { display: none; }
  .step-num { position: static; justify-self: start; grid-column: 1 / -1; margin-bottom: 4px; }
  .step-ico { grid-row: 2 / span 2; margin: 0; width: 56px; height: 56px; }
  .step h3 { font-size: 18px; align-self: end; }
  .step p { margin-top: 4px; }
  .places { grid-template-columns: 1fr; gap: 16px; }
  .team-list { padding: 6px 16px 16px; }
  .team-list li { flex-wrap: wrap; }
  .team-list em { margin-left: 58px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; }
  .cta-shield { width: 74px; height: 74px; }
  .cta-copy { padding-left: 0; border-left: 0; }
  .foot-row { grid-template-columns: 1fr; gap: 14px; }
  .foot-row p { padding-left: 0; border-left: 0; }
}

/* ---------- ULTRON × Universidad Mundo Maya ---------- */
.cobrand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cobrand-x { font: 400 26px/1 var(--body); color: #9aa6b8; }
.cobrand-umma { width: 150px; height: auto; }
.umma-team { float: right; width: 240px; height: auto; margin: -64px 0 0 28px; }
@media (max-width: 1080px) { .cobrand-umma { width: 140px; } .cobrand { gap: 12px; } }
@media (max-width: 720px) {
  .cobrand { gap: 9px; }
  .cobrand-x { font-size: 20px; }
  .cobrand-umma { width: 112px; }
  .umma-team { float: none; display: block; width: 210px; margin: 18px 0 0; }
}
@media (max-width: 380px) { .cobrand-umma { width: 96px; } .cobrand .logo { font-size: 20px; } .cobrand .logo img { width: 32px; height: 32px; } }
@media (max-width: 960px) and (min-width: 721px) {
  .foot-row { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .foot-row .cobrand { grid-column: 1 / -1; }
  .foot-row p:nth-of-type(1) { padding-left: 0; border-left: 0; }
}

/* ---------- Botón de tema ---------- */
.theme-toggle {
  flex: none; width: 42px; height: 42px; margin-left: 18px; border-radius: 50%; border: 1.5px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--navy); transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--orange); transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.theme-toggle .ico-sun { display: none; }
@media (max-width: 1180px) {
  .theme-toggle { margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 10px; }
}

/* ---------- Modo oscuro ---------- */
html[data-theme="dark"] {
  --white: #0a1322; --mist: #0f1b2e; --ink: #f2f5fa; --text: #b6c1d3; --line: #22324b;
  --orange-50: rgba(244, 123, 32, .14);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); --shadow-sm: 0 10px 26px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--white); }
html[data-theme="dark"] .nav { background: rgba(10, 19, 34, .9); }
html[data-theme="dark"] .logo,
html[data-theme="dark"] .nav-menu > a:not(.btn),
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .checks li,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .place span,
html[data-theme="dark"] .team-list b, html[data-theme="dark"] .advisor b,
html[data-theme="dark"] .foot-row b { color: var(--ink); }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; color: #ffb36b; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .nav-toggle span { background: var(--ink); }
html[data-theme="dark"] .btn-outline { border-color: var(--ink); color: var(--ink); }
html[data-theme="dark"] .btn-outline:hover { background: var(--ink); color: var(--navy-900); }
html[data-theme="dark"] .hero { background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); }
html[data-theme="dark"] .chip,
html[data-theme="dark"] .step,
html[data-theme="dark"] .place,
html[data-theme="dark"] .team-list { background: #13213a; }
html[data-theme="dark"] .step-ico { stroke: var(--ink); }
html[data-theme="dark"] .team { background: linear-gradient(180deg, var(--white), var(--mist)); }
html[data-theme="dark"] .wave path { fill: #13284a; }
html[data-theme="dark"] .band-body { background: #13284a; }
html[data-theme="dark"] .cta { background: radial-gradient(120% 140% at 0% 0%, #1b3763, #13284a 55%, #0e1e38); }
html[data-theme="dark"] .av-dark { background: var(--orange); }
html[data-theme="dark"] .cobrand-umma,
html[data-theme="dark"] .umma-team { filter: brightness(0) invert(1); opacity: .9; }
html[data-theme="dark"] .team-photo figcaption { background: rgba(0, 0, 0, .65); }
@media (max-width: 1180px) {
  html[data-theme="dark"] .nav-menu { background: var(--white); }
}

.av-foto { object-fit: cover; padding: 0; border: 2px solid var(--orange-50); }

/* ---------- Carrusel de fotos del equipo ---------- */
.carousel .slides { position: relative; aspect-ratio: 4 / 3; background: var(--navy-900, #0b1b33); }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.carousel .slide.is-active { opacity: 1; }
.carousel .slide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 32%; }
.carousel .slide img.retrato { object-fit: contain; object-position: 50% 50%; }
.carousel .slide:has(.retrato)::before {  /* fondo difuminado detrás del retrato */
  content: ""; position: absolute; inset: 0; background: var(--fondo-retrato) center / cover; filter: blur(22px) brightness(.55); transform: scale(1.1);
}
.carousel .slide img.retrato { position: relative; }
.carousel figcaption { z-index: 2; max-width: calc(100% - 32px); }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .85); color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s;
}
.car-prev { left: 12px; } .car-next { right: 12px; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-dots { position: absolute; right: 16px; bottom: 20px; z-index: 2; display: flex; gap: 6px; }
.car-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s, background .3s; }
.car-dots button[aria-selected="true"] { width: 24px; background: var(--orange); }
@media (hover: none) { .car-btn { opacity: 1; width: 34px; height: 34px; font-size: 22px; } }
@media (max-width: 560px) { .car-dots { bottom: auto; top: 14px; right: 14px; } }
@media (prefers-reduced-motion: reduce) { .carousel .slide { transition: none; } }

/* Portada: la imagen ya trae su forma redondeada (fondo transparente) */
.hero-photo { aspect-ratio: auto; border-radius: 0; overflow: visible; box-shadow: none; }
.hero-photo img { height: auto; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(15, 39, 71, .25)); }
.hero-media::before { display: none; }
html[data-theme="dark"] .hero-photo img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }

/* Fotos nuevas en alta calidad */
.place img { aspect-ratio: 16 / 9; }
.split-media img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
