/* Design System - Club AtlÃƒÂ©tico Colegiales - PREMIUM OVERHAUL */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
    --primary-color: #273b8f;      /* Dark Blue */
    --primary-dark: #1a2a6c;
    --primary-light: #3b50a3;
    --secondary-color: #FF3131;    /* Red */
    --secondary-dark: #cc2b2b;
    --secondary-light: #ff5757;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #eef0f5;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(39, 59, 143, 0.08);
    --shadow-lg: 0 10px 25px rgba(39, 59, 143, 0.12);
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.08);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --container-width: 1280px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, .outfit { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* --- HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    border-bottom: 1px solid rgb(245 237 5);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 50px; width: auto; object-fit: contain; }

.nav-menu ul { display: flex; gap: 35px; }
.nav-menu ul li a {
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    position: relative;
}
.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-base);
}
.nav-menu ul li a:hover::after { width: 100%; }

/* --- DROPDOWN MENU --- */
.nav-menu ul li.dropdown {
    position: relative;
    padding-bottom: 10px; /* Bridge gap for hover */
    margin-bottom: -10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-white);
    min-width: 250px;
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-md);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    border: 1px solid var(--border-color);
}

.nav-menu ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: var(--primary-color) !important;
    padding: 12px 25px;
    display: block;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--secondary-color) !important;
    padding-left: 30px;
}

/* Specific underline removal for dropdown */
.dropdown-menu li a::after {
    display: none !important;
}

.nav-actions { display: flex; align-items: center; gap: 20px; }
.cart-btn {
    position: relative;
    font-size: 1.3rem;
    color: white;
}
#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* --- HERO --- */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(39, 59, 143, 0.8) 0%, rgba(39, 59, 143, 0.4) 100%);
    z-index: -1;
}
.hero-title { font-size: 5rem; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.25rem; max-width: 600px; margin-bottom: 40px; opacity: 0.9; }
.hero-cta { display: flex; gap: 20px; }

/* --- SECTIONS --- */
.section-padding { padding: 100px 0; }
.section-title { font-size: 3rem; margin-bottom: 40px; color: var(--primary-color); font-weight: 900; }

/* --- PREMIUM CARDS --- */
.premium-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.premium-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: var(--shadow-premium); 
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    align-items: stretch;
    height: 500px;
}
.news-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.news-tag {
    display: inline-block;
    padding: 6px 15px;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Standard property */
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.premium-card:hover .news-card-img-wrapper img {
    transform: scale(1.1);
}

.btn-news-action {
    display: block;
    text-align: center;
    padding: 18px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    background: white;
    border: none;
    border-top: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.btn-news-action:hover {
    background: var(--secondary-color);
    color: white;
    border-top-color: var(--secondary-color);
}

.news-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-color); }
.news-excerpt { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.news-media { height: 100%; overflow: hidden; display: flex; justify-content: flex-end; }
.news-media img { width: 80%; height: 100%; object-fit: cover; display: block; }

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.product-card { text-align: center; }
.product-img { background: #fdfdfd; padding: 0; position: relative; overflow: hidden; }
.product-img img { height: 350px; width: 100%; object-fit: cover; transition: var(--transition-base); }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-info { padding: 25px; }
.product-name { font-size: 1.1rem; margin-bottom: 10px; height: 3rem; overflow: hidden; }
.product-price { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); margin-bottom: 20px; }

/* --- SPONSORS --- */
.sponsors-section { background: var(--bg-light); padding: 40px 0; border-top: 1px solid var(--border-color); }
.sponsor-slide { display: flex; align-items: center; justify-content: center; padding: 20px; }
.sponsor-slide img { height: 150px; filter: grayscale(1) opacity(0.6); transition: var(--transition-fast); }
.sponsor-slide img:hover { filter: grayscale(0) opacity(1); }

/* --- BUTTONS --- */
.btn {
    padding: 16px 35px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-secondary { background: var(--secondary-color); color: white; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--secondary-color); border-color: var(--secondary-color); color: white; }
.btn-coleplay { background: #F5ED05; color: var(--primary-color); }
.btn-coleplay:hover { background: #e3db04; }
.btn-large { padding: 15px 30px; font-size: 1.1rem; }/* --- PRODUCT BUTTONS REFINEMENT --- */
.product-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-ver-detalle {
    flex: 1;
    height: 50px;
    padding: 0 25px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.btn-ver-detalle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-add-to-cart-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-add-to-cart-circle:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Specific adjustment for Shop section labels */
.product-info .product-price {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- FLOATING --- */
.floating-buttons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.btn-whatsapp-float {
    width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 2rem; box-shadow: var(--shadow-lg); transition: var(--transition-base);
}
.btn-whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }/* --- SHOP FILTERS REFINEMENT --- */
.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 59, 143, 0.1);
}

.filter-select {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.no-results-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: none;
}

@media (max-width: 992px) {
    .shop-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        justify-content: space-between;
    }
}

/* --- NEWS ARTICLE FULL-WIDTH CINEMATIC --- */
.news-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(39, 59, 143, 0.8) 0%, rgba(39, 59, 143, 0.4) 100%);
    z-index: 1;
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

