/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ==========================================================================
   NUEVO SISTEMA DE DISEÑO - FUNDACIÓN OÍD MORTALES (Neo-Classical Dark)
   ========================================================================== */

:root {
    --bg-main: #fcfbf9; /* Ultra premium elegant linen/warm white */
    --bg-sec: #f5f2eb;  /* Deeper editorial cream contrast */
    --accent: #1a365d; /* Institutional Oxford Blue */
    --accent-gold: #c5a059; /* Elegant Gold for details */
    --text-main: #1a1a1a;
    --text-dim: #4a5568;
    --border: rgba(26, 54, 93, 0.08);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: var(--accent);
    color: var(--accent-gold);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    background-image: radial-gradient(rgba(26, 54, 93, 0.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   NAVIGATION (Header)
   -------------------------------------------------------------------------- */
.master-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px; /* Un poco más alto para el logo */
    z-index: 9000;
    background: rgba(252, 251, 249, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 65px; /* Default for full logos to be readable */
    transition: transform 0.3s ease;
}

.logo-link img.logo-monogram {
    height: 54px; /* Monogram logo looks better slightly smaller */
}

.logo-link:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 2rem 0;
    background: linear-gradient(rgba(10, 25, 47, 0.78), rgba(13, 27, 42, 0.94)), url('../images/hero-bg.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #ffffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -8px); }
    60% { transform: translate(-50%, -4px); }
}

/* Ornamental Separator */
.ornament-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0;
    opacity: 0.6;
}

.ornament-line {
    height: 1px;
    width: 80px;
    background: linear-gradient(to-right, transparent, var(--accent-gold), transparent); /* standard standard gradient syntax will be updated */
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.ornament-symbol {
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.hero-title {
    font-family: var(--font-poppins);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: revealIn 1s forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 65ch;
    margin-bottom: 4rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: revealIn 1s forwards 0.4s;
}

.hero-badge {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: revealIn 1s forwards 0.1s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes revealIn {
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   CONTENT BLOCKS
   -------------------------------------------------------------------------- */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.section-label {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-poppins);
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-text {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--accent);
    cursor: pointer;
    border-radius: 2px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-main);
}

.btn-primary:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.15);
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
    background: var(--bg-sec);
    padding: 3rem;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* --------------------------------------------------------------------------
   FOOTER (Ultra Premium Institutional)
   -------------------------------------------------------------------------- */
.footer {
    background: radial-gradient(ellipse at top, #152b4a, #0d1b2a);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.6), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

/* Logo & Motto */
.footer-logo {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 85px !important; /* Larger footer logos for readability */
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.15)) !important;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.footer-logo:hover img {
    transform: scale(1.02);
}

.footer-about p {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    max-width: 320px;
    margin-bottom: 2rem;
}

/* Headings */
.footer h4 {
    color: var(--accent-gold) !important;
    font-family: var(--font-sans);
    font-size: 0.65rem !important;
    letter-spacing: 0.25em !important;
    text-transform: uppercase;
    margin-bottom: 1.5rem !important;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    opacity: 0.3;
}

/* Navigation Links */
.footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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

.footer li a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 0.8rem !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer li a:hover {
    color: #fff !important;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Social Icons (Premium Circular Style) */
.footer-socials {
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.footer a i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer a:hover i {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0d1b2a !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.25);
}

/* Copyright Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9001;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 90px; /* Header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 3rem 0;
        gap: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 8999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .section { padding: 4rem 1.5rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding: 100px 1.5rem 0; }
    .hero-title { font-size: 2.2rem; margin-bottom: 1.5rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
    .footer-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-about { align-items: center; display: flex; flex-direction: column; }
    .footer-logo { justify-content: center; }
    .footer-logo-wrapper { align-items: center !important; }
    .footer-socials { justify-content: center; }
}

/* iOS background attachment fixed bug fix */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll !important;
    }
}

/* Small mobile devices (≤ 480px) */
@media (max-width: 480px) {
    .master-header {
        height: 70px !important;
    }
    .nav-container {
        padding: 0 1rem !important;
    }
    .logo-link img.logo-monogram {
        height: 44px !important;
    }
    .logo-link img.logo-full {
        height: 52px !important;
    }
    .mobile-menu-btn {
        font-size: 1.3rem !important;
    }
    .nav-menu {
        top: 70px !important;
        padding: 2rem 0 !important;
        gap: 1.5rem !important;
    }
    .section { 
        padding: 3rem 1rem !important; 
    }
    .section-title { 
        font-size: 1.8rem !important; 
        margin-bottom: 1.5rem !important; 
    }
    .grid-2 { 
        gap: 1.8rem !important; 
    }
    .hero { 
        padding: 90px 1rem 0 !important; 
    }
    .hero-title { 
        font-size: 1.7rem !important; 
    }
    .hero-subtitle { 
        font-size: 0.88rem !important; 
        margin-bottom: 2rem !important; 
    }
    .card { 
        padding: 1.5rem !important; 
    }
    .btn { 
        padding: 0.8rem 1.8rem !important; 
        font-size: 0.65rem !important; 
    }
    .footer { 
        padding: 3rem 1rem 1.5rem !important; 
    }
    .footer-logo img {
        height: 68px !important;
    }
    .footer-bottom { 
        margin-top: 2rem !important; 
        padding-top: 1.5rem !important;
    }
    .carousel-content { 
        padding: 100px 1rem 15px !important; 
    }
    .carousel-title { 
        font-size: 1.6rem !important; 
    }
    .carousel-desc { 
        font-size: 0.85rem !important; 
        margin-bottom: 1.5rem !important; 
    }
    .carousel-dots { 
        bottom: 20px !important; 
    }
}

/* ==========================================================================
   CAROUSEL HERO DE NOVEDADES (Auto-sliding Dynamic Hero Carousel)
   ========================================================================== */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    background-color: #0d1b2a;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* Gradient overlay for readability and split visual */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(10, 25, 47, 0.95) 0%, 
        rgba(13, 27, 42, 0.85) 45%, 
        rgba(13, 27, 42, 0.3) 100%
    );
    z-index: 2;
}

.carousel-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 4rem 30px; /* Clear header and lower content slightly */
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-text-wrapper {
    max-width: 1000px;
    width: 100%;
}

.carousel-category {
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-title {
    font-family: var(--font-poppins);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.carousel-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    max-width: 65ch;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.carousel-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .hero-carousel-section {
        height: 100vh;
        min-height: 550px;
    }
    
    .carousel-overlay {
        background: rgba(13, 27, 42, 0.85);
    }
    
    .carousel-content {
        padding: 120px 2rem 20px;
        text-align: center;
    }
    
    .carousel-text-wrapper {
        margin: 0 auto;
        max-width: 90%;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}

/* Navigation arrows styling (Minimalist, boxless, subtle & lowered) */
.carousel-arrow {
    position: absolute;
    top: 58%; /* Un poco más abajo para alinearse mejor con el bloque de texto */
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.28); /* Más sutiles por defecto */
    font-size: 1.8rem; /* Tamaño más sutil y estilizado */
    display: none; /* Controlled dynamically by Javascript */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    padding: 1rem;
}

.carousel-arrow:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5); /* Resplandor más suave */
}

