/* ─── HEADER (Light Glassmorphism) ───────────────────── */
.sabinas-header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.header-pill {
    pointer-events: auto;
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    border-radius: 50px;
    background: rgba(244, 239, 234, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-pill.is-scrolled {
    opacity: 1;
    transform: translateY(0);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo img {
    height: 36px;
}

.header-nav-elements {
    display: flex;
    gap: 0;
    align-items: center;
}

/* ─── HEADER ACTIONS GLOBAL ────────────────────────────── */
.hamburger-btn,
.mobile-dropdown {
    display: none;
}

/* Botones de Navegación */
.nav-btn,
.btn-elemento {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1.1rem;
    position: relative;
    outline: none;
}

.nav-btn .icono-png,
.btn-elemento .icono-png {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.nav-btn:hover .icono-png,
.btn-elemento:hover .icono-png {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.08));
}

.lang-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(42, 39, 36, 0.8);
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(42, 39, 36, 0.15);
    background: transparent;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: rgba(42, 39, 36, 0.4);
    color: var(--clr-text);
    background: rgba(42, 39, 36, 0.05);
}

/* ─── SECTION BASE ─────────────────────────────────────── */
section {
    position: relative;
}

/* ─── HERO CINEMATOGRÁFICO ─────────────────────────────── */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 39, 36, 0.2);
    z-index: 2;
}

/* Estado Inicial: Logo Centrado y Grande */
.hero-logo-container {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 500px;
    /* Tamaño máximo en escritorio */
    /* Curva de animación suave y elegante */
    transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Estado Final (Clase añadida por JS): Abajo a la derecha y pequeño */
.hero-logo-container.is-minimized {
    top: auto;
    left: auto;
    bottom: 40px;
    /* Separación del borde inferior */
    right: 40px;
    /* Separación del borde derecho */
    transform: translate(0, 0);
    width: 100px;
    /* Tamaño reducido */
}

/* Ajustes Responsivos para Animación de Logo */
@media (max-width: 768px) {
    .hero-logo-container.is-minimized {
        bottom: 24px;
        right: 24px;
        width: 70px;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeIn 1s 2.5s forwards ease;
}

.scroll-track {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.scroll-dot {
    width: 1px;
    height: 12px;
    background: #fff;
    position: absolute;
    top: -12px;
    animation: scrollSlide 2s 3s infinite ease-in;
}

@keyframes scrollSlide {
    0% {
        top: -12px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        top: 48px;
        opacity: 0;
    }
}

/* ─── ABOUT ─────────────────────────────────────────────── */
#about {
    padding: 10rem var(--spacing-safe) 8rem;
    background: var(--clr-bg);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-left {
    position: sticky;
    top: 120px;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--clr-text);
    margin-bottom: 1rem;
}

.about-sub {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-sage);
    margin-bottom: 2.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--clr-text-muted);
    max-width: 480px;
}

.roni-image {
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 3rem;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--clr-sage) 0%, var(--clr-sand) 100%);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
}

.roni-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    opacity: 0.4;
}

.roni-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.roni-origin {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-sand);
    margin-bottom: 1.5rem;
}

/* ─── ORACLE ─────────────────────────────────────────────── */
#oracle {
    padding: 8rem var(--spacing-safe);
    background: linear-gradient(180deg, var(--clr-bg) 0%, #F0EDE7 100%);
}

.oracle-header {
    text-align: center;
    margin-bottom: 5rem;
}

.oracle-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
}

.oracle-line {
    width: 60px;
    height: 1px;
    background: var(--clr-sand);
    margin: 0 auto;
}

.oracle-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.oracle-path {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    padding: 4rem 3rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s ease, background 0.3s ease;
    font-family: inherit;
    color: var(--clr-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.oracle-path:hover {
    transform: translateY(-12px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
}

.path-glyph {
    font-size: 2.5rem;
    color: var(--clr-sand);
    margin-bottom: 0.5rem;
    display: block;
}

.oracle-path h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.oracle-path p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.path-arrow {
    margin-top: auto;
    font-size: 1.2rem;
    color: var(--clr-sage);
    transition: transform 0.3s ease;
}

.oracle-path:hover .path-arrow {
    transform: translateX(6px);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
#site-footer {
    background: var(--clr-text);
    color: rgba(246, 244, 240, 0.8);
    padding: 5rem 4rem 3rem;
}

.marquee-section {
    margin-bottom: 5rem;
}

.marquee-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(246, 244, 240, 0.35);
    margin-bottom: 1.5rem;
}

.marquee-mask {
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    /* Mucho más cercanos */
    white-space: nowrap;
    animation: marquee 110s linear infinite;
    /* Mucho más lento */
    width: max-content;
    padding: 1rem 0;
    /* Espacio para respirar los logos grandes */
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.sponsor-item {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: rgba(246, 244, 240, 0.3);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.sponsor-item:hover {
    color: rgba(246, 244, 240, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(246, 244, 240, 0.4);
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-el-link,
.footer-meta-link {
    color: rgba(246, 244, 240, 0.6);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-links a:hover,
.footer-el-link:hover,
.footer-meta-link:hover {
    color: var(--clr-sand);
}

.footer-sub-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(246, 244, 240, 0.08);
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(246, 244, 240, 0.65);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: var(--clr-sand);
}

.footer-icon {
    color: var(--clr-sage);
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Mini Calendar */
.mini-cal-wrapper {
    cursor: pointer;
    padding: 1.25rem;
    background: rgba(246, 244, 240, 0.04);
    border: 1px solid rgba(246, 244, 240, 0.08);
    border-radius: 1rem;
    transition: background 0.3s ease;
}

.mini-cal-wrapper:hover {
    background: rgba(246, 244, 240, 0.07);
}

.cal-hint {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(246, 244, 240, 0.25);
    margin-top: 0.75rem;
}

.footer-bottom {
    text-align: center;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: rgba(246, 244, 240, 0.08);
    margin-bottom: 2rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(246, 244, 240, 0.25);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-left {
        position: static;
    }

    .oracle-split {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-pill {
        justify-content: space-between;
        padding: 12px 24px;
    }

    .header-logo img {
        max-height: 40px;
        width: auto;
    }

    .header-nav-elements {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .sabinas-header .lang-btn {
        display: block;
    }

    /* Hamburger Button */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        /* Por encima de todo en caso de overlap Dropdown */
    }

    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--clr-text);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hamburger Open States */
    .hamburger-btn.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-btn.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Dropdown (Light Glassmorphism) */
    .mobile-dropdown {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 16px);
        right: 0;
        min-width: 200px;
        background: rgba(244, 239, 234, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 24px;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);

        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
        z-index: 999;
    }

    .mobile-dropdown.is-open {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-dropdown .btn-elemento {
        padding: 4px;
        text-align: center;
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-dropdown .btn-elemento .icono-png {
        width: 44px;
        height: 44px;
    }

    /* Overlap Fix */
    .about-left {
        margin-bottom: 40px !important;
        position: relative;
        z-index: 2;
    }

    .roni-image {
        margin-top: 3rem !important;
        position: relative;
        z-index: 1;
        display: block;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .hero-wordmark {
        letter-spacing: 0.2em;
    }

    .logo-fallback {
        font-size: 1.1rem;
    }

    .lang-btn {
        display: none;
    }
}