@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #1a3c34; /* Deep Forest Green */
    --accent: #c5a059;  /* Champagne Gold */
    --light: #fcfbf7;   /* Soft Cream */
    --dark: #0f241f;    /* Dark Forest */
    --text: #2c3e50;
    --text-light: #666;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.no-scroll {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(26, 60, 52, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px; /* Altura mínima para asegurar impacto visual */
    aspect-ratio: 21 / 9; /* Formato panorámico para que la imagen se ajuste sola */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-align: center;
    overflow: hidden;
    background-size: 100% auto; /* Ajuste perfecto al ancho */
    background-repeat: no-repeat;
    background-position: center center;
}

/* --- Menú Móvil Styles --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 52, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--light);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 450px;
        aspect-ratio: 1 / 1.2; /* Formato más vertical para móviles */
        background-size: cover;
        padding-top: 80px; /* Espacio para el logo */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 20px;
    }

    .logo span {
        font-size: 1.1rem; /* Reduciendo solo el nombre del club */
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: 4rem;
    color: var(--light);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Sections --- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 20px;
}

/* --- Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.card-img-container {
    width: 100%;
    overflow: hidden;
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.card-body {
    padding: 30px;
}

.card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.card h3 {
    margin-bottom: 15px;
}

/* --- Admin Styles (Quick injection) --- */
.admin-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}