.carousel-arrow.prev {
    left: 2.5rem;
}

.carousel-arrow.prev:hover {
    transform: translateY(-50%) translateX(-5px); /* Desplazamiento más sutil */
}

.carousel-arrow.next {
    right: 2.5rem;
}

.carousel-arrow.next:hover {
    transform: translateY(-50%) translateX(5px); /* Desplazamiento más sutil */
}

@media (max-width: 900px) {
    .carousel-arrow {
        font-size: 1.4rem;
        top: 62%; /* Ajuste de altura en móviles */
    }
    .carousel-arrow.prev {
        left: 0.8rem;
    }
    .carousel-arrow.next {
        right: 0.8rem;
    }
}

/* Club Features Interactive Grid Styles */
.club-feature-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.club-feature-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--accent-gold) !important;
    border-color: rgba(197, 160, 89, 0.3) !important;
    box-shadow: 0 20px 45px rgba(26, 54, 93, 0.05), 0 8px 25px rgba(197, 160, 89, 0.03) !important;
}

.club-feature-card:hover .club-card-glow {
    opacity: 1 !important;
}

.club-feature-card:hover .club-icon-wrapper {
    transform: translateY(-5px) scale(1.1);
    color: var(--accent-gold) !important;
}

/* ==========================================================================
   PAGE ENTRY FADE-IN ANIMATION (Premium Entry Mode)
   ========================================================================== */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



/* ==========================================================================
   SCROLL REVEAL UPWARDS
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ==========================================================================
   EVENT CARDS TIMELINE UPGRADE (eventos.html)
   ========================================================================== */
.event-row, .event-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.event-row:hover, .event-card:hover {
    transform: translateX(6px) !important;
    border-left-color: var(--accent-gold) !important;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(197, 160, 89, 0.4) !important;
}

/* Scroll Offset for Anchors */
#about, #legado-rigor, #quienes-somos {
    scroll-margin-top: 110px !important;
}

/* ═══════ Page Loader Overlay ═══════ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main, #fcfbf9);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}
.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.loader-logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-logo {
    width: 60px;
    height: auto;
    z-index: 2;
    animation: loaderLogoPulse 2s ease-in-out infinite;
}
.loader-spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(197, 160, 89, 0.08);
    border-radius: 50%;
    border-top: 3px solid var(--accent-gold, #c5a059);
    border-bottom: 3px solid var(--accent-gold, #c5a059);
    animation: loaderSpin 1.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) infinite;
    z-index: 1;
}
.loader-text {
    font-family: var(--font-poppins, 'Poppins', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent, #1a365d);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes loaderLogoPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}