.news-tag-badge {
    display: inline-block;
    padding: 6px 15px;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.news-article-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.news-meta-info {
    display: flex;
    gap: 20px;
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 600;
}

/* Sidebar Improvements */
.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-article-card {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

.sidebar-article-card:hover {
    transform: translateX(5px);
}

.sidebar-article-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-article-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-socio-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a6c 100%);
    padding: 35px;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.sidebar-socio-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.sidebar-socio-card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.sidebar-socio-card .btn {
    width: 100%;
    margin-top: 20px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .news-article-title { font-size: 2.5rem; }
}

.gradient-text {
    background: linear-gradient(90deg, var(--secondary-color) 0%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.munro-highlight {
    background: var(--primary-color);
    padding: 2px 15px;
    border-radius: var(--radius-sm);
    display: inline-block;
    line-height: 1.25;
    margin-bottom: -5px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-nav { display: none; }
    .hero-title { font-size: 3.5rem; }
    .news-grid { grid-template-columns: 1fr; height: auto; }
    .news-media { order: -1; height: 300px; }
    .news-content { padding: 30px; }
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0 30px;
}
.footer-grid h4 { color: var(--secondary-color); margin-bottom: 25px; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { opacity: 0.8; transition: var(--transition-fast); }
.footer-links ul li a:hover { opacity: 1; color: var(--secondary-color); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; margin-top: 50px; text-align: center; font-size: 0.9rem; opacity: 0.5; }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr !important; }
}

/* --- CART DRAWER --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: white;
    z-index: 1002;
    transform: translateX(100%);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h3 { font-size: 1.5rem; color: var(--primary-color); }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-muted); transition: var(--transition-fast); }
.close-btn:hover { color: var(--secondary-color); }

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}
.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.cart-item img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 1rem; margin-bottom: 5px; display: block; }
.cart-item-price { color: var(--primary-color); font-weight: 800; }
.cart-item-controls { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.qty-btn { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--border-color); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.qty-btn:hover { background: var(--bg-light); border-color: var(--primary-color); }
.remove-item { color: var(--error-color); font-size: 0.8rem; text-decoration: underline; cursor: pointer; margin-left: auto; }

.cart-empty-msg { text-align: center; color: var(--text-muted); margin-top: 50px; font-weight: 600; }

.cart-drawer-footer {
    padding: 30px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin-bottom: 25px; color: var(--primary-color); }
.cart-drawer-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-full { width: 100%; border-radius: var(--radius-sm); }

/* --- NEWS BACKGROUND ANIMATION --- */
.news-section { position: relative; overflow: hidden; }
.news-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.news-float-icon {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.06;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes drift-down {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.06; }
    90% { opacity: 0.06; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes drift-up {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.06; }
    90% { opacity: 0.06; }
    100% { transform: translateY(-100px) rotate(-360deg); opacity: 0; }
}

/* --- HACETE SOCIO BANNER --- */
.hacete-socio-banner {
    background: linear-gradient(rgba(204, 43, 43, 0.92), rgba(204, 43, 43, 0.92)), url('../img/fondocoleplay.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

/* --- VIDEO MODAL --- */
.modal-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}
.modal-video.active {
    opacity: 1;
    visibility: visible;
}
.modal-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}
.modal-video-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 2001;
    transform: scale(0.9);
    transition: var(--transition-base);
}
.modal-video.active .modal-video-content {
    transform: scale(1);
}
.modal-video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}
.modal-video-close:hover {
    color: var(--secondary-color);
}
.video-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- HISTORIA PAGE --- */
.historia-hero {
    height: 88vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}
.historia-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(39, 59, 143, 0.9) 0%, rgba(39, 59, 143, 0.4) 100%);
}

