/* ==========================================================================
   The Ponce Project — Base
   Colores y tipografía iguales al kit global del sitio anterior.
   ========================================================================== */

:root {
    --c-primary: #FF0000;
    --c-secondary: #000000;
    --c-text: #1C1C1C;
    --c-accent: #383838;
    --c-gray-555: #555555;
    --c-gray-c6: #C6C6C6;
    --c-gray-e2: #E2E2E2;
    --c-gray-ee: #EEEEEE;
    --c-gray-fa: #FAFAFA;
    --c-red: #E93F34;
    --c-black: #0F0F0F;
    --c-card: #0F0F0F;
    --c-card-2: #1C1C1C;
    --c-white: #FFFFFF;

    --font: 'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --container: 1300px;
    --gutter: 20px;
    --radius: 10px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html.lang-pending body { visibility: hidden; }

body {
    margin: 0;
    background: #000;
    color: #333;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* clip (no hidden) para que el header fijo funcione */
}
html { overflow-x: clip; }

img, svg, video { display: block; max-width: 100%; height: auto; }
img { border: 0; }
a { color: inherit; text-decoration: none; transition: color .3s ease, background-color .3s ease, border-color .3s ease, opacity .3s ease; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100000;
    background: #fff; color: #000; padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { left: 8px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Palabras resaltadas en rojo dentro de títulos (clase "texto-rojo" del sitio anterior) */
.accent, .texto-rojo { color: var(--c-red); }

/* Contenido visible solo en un idioma (antes: clases cares / caren) */
html:not(.lang-es) [data-lang-only="es"],
html.lang-es [data-lang-only="en"] { display: none !important; }

/* Secciones ocultas desde el administrador */
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Contenedor
   -------------------------------------------------------------------------- */
.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.section { background: #000; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1;
    color: #fff; background: var(--c-red);
    padding: 15px 50px; border: 0; border-radius: 3px;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.btn:hover { background: #c9362c; color: #fff; }
.btn--compact { padding: 15px 30px; }
.btn--dark { background: var(--c-accent); font-weight: 500; }
.btn--dark:hover { background: var(--c-red); }

.btn-donate {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; height: 46px; padding: 0 20px;
    background: var(--c-primary); color: #fff; border-radius: 50px;
    font-size: 16px; font-weight: 600; line-height: 1;
}
.btn-donate:hover { background: var(--c-red); color: #fff; }
.btn-donate--sm { height: 40px; }

/* --------------------------------------------------------------------------
   Íconos sociales, selector de idioma y bloques de contacto
   -------------------------------------------------------------------------- */
.social-icons { display: flex; align-items: center; gap: 10px; }
.social-icons a {
    display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
}
.social-icons a[aria-disabled="true"] { cursor: default; }
.social-icons a:hover { color: var(--c-red); }
.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

.lang-switcher {
    display: inline-flex; gap: 4px; padding: 3px;
    border: 1px solid currentColor; border-radius: 999px; align-items: center;
    color: #fff;
}
.lang-switcher button {
    display: inline-flex; align-items: center; gap: 4px;
    background: transparent; border: 0; border-radius: 999px;
    padding: 5px 9px; color: inherit; font-size: 14px; line-height: 1;
}
.lang-switcher button img { width: 14px; height: 14px; }
.lang-switcher button[aria-pressed="true"] { background: #fff; color: #171717; }

/* Selector de idioma estilo "líquido": una gota blanca se estira y viaja entre ES y EN */
.lang-switcher.is-liquid { position: relative; isolation: isolate; }
.lang-switcher.is-liquid button { position: relative; z-index: 1; transition: color .35s ease; }
.lang-switcher.is-liquid button[aria-pressed="true"] { background: transparent; }
.lang-blob {
    position: absolute; z-index: 0; top: 3px; bottom: 3px; left: var(--blob-l, 3px); right: var(--blob-r, 50%);
    border-radius: 999px; background: #fff; pointer-events: none;
    transition: left .5s cubic-bezier(.34, 1.56, .64, 1), right .5s cubic-bezier(.34, 1.56, .64, 1);
}
.lang-blob.no-anim { transition: none; }
.lang-blob.is-moving { animation: lang-blob-squash .55s ease; }
@keyframes lang-blob-squash {
    0% { transform: scaleY(1); }
    35% { transform: scaleY(.72); border-radius: 40%; }
    65% { transform: scaleY(1.08); }
    100% { transform: scaleY(1); }
}

/* El contenido "se derrite" y vuelve a enfocarse al cambiar de idioma */
main, .site-header nav, .site-footer, .offcanvas-panels, .mobile-bar {
    transition: filter .26s ease, opacity .26s ease, transform .26s ease;
}
html.lang-morph-out main, html.lang-morph-out .site-header nav, html.lang-morph-out .site-footer,
html.lang-morph-out .offcanvas-panels, html.lang-morph-out .mobile-bar-text {
    filter: blur(6px); opacity: .25;
}
html.lang-morph-out main { transform: scale(.995); }
html.lang-morph-in main, html.lang-morph-in .site-header nav, html.lang-morph-in .site-footer,
html.lang-morph-in .offcanvas-panels { transition-duration: .42s; }
@media (prefers-reduced-motion: reduce) {
    .lang-blob { transition: none; }
    .lang-blob.is-moving { animation: none; }
}

.info-box { display: flex; align-items: center; gap: 12px; color: #fff; }
.info-box .info-icon { width: 25px; height: 25px; flex: 0 0 25px; fill: currentColor; }
.info-box .info-icon--mail { width: 28px; height: 28px; flex-basis: 28px; }
.info-box strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.info-box span { display: block; font-size: 14px; font-weight: 400; line-height: 1.2; }
a.info-box:hover strong { color: var(--c-red); }

/* --------------------------------------------------------------------------
   Botón "volver arriba" con anillo de progreso (snippet Back To Top)
   -------------------------------------------------------------------------- */
#back-to-top {
    position: fixed; right: 25px; bottom: 25px; z-index: 9990;
    width: 42px; height: 42px; padding: 2px; border: 0; border-radius: 50%;
    background: conic-gradient(var(--c-red) var(--progress, 0deg), var(--c-black) var(--progress, 0deg));
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top span {
    width: 100%; height: 100%; border-radius: 50%; background: var(--c-black);
    display: flex; align-items: center; justify-content: center;
}
#back-to-top svg {
    width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4;
    stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease;
}
#back-to-top:hover svg { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Animaciones sutiles al hacer scroll (hacia abajo y hacia arriba)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.js [data-reveal].from-top { transform: translate3d(0, -28px, 0); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Puntos de quiebre usados en todo el sitio (iguales a los del sitio anterior):
   móvil ≤767 · móvil extra ≤880 · tablet ≤1024 · tablet extra ≤1200 · laptop ≤1366
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    :root { --gutter: 16px; }
    #back-to-top { bottom: 95px; right: 16px; }
}
/* ---------- Transición entre páginas ---------- */
.page-transition {
    position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
    background: #000; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s ease, visibility 0s linear .45s;
}
.page-transition span {
    color: #fff; font-family: var(--font, 'Urbanist', sans-serif); font-size: 14px; font-weight: 400; line-height: 1;
    opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease;
}
html.pt-enter .page-transition, html.pt-leave .page-transition {
    opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s ease, visibility 0s;
}
html.pt-enter .page-transition span, html.pt-leave .page-transition span { opacity: 1; transform: none; }
html.pt-enter .page-transition { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .page-transition, .page-transition span { transition: none !important; }
}
/* Teclas de piano que se "tocan" mientras carga (proporcionales al texto) */
.page-transition .pt-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pt-piano { position: relative; display: flex; gap: 2px; width: 9.5em; height: 3.2em; font-size: 14px; }
.pt-piano i {
    flex: 1; background: #fff; border-radius: 0 0 3px 3px; transform-origin: top center;
    animation: pt-key 1.6s ease-in-out infinite paused;
}
.pt-piano b {
    position: absolute; top: 0; width: 9%; height: 60%; background: #000; border: 1px solid #000;
    border-radius: 0 0 2px 2px; transform: translateX(-50%); transform-origin: top center;
    animation: pt-bkey 1.6s ease-in-out infinite paused;
}
.pt-piano b:nth-of-type(1) { left: calc(100% / 7 * 1); }
.pt-piano b:nth-of-type(2) { left: calc(100% / 7 * 2); }
.pt-piano b:nth-of-type(3) { left: calc(100% / 7 * 4); }
.pt-piano b:nth-of-type(4) { left: calc(100% / 7 * 5); }
.pt-piano b:nth-of-type(5) { left: calc(100% / 7 * 6); }
.pt-piano i:nth-of-type(1) { animation-delay: 0s; }
.pt-piano b:nth-of-type(1) { animation-delay: .1s; }
.pt-piano i:nth-of-type(2) { animation-delay: .2s; }
.pt-piano b:nth-of-type(2) { animation-delay: .3s; }
.pt-piano i:nth-of-type(3) { animation-delay: .4s; }
.pt-piano i:nth-of-type(4) { animation-delay: .6s; }
.pt-piano b:nth-of-type(3) { animation-delay: .7s; }
.pt-piano i:nth-of-type(5) { animation-delay: .8s; }
.pt-piano b:nth-of-type(4) { animation-delay: .9s; }
.pt-piano i:nth-of-type(6) { animation-delay: 1s; }
.pt-piano b:nth-of-type(5) { animation-delay: 1.1s; }
.pt-piano i:nth-of-type(7) { animation-delay: 1.2s; }
html.pt-enter .pt-piano i, html.pt-enter .pt-piano b,
html.pt-leave .pt-piano i, html.pt-leave .pt-piano b { animation-play-state: running; }
@keyframes pt-key {
    0%, 22%, 100% { background: #fff; transform: none; }
    8% { background: #c9c9c9; transform: scaleY(.95); }
}
@keyframes pt-bkey {
    0%, 22%, 100% { background: #000; transform: translateX(-50%); }
    8% { background: var(--c-red, #e93f34); transform: translateX(-50%) scaleY(.93); }
}
@media (prefers-reduced-motion: reduce) {
    .pt-piano i, .pt-piano b { animation: none; }
}
/* Mientras se ve la cortina de carga, los elementos esperan; al quitarla aparecen con su animación */
html.pt-enter [data-reveal], html.pt-enter [data-reveal].is-revealed {
    opacity: 0; transform: translate3d(0, 28px, 0); transition: none;
}