:root {
      color-scheme: dark;
      --bg: #07111f;
      --surface: #101f31;
      --text: #f2f8ff;
      --muted: #b6c7d9;
      --accent: #36caff;
      --line: #294055;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 "DM Sans", system-ui, sans-serif; }
    h1, h2, h3, p { margin: 0; }
    h1, h2, h3 { line-height: 1.1; }
    h1 { font-size: clamp(2.15rem, 5.7vw, 5rem); letter-spacing: -.055em; max-width: 18ch; }
    h2 { font-size: clamp(2.1rem, 5.4vw, 4.1rem); letter-spacing: -.06em; margin-bottom: 1rem; }
    h3 { font-size: 1.35rem; letter-spacing: -.025em; }
    p, li { color: var(--muted); }
    a { color: inherit; text-decoration: none; }
    img { display: block; width: 100%; }
    [hidden] { display: none !important; }
    :focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
    section[id] { scroll-margin-top: 5.5rem; }
    .wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
    .section { padding: clamp(3.5rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
    .section-head { max-width: 65ch; margin-bottom: 2rem; }
    .eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .9rem; }
    .skip { position: fixed; top: 0; left: 0; transform: translateY(-120%); background: var(--accent); color: var(--bg); padding: .6rem 1rem; z-index: 9; }
    .skip:focus { transform: none; }
    header { position: sticky; top: 0; z-index: 3; background: #07111ff2; border-bottom: 1px solid var(--line); }
    .nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
    .header-logo { width: 180px; height: 72px; object-fit: contain; }
    .wordmark { font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
    .wordmark span, .accent { color: var(--accent); }
    nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); font-size: .9rem; }
    nav a:hover, footer a:hover { color: var(--accent); }

    .hero p:not(.eyebrow) { max-width: 48ch; margin-top: 1.3rem; }
    .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.35rem; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: .62rem 1.08rem;
      border-radius: 8px;
      border: 1px solid var(--accent);
      background: var(--accent);
      color: #06121d;
      font-weight: 800;
      line-height: 1.25;
      transition: background-color .2s, color .2s;
    }
    .btn:hover { background: #a6ebff; }
    .outline { background: transparent; color: var(--text); border-color: var(--line); }
    .outline:hover { background: #192f45; }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 1rem; }
    .card { display: flex; flex-direction: column; gap: .85rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 3vw, 1.6rem); }
    .card .btn { margin-top: auto; }
    .featured { border-color: var(--accent); background: linear-gradient(155deg, #123a50, var(--surface) 62%); }
    .price { color: var(--text); font-size: 2rem; font-weight: 900; line-height: 1; }
    .price small { color: var(--muted); font-size: .95rem; font-weight: 600; }
    ul { padding-left: 1.2rem; margin: 0; }
    li + li { margin-top: .35rem; }
    .event-group + .event-group { margin-top: 2.4rem; }
    .event-group > h3 { margin-bottom: .85rem; }
    .filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
    .filters button {
      cursor: pointer;
      min-height: 44px;
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: .45rem .9rem;
      font: inherit;
    }
    .filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #06121d; font-weight: 800; }
    .photo-grid { margin-top: 1rem; width: 100%; align-items: start; }
    .photo-grid a { display: block; }
    .photo-grid img { height: auto; border-radius: 12px; }
    .profile { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); align-items: center; }
    .portrait { max-height: 470px; border-radius: 16px; object-fit: cover; object-position: center 30%; }
    .team { margin-top: 2rem; }
    .team h3 { margin-bottom: .7rem; }
    .team img { max-height: 240px; object-fit: cover; border-radius: 10px; }
    .contact { background: radial-gradient(ellipse at 0% 100%, #0d3b54, transparent 70%); }
    footer { padding: 1.7rem 0 6rem; border-top: 1px solid var(--line); }
    .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
    .footer-logo { width: 150px; }
    .social { display: flex; gap: 1rem; flex-wrap: wrap; }
    .float { position: fixed; z-index: 4; bottom: max(1rem, env(safe-area-inset-bottom)); right: 1rem; box-shadow: 0 4px 24px #0009; }
    .entering { animation: enter .55s ease-out both; }
    @keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
    @media (max-width: 680px) {
      .nav { flex-wrap: wrap; padding: .7rem 0; gap: .5rem; }
      nav { width: 100%; overflow-x: auto; padding-bottom: .2rem; white-space: nowrap; }
      section[id] { scroll-margin-top: 7.5rem; }
      .hero { padding: 1.65rem 0 2rem; background-position: center, center, 41% center, center; }
      .profile { grid-template-columns: 1fr; }
      .portrait { max-height: 400px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .entering { animation: none; }
      .btn { transition: none; }
    }
      .contact-icon { display: inline-block; margin-right: .45rem; }
    .location-line { margin-bottom: .8rem; }
    .personal-social { margin-top: 1.25rem; }
    .social-link { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; }
    .social-link:hover { color: var(--accent); border-color: var(--accent); }
    #videos-destacados:not(:empty) { margin-bottom: 1rem; }
    .event-cover { position: relative; display: grid; align-items: end; isolation: isolate; min-height: clamp(130px, 23vw, 250px); margin-bottom: 1rem; overflow: hidden; border-radius: 16px; background: var(--surface); }
    .event-cover img, .event-cover::after { position: absolute; inset: 0; height: 100%; }
    .event-cover img { object-fit: cover; object-position: center 38%; z-index: -2; }
    .event-cover::after { content: ""; z-index: -1; background: linear-gradient(transparent 20%, #07111fec); }
    .event-cover h3 { padding: 1rem clamp(1rem, 3vw, 2rem); font-size: clamp(1.35rem, 3vw, 2.3rem); }
    .result-logo { width: 100%; height: 110px; object-fit: contain; padding: .5rem; background: #09121c; border-radius: 9px; }
    .behind-the-scenes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
    .behind-card h3 { font-size: 1.05rem; }


section[id] { scroll-margin-top: 5.5rem; }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section-head { margin-bottom: 1.4rem; }
.nav { min-height: 68px; }
.header-logo { width: clamp(108px, 17vw, 164px); height: auto; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.menu-toggle { display: none; }
.mobile-services { display: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.1rem, 5vw, 4.2rem) 0;
  background: radial-gradient(ellipse at 80% 40%, #104b72, var(--bg) 70%);
}
.hero::after, .hero-media { position: absolute; inset: 0; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #07111ff7, #07111fa6 56%, #07111f3b),
    linear-gradient(0deg, var(--bg), transparent 48%);
}
.hero-media { z-index: -2; }
.hero-media img { height: 100%; object-fit: cover; object-position: center 49%; }
.hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 5.4vw, 4.65rem); }
.hero p:not(.eyebrow) { margin-top: .9rem; }
.hero .hero-line { color: var(--text); font-weight: 750; }
.home-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.marketing-grid { max-width: 820px; }
.service-card { overflow: hidden; }
.card-image { border-radius: 10px; }
.cover-frame {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
}
.cover-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-links { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin-top: auto; }
.course-summary { display: grid; grid-template-columns: minmax(0, 1fr) min(34%, 136px); align-items: center; }
.course-summary p, .course-summary a { margin-top: .55rem; }
.text-link { display: inline-flex; gap: .4rem; align-items: center; color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: .19em; }
.text-link:hover { color: #b2efff; }
.video-preview {
  display: grid;
  place-items: center;
}
.course-preview { width: min(100%, 300px); align-self: start; }
.behind-the-scenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.behind-video {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  margin-top: auto;
  background: #03070c;
  border-radius: 9px;
}
.play-mark { display: grid; place-items: center; z-index: 1; width: 48px; height: 48px; border: 1px solid #ffffff80; border-radius: 50%; background: #07111fe8; color: #fff; }
.play-mark::before { content: ""; width: 0; height: 0; margin-left: 3px; border-block: 8px solid transparent; border-left: 12px solid currentColor; }
.video-preview:hover .play-mark, .video-preview:focus-visible .play-mark { background: var(--accent); color: var(--bg); }
html:has(.video-dialog[open]) { overflow: hidden; }
.video-dialog {
  --video-ratio: 0.5625;
  width: min(48rem, calc(72dvh * var(--video-ratio) + 1.5rem));
  min-width: min(17rem, calc(100% - 1.5rem));
  max-width: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: .75rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.video-dialog::backdrop { background: #01070ee8; }
.video-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.video-dialog-bar h2 { font-size: 1rem; margin: 0; letter-spacing: 0; }
.video-dialog-bar .btn { font: inherit; cursor: pointer; }
.video-dialog .site-video {
  display: block;
  width: min(100%, calc(72dvh * var(--video-ratio)));
  margin-inline: auto;
  aspect-ratio: var(--video-ratio);
  object-fit: contain;
  border-radius: 8px;
}
.page-top { padding-block: clamp(2rem, 6vw, 4.3rem); }
.page-top h1 { max-width: 22ch; font-size: clamp(2.25rem, 5.25vw, 4.4rem); }
.page-top p:not(.eyebrow) { max-width: 64ch; margin-top: .9rem; }
.breadcrumb { margin-bottom: 1.05rem; font-size: .92rem; }
.breadcrumb a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.spaced { margin-top: 1.3rem; }
.narrow { max-width: 66ch; }
.pill-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 0 1.35rem; }
.pill-links a { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .9rem; }
.pill-links a:hover, .pill-links a[aria-current="true"] { border-color: var(--accent); color: var(--accent); }
.gallery-category + .gallery-category { margin-top: 1.6rem; }
.photo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.results-note { margin-top: 1rem; font-size: .9rem; }
.float { gap: .5rem; }
.float svg { flex: none; }
.contact .location-line { display: block; margin: .5rem 0; }
.footer-logo { height: auto; }
[data-reveal] { scroll-margin-block-start: 6rem; }
@media (max-width: 820px) {
  .nav { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: .4rem 0; gap: .4rem; }
  .nav nav {
    grid-row: 2; grid-column: 1 / -1; flex-direction: column; align-items: stretch;
    gap: 0; width: auto; overflow: visible; white-space: normal; padding: .25rem 0 .55rem;
  }
  .menu-ready .nav nav { max-height: min(65dvh, 30rem); overflow-y: auto; }
  .mobile-services { display: grid; border-top: 1px solid var(--line); margin-top: .3rem; }
  .nav nav a { padding: .55rem .5rem; min-height: 43px; display: flex; align-items: center; }
  .nav-actions { grid-row: 1; grid-column: 2; }
  .menu-ready .menu-toggle {
    display: inline-grid; place-items: center; min-height: 44px; min-width: 44px;
    padding: .25rem; cursor: pointer; border: 1px solid var(--line);
    border-radius: 8px; background: var(--surface); color: var(--text);
  }
  .menu-ready #menu-principal[data-open="false"] { display: none; }
  .nav-quote { padding-inline: .72rem; }
  .hero-media img { object-position: 56% center; }
  .hero::after { background: linear-gradient(90deg, #07111ff2, #07111fc2), linear-gradient(0deg, var(--bg), transparent 43%); }
  .float { min-height: 44px; width: 44px; padding: 0; border-radius: 50%; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .float-label { display: none; }
  .behind-the-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .behind-the-scenes { grid-template-columns: minmax(0, 1fr); width: min(100%, 340px); margin-inline: auto; }
}
@media (max-width: 480px) {
  .home-work { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