.timeline-section {
    position: relative;
    padding-bottom: 80px; /* Increased footer air */
    overflow: hidden;
}

.timeline-swiper {
    padding: 110px 0 100px!important; 
    position: relative;
}

.timeline-swiper::before {
    content: '';
    position: absolute;
    top: 145px; /* Adjusted for larger padding (110px padding-top + dot alignment) */
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    z-index: 0;
}

.timeline-item {
    padding: 0 15px;
    height: auto;
    width: 390px!important; 
    max-width: 100%; /* Ensure responsiveness on smaller screens */
}

/* Timeline dot */
.timeline-dot {
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.timeline-content {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.timeline-img {
    width: 100%;
    height: 450px; /* Increased height as requested */
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: auto;
    padding-top: 15px;
}

/* Swiper navigation styling */
.timeline-swiper .swiper-button-next {
    right: 10px; 
    color: var(--primary-color);
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.timeline-swiper .swiper-button-prev {
    left: 10px; 
    color: var(--primary-color);
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 10;
}
.timeline-swiper .swiper-button-next::after,
.timeline-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 900;
}
.timeline-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Identity Section */
.identity-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}
.identity-bg-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}
.identity-text {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.identity-text p {
    font-size: 1.25rem;
    line-height: 2;
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Gallery Grids */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
.gallery-item {
    text-align: center;
}
.gallery-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}
.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}
.gallery-card img {
    height: 250px;
    object-fit: contain;
    margin: 0 auto 15px;
}
.gallery-year {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Mobile Timeline */
@media screen and (max-width: 768px) {
    .timeline-container::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 18.5px !important; }
    .right { left: 0; }
}

/* Premium Card for video and other content */
.premium-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

/* --- JERSEY SLIDER --- */
.jerseys-carousel-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.jerseys-swiper {
    padding: 40px 10px 60px !important;
}

.jerseys-swiper .swiper-slide {
    height: auto;
    transition: var(--transition-base);
}

.jerseys-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
}

.jerseys-swiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

.swiper-button-jerseys {
    background: white;
    color: #007aff; /* Swiper's classic blue, as seen in the reference */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: -30px;
    transition: var(--transition-base);
}

.swiper-button-jerseys:after {
    font-size: 1.1rem;
    font-weight: 900;
}

.swiper-button-jerseys:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #007aff;
    background: white;
}

/* Video Responsive Container */
.video-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- PREDIOS SECTION --- */
.predios-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.predios-col {
    flex: 1;
    min-width: 0; /* Critical for Swiper */
}

@media (max-width: 991px) {
    .predios-layout {
        flex-direction: column;
        gap: 40px;
    }
}

.predios-details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.details-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-base);
}

.details-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.details-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.details-info h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 5px;
}

.details-info p {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.predios-swiper {
    padding: 0 0 50px !important; /* Raised pagination (less bottom padding) */
}

.predios-swiper .swiper-pagination {
    bottom: 20px !important; /* Specifically raising the dots */
}

.predios-swiper .gallery-card {
    padding: 0 !important; /* Stretch images to the border */
    overflow: hidden;
    cursor: zoom-in;
}

/* --- IMAGE MODAL (LIGHTBOX) --- */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.active .modal-content-img {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}


/* --- SOCIOS PAGE STYLES --- */
.asociate-grid {
    margin-bottom: 80px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li i {
    width: 20px;
    text-align: center;
}

.cuotas-grid {
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .asociate-grid, .membership-actions, .cuotas-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .cuota-card {
        transform: none !important;
    }
}

.cuota-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.membership-actions .action-card {
    transition: var(--transition-base);
    cursor: pointer;
}

.membership-actions .action-card:hover {
    transform: translateY(-10px);
}

/* --- MODAL SOCIO PLENO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    padding: 50px;
    transform: scale(0.9);
    transition: var(--transition-base);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--secondary-color);
}

/* --- PREMIUM FORM --- */
.premium-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .premium-form .form-grid {
        grid-template-columns: 1fr;
    }
    .modal-container {
        padding: 30px 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 59, 143, 0.1);
}

.form-submit {
    text-align: center;
}

