/* Opening proportions share one alignment line without changing section widths. */
body.vea-redesign {
    --opening-gutter: clamp(24px,4.7vw,96px);
    --opening-brand-icon: clamp(42px,2.92vw,56px);
    --opening-brand-word: clamp(126px,8.75vw,168px);
    --opening-brand-gap: clamp(9px,.625vw,12px);
    --opening-brand-width: calc(var(--opening-brand-icon) + var(--opening-brand-word) + var(--opening-brand-gap) + 12px);
}
body.vea-redesign :is(.header,.header.scrolled) { padding-inline: var(--opening-gutter); }
body.vea-redesign .header .brand-lockup { display: none; }

@media (min-width: 1200px) {
    body.vea-redesign :is(.header,.header.scrolled) { grid-template-columns: var(--opening-brand-width) minmax(0,1fr) auto 48px; }
    body.vea-redesign .header .logo-link > .brand-logo-crop { display: none; }
    body.vea-redesign .header .brand-lockup {
        display: flex;
        align-items: center;
        gap: var(--opening-brand-gap);
        width: var(--opening-brand-width);
        height: calc(var(--opening-brand-icon) + 8px);
        padding: 4px 6px;
        border-radius: 8px;
        background: #fff;
    }
    body.vea-redesign .header .brand-lockup > span { position: relative; display: block; flex-shrink: 0; overflow: hidden; }
    body.vea-redesign .header .brand-monogram { width: var(--opening-brand-icon); height: var(--opening-brand-icon); }
    body.vea-redesign .header .brand-wordmark { width: var(--opening-brand-word); height: calc(var(--opening-brand-word) * .285714); }
    body.vea-redesign .header .brand-lockup img { position: absolute; display: block; max-width: none; margin: 0; object-fit: contain; transform: none; }
    body.vea-redesign .header .brand-monogram img { width: calc(var(--opening-brand-icon) * 4.338982); height: calc(var(--opening-brand-icon) * 4.338982); left: calc(var(--opening-brand-icon) * -1.677964); top: calc(var(--opening-brand-icon) * -.906786); }
    body.vea-redesign .header .brand-wordmark img { width: calc(var(--opening-brand-word) * 1.254905); height: calc(var(--opening-brand-word) * 1.254905); left: calc(var(--opening-brand-word) * -.112744); top: calc(var(--opening-brand-word) * -.598042); }
    body.vea-redesign .header:not(.scrolled)::before { background: linear-gradient(180deg,rgb(16 17 14 / .40),rgb(16 17 14 / .08)); border-bottom-color: transparent; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    body.vea-redesign.nav-open .header::before { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* The selected language is visually smaller than its full 44px touch target. */
body.vea-redesign .header .lang-switcher { min-height: 46px; padding-block: 0; }
body.vea-redesign .header .lang-switcher .lang-item { position: relative; isolation: isolate; }
body.vea-redesign .header .lang-switcher .lang-item.active { background: transparent; }
body.vea-redesign .header .lang-switcher .lang-item.active::before { content: ''; position: absolute; inset: 6px 2px; border-radius: 999px; background: var(--accent); z-index: -1; }
body.vea-redesign .header .lang-switcher .lang-text { font-size: clamp(.8125rem,.84vw,1rem) !important; }
body.vea-redesign .header-primary-nav a { font-size: clamp(.875rem,.95vw,1.125rem); }
body.vea-redesign .header .header-actions .header-quote { font-size: clamp(.875rem,1.04vw,1.25rem); }

@media (min-width: 1600px) {
    body.vea-redesign { --header-height: 108px; }
    body.vea-redesign :is(.header,.header.scrolled) { grid-template-columns: var(--opening-brand-width) minmax(0,1fr) auto 56px; gap: 20px; }
    body.vea-redesign .header .header-actions { gap: 16px !important; }
    body.vea-redesign .header .theme-header-toggle,
    body.vea-redesign .header .mobile-menu-btn { width: 56px; height: 56px; }
    body.vea-redesign .header .theme-header-toggle [data-theme-icon] { width: 24px; height: 24px; }
    body.vea-redesign .header .mobile-menu-btn span { width: 20px !important; }
    body.vea-redesign .header .header-actions .header-quote { min-width: 210px; min-height: 70px; padding-inline: 28px; }
}

body.vea-redesign #inicio.hero-video-hero {
    min-height: max(760px,100svh);
    justify-content: flex-start;
    padding: calc(var(--header-height) + clamp(56px,12svh,108px)) 0 40px;
    text-align: center;
    background: #191812 url('../images/film-frame-08.webp') center / cover no-repeat;
}
body.vea-redesign #inicio .hero-background-video:not(.has-frame) { opacity: 0; }
body.vea-redesign #inicio .hero-motion-toggle[hidden] { display: none; }
body.vea-redesign .footer .site-preferences {
    margin: 0 auto;
    padding-block: 0 24px;
    color: var(--text-muted);
    font-size: .875rem;
    line-height: 1.6;
}
body.vea-redesign #inicio .hero-video-shade {
    background: linear-gradient(180deg,rgb(12 12 10 / .56),rgb(12 12 10 / .58) 55%,rgb(12 12 10 / .70));
}
body.vea-redesign #inicio .hero-inner {
    width: calc(100% - var(--opening-gutter) * 2);
    max-width: none;
    flex: 0 0 auto;
    align-content: start;
    margin-inline: auto;
}
body.vea-redesign #inicio .hero-copy { width: 100%; max-width: 960px; margin: 0 auto; padding: 0; }
body.vea-redesign #inicio .hero-copy .eyebrow { justify-content: center; margin-bottom: 28px; font-size: clamp(.75rem,.94vw,1.125rem); line-height: 1.5; letter-spacing: .16em; color: #E3CD9D; }
body.vea-redesign #inicio .hero-copy .eyebrow::before { display: none; }
body.vea-redesign #inicio .hero-copy h1 { max-width: 960px; margin-bottom: 30px; font-size: clamp(3.5rem,5.5vw,6.25rem); line-height: 1.04; letter-spacing: -.025em; color: #fff; text-wrap: auto; }
body.vea-redesign #inicio .hero-copy h1 em { font-size: .84em; line-height: 1.08; color: #E3CD9D; }
body.vea-redesign #inicio .hero-lead { max-width: 700px; margin: 0 auto 36px; font-size: clamp(1rem,1.16vw,1.375rem); line-height: 1.75; color: #fff; }
body.vea-redesign #inicio .hero-actions { justify-content: center; flex-wrap: wrap; gap: 16px; }
body.vea-redesign #inicio .hero-actions :is(.btn,.text-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(220px,15.25vw,292px);
    min-height: clamp(56px,3.65vw,70px);
    padding: 16px 24px;
    border-radius: 999px;
    font-size: clamp(.875rem,1.04vw,1.25rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
}
body.vea-redesign #inicio .hero-actions .text-link { border: 1px solid rgb(255 255 255 / .65); color: #fff; }
body.vea-redesign #inicio .hero-actions .text-link:hover { border-color: #fff; background: rgb(255 255 255 / .12); color: #fff; }
body.vea-redesign #inicio .hero-note { max-width: 540px; margin: 20px auto 0; font-size: .8125rem; line-height: 1.7; color: #fff; }
body.vea-redesign #inicio .hero-bottom { width: calc(100% - var(--opening-gutter) * 2); margin-top: 36px; padding-top: 16px; font-size: .6875rem; color: #fff; }
body.vea-redesign #inicio .hero-bottom .hero-disciplines { display: none; }
body.vea-redesign #inicio .hero-bottom a,
body.vea-redesign #inicio .hero-motion-toggle { color: #fff; }
@media (min-width: 1200px) {
    body.vea-redesign #inicio .hero-bottom { position: absolute; right: calc(var(--opening-gutter) + 72px); bottom: 24px; width: auto; margin: 0; padding: 0; border: 0; }
}
@media screen {
    html[data-theme="dark"] body.vea-redesign #inicio .hero-copy h1 em { color: #E3CD9D; }
}
@media (max-width: 1199px) {
    body.vea-redesign #inicio .hero-copy { max-width: 820px; }
    body.vea-redesign #inicio .hero-copy h1 { font-size: clamp(3.5rem,6.3vw,5rem); }
}
@media (max-width: 768px) {
    body.vea-redesign #inicio.hero-video-hero { min-height: max(720px,100svh); padding-top: calc(var(--header-height) + 48px); }
    body.vea-redesign #inicio .hero-copy h1 { font-size: clamp(2.75rem,7.7vw,4.25rem); }
    body.vea-redesign #inicio .hero-copy h1 em { font-size: .94em; }
    body.vea-redesign #inicio .hero-copy .eyebrow { margin-bottom: 24px; font-size: .75rem; letter-spacing: .12em; }
    body.vea-redesign #inicio .hero-lead { max-width: 580px; font-size: 1rem; line-height: 1.75; margin-bottom: 28px; }
    body.vea-redesign #inicio .hero-bottom { margin-top: 32px; }
}
@media (max-width: 540px) {
    body.vea-redesign #inicio .hero-actions { align-items: stretch; gap: 12px; }
    body.vea-redesign #inicio .hero-actions :is(.btn,.text-link) { width: 100%; min-width: 0; min-height: 56px; font-size: .9375rem; padding-inline: 20px; }
    body.vea-redesign #inicio .hero-copy h1 { font-size: clamp(2.5rem,10.6vw,3.375rem); }
    body.vea-redesign #inicio .hero-note { font-size: .75rem; }
    body.vea-redesign #inicio .hero-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 88px; font-size: .625rem; }
    body.vea-redesign #inicio .hero-motion-toggle { min-height: 44px; padding-inline: 10px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    body.vea-redesign #inicio.hero-video-hero { padding-top: calc(var(--header-height) + 40px); }
    body.vea-redesign #inicio .hero-copy h1 { font-size: 3.25rem; }
}
@media (prefers-reduced-transparency: reduce) {
    body.vea-redesign .header:not(.scrolled)::before { background: #181816; -webkit-backdrop-filter: none; backdrop-filter: none; }
    body.vea-redesign.nav-open .header::before { background: var(--surface); }
}

/* These help controls keep their recognizable colors in both page themes. */
html[data-theme] body.vea-redesign {
    --help-dark: #000;
    --help-dark-hover: #1a1a1a;
    --help-whatsapp: #25d366;
    --help-whatsapp-hover: #1ebe5c;
    --help-icon: #fff;
}
html[data-theme] body.vea-redesign .floating-actions .action-btn,
html[data-theme] body.vea-redesign .back-to-top {
    background: var(--help-dark);
    color: var(--help-icon);
    border: 1px solid rgb(255 255 255 / .16);
    box-shadow: 0 6px 20px rgb(0 0 0 / .18);
}
html[data-theme] body.vea-redesign .floating-actions .action-btn:hover,
html[data-theme] body.vea-redesign .back-to-top:hover {
    background: var(--help-dark-hover);
    color: var(--help-icon);
    box-shadow: 0 8px 24px rgb(0 0 0 / .24);
}
html[data-theme] body.vea-redesign .floating-actions .action-btn.btn-whatsapp {
    background: var(--help-whatsapp);
    border-color: transparent;
}
html[data-theme] body.vea-redesign .floating-actions .action-btn.btn-whatsapp:hover {
    background: var(--help-whatsapp-hover);
}
html[data-theme] body.vea-redesign .floating-actions .action-btn svg,
html[data-theme] body.vea-redesign .floating-actions .action-btn:hover svg,
html[data-theme] body.vea-redesign .back-to-top svg {
    color: var(--help-icon);
}
html[data-theme] body.vea-redesign .floating-actions .action-btn:focus-visible,
html[data-theme] body.vea-redesign .back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #111;
}
