/* ============================================
   DEPORTES PRO - ESTILOS PÚBLICOS CONSOLIDADOS
   VERSIÓN LIMPIA FINAL
   ============================================ */

:root {
    --primary: #0d47a1;
    --primary-light: #1976d2;
    --primary-dark: #002171;
    --accent: #00bcd4;
    --success: #2e7d32;
    --warning: #f9a825;
    --danger: #c62828;
    --info: #0288d1;
    --dark: #1a1a2e;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
    --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    --ad-radius: 16px;
    --ad-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.navbar-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand { font-size: 1.4rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand-icon { font-size: 1.6rem; }
.navbar-menu { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.navbar-menu a {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active { background: rgba(255,255,255,0.15); color: var(--white); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}
.notification-bell { position: relative; color: var(--white); font-size: 1.25rem; cursor: pointer; }
.notification-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.user-menu { display: flex; align-items: center; gap: 0.5rem; color: var(--white); cursor: pointer; padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); }
.user-menu:hover { background: rgba(255,255,255,0.15); }
.user-menu-name { font-size: 0.9rem; }
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* HERO BASE */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.1; }
.hero p { font-size: 1.2rem; opacity: 0.95; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }
.btn-secondary { background: var(--gray-200); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #1b5e20; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8e0000; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--gray-900); }
.btn-info { background: var(--info); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* SECCIONES Y CARDS */
.section { padding: 3rem 0; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-900); }
.section-subtitle { color: var(--gray-600); margin-bottom: 2rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-body.no-padding { padding: 0; }
.card-header {
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.championship-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.championship-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.championship-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.championship-card-header { padding: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); text-align: center; min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.championship-logo { width: 70px; height: 70px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 0.75rem; box-shadow: var(--shadow-md); overflow: hidden; }
.championship-logo img { width: 100%; height: 100%; object-fit: cover; }
.championship-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.championship-meta { font-size: 0.85rem; opacity: 0.9; }
.championship-card-body { padding: 1.25rem; flex-grow: 1; }
.championship-info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--gray-700); }
.championship-info div { display: flex; align-items: center; gap: 0.5rem; }
.championship-card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }

/* BADGES */
.badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-primary { background: var(--primary); color: var(--white); }
.badge-success { background: var(--success); color: var(--white); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--gray-900); }
.badge-info { background: var(--info); color: var(--white); }
.badge-secondary { background: var(--gray-500); color: var(--white); }
.badge-button { border: none; cursor: pointer; font-family: inherit; }

/* TABLAS */
.table-responsive { overflow-x: auto; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; background: var(--white); }
.table th { background: var(--gray-100); color: var(--gray-800); font-weight: 600; text-align: left; padding: 0.85rem 1rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; vertical-align: middle; }
.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }
.table-standings { font-size: 0.9rem; }
.table-standings th, .table-standings td { text-align: center; padding: 0.65rem 0.5rem; }
.table-standings th:nth-child(2), .table-standings td:nth-child(2) { text-align: left; }
.position-cell { font-weight: 700; width: 40px; }
.position-1 { color: #ffd700; }
.position-2 { color: #c0c0c0; }
.position-3 { color: #cd7f32; }

/* FORMULARIOS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--gray-800); font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; transition: var(--transition); background: var(--white); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,71,161,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-hint { display: block; font-size: 0.8rem; color: var(--gray-600); margin-top: 0.25rem; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.form-checkbox input[type="checkbox"] { margin-top: 0.25rem; cursor: pointer; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ALERTAS */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border-left: 4px solid; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: var(--success); }
.alert-danger { background: #ffebee; color: #b71c1c; border-color: var(--danger); }
.alert-warning { background: #fff8e1; color: #e65100; border-color: var(--warning); }
.alert-info { background: #e1f5fe; color: #01579b; border-color: var(--info); }

/* TABS */
.tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; overflow-x: auto; }
.tab { padding: 0.75rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--gray-600); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; font-size: 0.95rem; text-decoration: none; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-md); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease; }
@keyframes modalIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 1.25rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-600); line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* PAGINACIÓN */
.pagination { display: flex; justify-content: center; margin-top: 2rem; }
.pagination ul { display: flex; gap: 0.35rem; list-style: none; }
.pagination a { padding: 0.5rem 0.85rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; transition: var(--transition); }
.pagination a:hover { background: var(--gray-100); border-color: var(--primary); }
.pagination .active a { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* FOOTER */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 3rem 0 1rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-description { font-size: 0.9rem; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.sponsors-bar { display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: 1.5rem; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); margin-bottom: 2rem; }
.sponsors-bar img { height: 50px; filter: brightness(0) invert(1); opacity: 0.7; transition: var(--transition); }
.sponsors-bar img:hover { opacity: 1; }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 2rem 1rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 450px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-icon { font-size: 3rem; }
.auth-logo h1 { color: var(--primary); font-size: 1.75rem; margin-top: 0.5rem; }
.auth-title { text-align: center; font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--gray-900); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-600); }
.auth-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.auth-option-card { display: flex; align-items: center; gap: 0.5rem; padding: 1rem; border: 2px solid var(--gray-200); border-radius: 8px; cursor: pointer; transition: var(--transition); }
.auth-option-card:hover { border-color: var(--primary-light); }
.auth-option-card:has(input[type="radio"]:checked) { border-color: var(--primary); background: #eff6ff; }
.auth-option-title { display: block; font-weight: 700; }
.auth-option-desc { color: var(--gray-600); font-size: 0.8rem; }
.terms-group { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.terms-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 0.875rem; line-height: 1.6; color: var(--gray-600); padding: 1rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; transition: var(--transition); }
.terms-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.125rem; cursor: pointer; flex-shrink: 0; }
.terms-link { color: var(--primary); text-decoration: underline; font-weight: 600; }
.legal-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); text-align: center; font-size: 0.8rem; color: var(--gray-500); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.2rem; color: var(--gray-700); margin-bottom: 0.5rem; }

/* FILTROS */
.filter-form { padding: 1.25rem; margin-bottom: 2rem; }

/* PERFIL */
.profile-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 2.5rem 0;
}
.profile-hero-back { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.profile-hero-content { display: flex; gap: 2rem; margin-top: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-avatar {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}
.profile-info { flex: 1; min-width: 250px; }
.profile-name { font-size: 2.2rem; margin-bottom: 0.25rem; }
.profile-number { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 1.2rem; }
.profile-location { opacity: 0.9; font-size: 1.1rem; margin-bottom: 0.5rem; }
.profile-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.profile-badge { background: rgba(255,255,255,0.2); color: var(--white); padding: 0.35rem 0.75rem; border-radius: 50px; font-size: 0.85rem; }
.profile-badge-success { background: var(--success); }
.profile-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.profile-layout-sidebar { display: flex; flex-direction: column; gap: 0.75rem; }
.profile-text { line-height: 1.7; }
.profile-meta { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0.5rem; }

.status-card { color: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.status-card-success { background: linear-gradient(135deg, #2e7d32, #43a047); }
.status-card-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.status-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* HOME LAYOUT */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.home-main { min-width: 0; }

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px !important;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    background: #0f172a;
}
.hero-carousel-wrapper > .container { position: relative; z-index: 10; }
.hero-carousel-wrapper .hero-content { padding: 1.5rem 0; }
.hero-carousel-wrapper .hero-content h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-carousel-wrapper .hero-content p { font-size: 0.95rem; margin-bottom: 1.25rem; }
.hero-carousel-wrapper .hero-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

.matches-grid-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.match-card-link { text-decoration: none; color: inherit; display: block; }
.match-card-compact {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.match-card-link:hover .match-card-compact {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}
.match-card-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 0.75rem 1rem;
}
.match-card-championship { font-weight: 700; font-size: 0.8rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-card-location { opacity: 0.9; font-size: 0.7rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.match-card-body { padding: 1rem 0.75rem; display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.match-card-team { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; min-width: 0; }
.match-card-logo { width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid #e2e8f0; }
.match-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.match-card-logo span { font-size: 1.1rem; }
.match-card-team-name { font-size: 0.75rem; font-weight: 600; color: #1e293b; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-card-score { flex-shrink: 0; display: flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.match-card-score .score-local, .match-card-score .score-visitante { font-size: 1.2rem; font-weight: 800; color: #1e40af; min-width: 20px; text-align: center; }
.match-card-score .score-separator { font-size: 1rem; color: #94a3b8; font-weight: 600; }
.match-card-footer { padding: 0.6rem 0.75rem; background: #f8fafc; border-top: 1px solid #e2e8f0; font-size: 0.75rem; color: #64748b; text-align: center; font-weight: 500; }

/* PUBLICIDAD */
.ad-banner-superior { width: 100%; max-height: 300px; overflow: hidden; position: relative; background: #0f172a; }
.ad-banner-superior .ad-slides-container { position: relative; width: 100%; height: 300px; }
.ad-banner-superior .ad-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.ad-banner-superior .ad-slide.active { opacity: 1; z-index: 2; }
.ad-banner-superior .ad-slide a { display: block; width: 100%; height: 100%; }
.ad-banner-superior .ad-slide img, .ad-banner-superior .ad-slide video { width: 100%; height: 100%; object-fit: cover; }

.ad-hero-carrusel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.ad-hero-carrusel .ad-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; }
.ad-hero-carrusel .ad-slide.active { opacity: 1; }
.ad-hero-carrusel .ad-slide a { display: block; width: 100%; height: 100%; position: relative; }
.ad-hero-carrusel .ad-slide img, .ad-hero-carrusel .ad-slide video { width: 100%; height: 100%; object-fit: cover; }
/*.ad-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.2) 100%); z-index: 2; }*/
.ad-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 2; }
.ad-hero-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: #fff; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; border: 1px solid rgba(255,255,255,0.2); z-index: 3; }

.ad-sidebar-container { position: sticky; top: 100px; }
.ad-sidebar-label { font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; text-align: center; }
.ad-sidebar-carrusel { position: relative; width: 100%; aspect-ratio: 300 / 600; border-radius: var(--ad-radius); overflow: hidden; box-shadow: var(--ad-shadow); background: #0f172a; }
.ad-sidebar-carrusel .ad-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.ad-sidebar-carrusel .ad-slide.active { opacity: 1; }
.ad-sidebar-carrusel .ad-slide a { display: block; width: 100%; height: 100%; }
.ad-sidebar-carrusel .ad-slide img, .ad-sidebar-carrusel .ad-slide video { width: 100%; height: 100%; object-fit: cover; }

.ad-entre-contenido { width: 100%; margin: 2rem 0; border-radius: var(--ad-radius); overflow: hidden; box-shadow: var(--ad-shadow); position: relative; }
.ad-entre-contenido .ad-slides-container { position: relative; width: 100%; min-height: 90px; }
.ad-entre-contenido .ad-slide { position: relative; width: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; display: none; }
.ad-entre-contenido .ad-slide.active { opacity: 1; display: block; }
.ad-entre-contenido .ad-slide a { display: block; width: 100%; }
.ad-entre-contenido .ad-slide img, .ad-entre-contenido .ad-slide video { width: 100%; height: auto; display: block; }

.ad-patrocinio { width: 100%; padding: 1rem 2rem; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: var(--ad-radius); border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0; }
.ad-patrocinio-label { font-size: 0.8rem; color: #64748b; font-weight: 500; }
.ad-patrocinio-logo { height: 40px; width: auto; object-fit: contain; }

/* POPUP: cerrado fuera de pantalla pero renderizable para video/audio */
.ad-popup-overlay {
    position: fixed;
    top: -99999px;
    left: -99999px;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transition: opacity 0.25s ease;
}
.ad-popup-overlay.active {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    z-index: 9999;
}
.ad-popup-overlay:not(.active) .ad-popup-container,
.ad-popup-overlay:not(.active) .ad-popup-content,
.ad-popup-overlay:not(.active) .ad-popup-close,
.ad-popup-overlay:not(.active) .ad-popup-info,
.ad-popup-overlay:not(.active) .ad-popup-indicators,
.ad-popup-overlay:not(.active) video,
.ad-popup-overlay:not(.active) img {
    pointer-events: none !important;
}
.ad-popup-container {
    position: relative;
    width: 600px;
    height: 400px;
    background: #000;
    border-radius: var(--ad-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.ad-popup-overlay.active .ad-popup-container { transform: scale(1); }
.ad-popup-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
    backdrop-filter: blur(4px);
}
.ad-popup-close:hover { background: rgba(0,0,0,0.9); transform: rotate(90deg); }
.ad-popup-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}
.ad-popup-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.ad-popup-slide .ad-popup-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 1;
}
.ad-popup-slide .ad-popup-content img,
.ad-popup-slide .ad-popup-content video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.ad-popup-slide .ad-popup-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 45px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ad-popup-slide .ad-popup-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.ad-popup-slide .ad-popup-description {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.ad-popup-slide .ad-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-align: center;
    align-self: flex-start;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
}
.ad-popup-slide .ad-popup-button:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(30, 64, 175, 0.6); }
.ad-popup-indicators { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 20; }
.ad-popup-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}
.ad-popup-indicator.active { background: #fff; border-color: #fff; transform: scale(1.2); }

.ad-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; font-size: 1.3rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: var(--transition); opacity: 0; }
.ad-carrusel:hover .ad-nav-btn { opacity: 1; }
.ad-nav-btn:hover { background: rgba(0,0,0,0.8); transform: translateY(-50%) scale(1.1); }
.ad-nav-btn.prev { left: 15px; }
.ad-nav-btn.next { right: 15px; }

.ad-indicators { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.ad-indicator { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); background: transparent; cursor: pointer; transition: all 0.3s ease; padding: 0; }
.ad-indicator.active { background: #fff; transform: scale(1.3); }

.page-layout-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; }
.page-layout-with-sidebar .page-main-content { min-width: 0; }
.sidebar-publicitario { position: relative; }
.sidebar-publicitario .ad-sidebar-container { position: sticky; top: 100px; }

/* NOTICIAS */
.noticias-filtros { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; padding: 1.25rem; }
.noticias-filtro { flex: 1; min-width: 130px; }
.noticias-filtro-label { display: block; font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 0.25rem; }
.noticias-filtro-buscar { flex: 1.5; min-width: 160px; }
.noticias-filtros-acciones { display: flex; gap: 0.5rem; align-items: flex-end; }
.noticias-filtros-activos { padding: 0.5rem 1.25rem; border-top: 1px solid #e2e8f0; background: #f8fafc; }

.noticias-destacadas-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid #fbbf24; }
.noticias-destacadas-titulo { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin: 0; }
.noticias-destacadas-badge { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.noticias-destacadas-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }

.news-card-destacada-principal { position: relative; border-radius: 16px; overflow: hidden; min-height: 400px; background: #1e293b; border: 3px solid #fbbf24; box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3); transition: all 0.3s ease; grid-row: span 2; }
.news-card-destacada-principal:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(251, 191, 36, 0.4); }
.news-card-destacada-principal img, .news-card-destacada-principal .news-img-placeholder { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.news-card-destacada-principal .news-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%); padding: 2rem 1.5rem 1.5rem; color: #fff; }
.news-card-destacada-principal .news-destacada-badge { position: absolute; top: 1rem; left: 1rem; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.3); z-index: 2; }
.news-card-destacada-principal .news-title-destacada { font-size: 1.75rem; font-weight: 800; line-height: 1.25; margin: 0.5rem 0; }
.news-card-destacada-principal .news-title-destacada a { color: #fff; text-decoration: none; }

.news-card-destacada-secundaria { position: relative; border-radius: 12px; overflow: hidden; background: #1e293b; border: 2px solid #fbbf24; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2); transition: all 0.3s ease; min-height: 190px; }
.news-card-destacada-secundaria img, .news-card-destacada-secundaria .news-img-placeholder { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.news-card-destacada-secundaria .news-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, transparent 100%); padding: 1.5rem 1rem 1rem; color: #fff; }
.news-card-destacada-secundaria .news-title-destacada { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0.25rem 0; }
.news-card-destacada-secundaria .news-title-destacada a { color: #fff; text-decoration: none; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.news-grid-normal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.3s ease; display: flex; flex-direction: column; border: 1px solid #e2e8f0; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); border-color: #3b82f6; }
.news-card .news-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card .news-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-card .news-category { display: inline-block; background: #dbeafe; color: #1e40af; padding: 0.25rem 0.6rem; border-radius: 15px; font-size: 0.7rem; font-weight: 600; }
.news-card .news-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: 0.5rem 0; color: #1e293b; }
.news-card .news-title a { color: inherit; text-decoration: none; }
.news-card .news-excerpt { color: #64748b; font-size: 0.9rem; line-height: 1.5; margin: 0.5rem 0; flex: 1; }
.news-card .news-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.75rem; color: #94a3b8; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; }

.noticias-normales-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid #e2e8f0; }
.noticias-normales-titulo { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin: 0; }
.noticias-normales-count { background: #1e40af; color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

.news-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 2rem 0; }
.news-hero-title { font-size: 2.2rem; margin: 0.75rem 0; line-height: 1.2; }
.news-hero-meta { display: flex; gap: 1.5rem; font-size: 0.9rem; opacity: 0.9; flex-wrap: wrap; }
.news-container { max-width: 900px; margin: 0 auto; }
.news-main-image { width: 100%; border-radius: var(--radius-md); margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.news-summary { background: var(--gray-100); padding: 1.5rem; border-radius: var(--radius-md); border-left: 4px solid var(--primary); margin-bottom: 2rem; font-size: 1.1rem; line-height: 1.6; }
.news-content { font-size: 1.05rem; line-height: 1.8; color: var(--gray-800); }
.news-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.news-gallery-item { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.news-gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.news-img-placeholder { background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--white); }

/* ÁRBITROS */
.arbitros-filtros { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; padding: 1.25rem; }
.arbitros-filtro { flex: 1; min-width: 130px; }
.arbitros-filtro-label { display: block; font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 0.25rem; }
.arbitros-filtro-buscar { flex: 1.5; min-width: 160px; }
.arbitros-filtros-acciones { display: flex; gap: 0.5rem; align-items: flex-end; }
.arbitros-filtros-activos { padding: 0.5rem 1.25rem; border-top: 1px solid #e2e8f0; background: #f8fafc; }

.arbitros-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }

.arbitro-card { background: #fff; border-radius: 16px; overflow: visible; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; display: flex; flex-direction: column; cursor: pointer; border: 2px solid #e2e8f0; }
.arbitro-card:hover { transform: scale(1.08) translateY(-8px); box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25); z-index: 10; border-color: #3b82f6; }
.arbitro-card.destacado { border-color: #fbbf24; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3); }
.arbitro-card-badge-destacado { position: absolute; top: 0.75rem; right: 0.75rem; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; z-index: 3; }
.arbitro-avatar-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f1f5f9; position: relative; border-radius: 16px 16px 0 0; }
.arbitro-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.arbitro-card:hover .arbitro-avatar-wrap img { transform: scale(1.1); }
.arbitro-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #cbd5e1; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.arbitro-content { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.arbitro-name { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.arbitro-ubicacion { color: #94a3b8; font-size: 0.8rem; margin: 0 0 0.75rem; }
.arbitro-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.arbitro-calificacion { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; padding: 0.5rem; background: #fef3c7; border-radius: 8px; }
.arbitro-calificacion-valor { font-size: 1.1rem; font-weight: 800; color: #92400e; }
.arbitro-info-expandible { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; border-top: 1px solid transparent; margin-top: 0; padding-top: 0; }
.arbitro-card:hover .arbitro-info-expandible { max-height: 800px; opacity: 1; border-top: 1px solid #e2e8f0; margin-top: 0.75rem; padding-top: 0.75rem; }
.arbitro-info-section { margin-bottom: 0.75rem; }
.arbitro-info-title { font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.arbitro-info-text { font-size: 0.85rem; color: #334155; line-height: 1.5; margin: 0; }
.arbitro-footer { margin-top: auto; padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.arbitro-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.3s; border: none; cursor: pointer; }
.arbitro-btn-primary { background: #1e40af; color: #fff; }
.arbitro-btn-primary:hover { background: #1e3a8a; transform: translateY(-2px); }
.arbitro-btn-contacto { background: #25D366; color: #fff; max-height: 0; overflow: hidden; opacity: 0; padding: 0; margin: 0; transition: all 0.4s ease; }
.arbitro-card:hover .arbitro-btn-contacto { max-height: 60px; opacity: 1; padding: 0.6rem 1rem; }
.arbitro-badge-deporte { display: inline-flex; align-items: center; gap: 0.25rem; background: #dbeafe; color: #1e40af; padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* JUGADORES */
.jugadores-filtros { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; padding: 1.25rem; }
.jugadores-filtro { flex: 1; min-width: 130px; }
.jugadores-filtro-label { display: block; font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 0.25rem; }
.jugadores-filtro-buscar { flex: 1.5; min-width: 160px; }
.jugadores-filtros-acciones { display: flex; gap: 0.5rem; align-items: flex-end; }
.jugadores-filtros-activos { padding: 0.5rem 1.25rem; border-top: 1px solid #e2e8f0; background: #f8fafc; }

.jugadores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }

.jugador-card { background: #fff; border-radius: 16px; overflow: visible; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; display: flex; flex-direction: column; cursor: pointer; border: 2px solid #e2e8f0; }
.jugador-card:hover { transform: scale(1.08) translateY(-8px); box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25); z-index: 10; border-color: #3b82f6; }
.jugador-card.destacado { border-color: #fbbf24; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3); }
.jugador-card-badge-destacado { position: absolute; top: 0.75rem; right: 0.75rem; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; z-index: 3; }
.jugador-avatar-wrap { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f1f5f9; position: relative; border-radius: 16px 16px 0 0; }
.jugador-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.jugador-card:hover .jugador-avatar-wrap img { transform: scale(1.1); }
.jugador-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #cbd5e1; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.jugador-content { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.jugador-name { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.jugador-posicion { color: #64748b; font-size: 0.85rem; margin: 0 0 0.5rem; font-weight: 500; }
.jugador-ubicacion { color: #94a3b8; font-size: 0.8rem; margin: 0 0 0.75rem; }
.jugador-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.jugador-info-expandible { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; border-top: 1px solid transparent; margin-top: 0; padding-top: 0; }
.jugador-card:hover .jugador-info-expandible { max-height: 800px; opacity: 1; border-top: 1px solid #e2e8f0; margin-top: 0.75rem; padding-top: 0.75rem; }
.jugador-info-section { margin-bottom: 0.75rem; }
.jugador-info-title { font-size: 0.7rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.jugador-info-text { font-size: 0.85rem; color: #334155; line-height: 1.5; margin: 0; }
.jugador-footer { margin-top: auto; padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.jugador-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.6rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.3s; border: none; cursor: pointer; }
.jugador-btn-primary { background: #1e40af; color: #fff; }
.jugador-btn-primary:hover { background: #1e3a8a; transform: translateY(-2px); }
.jugador-btn-contacto { background: #25D366; color: #fff; max-height: 0; overflow: hidden; opacity: 0; padding: 0; margin: 0; transition: all 0.4s ease; }
.jugador-card:hover .jugador-btn-contacto { max-height: 60px; opacity: 1; padding: 0.6rem 1rem; }
.jugador-badge-libre { display: inline-flex; align-items: center; gap: 0.25rem; background: #dcfce7; color: #166534; padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.jugador-badge-deporte { display: inline-flex; align-items: center; gap: 0.25rem; background: #dbeafe; color: #1e40af; padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* TIENDAS */
.tiendas-filtros-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; margin-top: 0; }
.tiendas-filtro-label { display: block; font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 0.25rem; }
.tiendas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tienda-card { overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.tienda-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.tienda-card-cover { height: 120px; overflow: hidden; background: #f1f5f9; }
.tienda-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.tienda-card-cover-placeholder { height: 120px; background: linear-gradient(135deg, #1e40af, #3b82f6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem; }
.tienda-card-body { padding: 1.25rem; }
.tienda-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.tienda-card-logo { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.tienda-card-logo-placeholder { width: 50px; height: 50px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.tienda-card-name { margin: 0; font-size: 1.1rem; color: #1e293b; }
.tienda-card-desc { color: #64748b; font-size: 0.9rem; margin: 0.5rem 0; line-height: 1.5; }
.tienda-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; }

.store-hero { position: relative; width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); overflow: hidden; background: #1e40af; }
.store-hero-cover { width: 100%; height: 300px; position: relative; overflow: hidden; }
.store-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-hero-content { width: 100%; background: linear-gradient(135deg, #1e40af, #3b82f6) !important; color: #fff; padding: 2rem 1rem 2.5rem; position: relative; border: none !important; box-shadow: none !important; }
.store-hero-content.container, .store-hero-content .container, .store-hero-content[class*="container"] { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 auto !important; }
.store-hero-inner { display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; width: 100%; max-width: 1200px; margin: 0 auto; background: transparent !important; }
.store-logo-wrap { width: 140px; height: 140px; border-radius: 20px; border: 5px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.25); overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 5rem; flex-shrink: 0; margin-top: -90px; position: relative; z-index: 2; }
.store-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.store-info { flex: 1; min-width: 280px; background: transparent !important; }
.store-name { margin: 0.5rem 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.store-description { opacity: 0.95; max-width: 700px; line-height: 1.6; margin: 0.5rem 0 1rem; color: #fff; }
.store-contact-grid { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; background: transparent !important; }
.store-contact-item { display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; text-decoration: none; font-size: 0.9rem; padding: 0.45rem 0.9rem; background: rgba(255,255,255,0.15); border-radius: 8px; transition: background 0.2s, transform 0.2s; }
.store-contact-item:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.store-social { display: inline-flex; gap: 0.6rem; margin-top: 0.75rem; margin-left: 1rem; flex-wrap: wrap; background: transparent !important; }
.social-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.social-btn.facebook { background: #1877F2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #000; }

.products-section { padding: 3rem 0; }
.products-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #e2e8f0; }
.products-title { font-size: 1.8rem; font-weight: 800; color: #1e293b; margin: 0; }
.products-count { background: #1e40af; color: #fff; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; margin-left: 0.5rem; }
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.product-card { background: #fff; border-radius: 16px; overflow: visible; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; display: flex; flex-direction: column; cursor: pointer; border: 1px solid #e2e8f0; }
.product-card:hover { transform: scale(1.08) translateY(-8px); box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25); z-index: 10; border-color: #3b82f6; }
.product-image-wrap { aspect-ratio: 1/1; overflow: hidden; background: #f1f5f9; position: relative; border-radius: 16px 16px 0 0; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.1); }
.product-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: #cbd5e1; }
.product-content { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-name { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 700; color: #1e293b; line-height: 1.3; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid #f1f5f9; }
.product-price { color: #059669; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px; }
.product-whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; background: #25D366; color: #fff !important; padding: 0.4rem 0.7rem; border-radius: 8px; text-decoration: none; font-size: 0.8rem; font-weight: 700; transition: all 0.3s; box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3); }
.product-whatsapp-btn:hover { background: #1ea855; transform: scale(1.05); }

/* BÚSQUEDA */
.search-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 2.5rem 0; }
.search-hero-title { font-size: 2rem; margin-bottom: 1rem; }
.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search-form .form-control { background: var(--white); }
.search-form-input { flex: 2; min-width: 250px; }
.search-form-select { flex: 1; min-width: 150px; }
.search-form-city { flex: 1; min-width: 150px; }
.search-form-btn { background: var(--white); color: var(--primary); }

.search-result-item { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200); text-decoration: none; color: inherit; transition: var(--transition); }
.search-result-item:hover { background: var(--gray-50); }
.search-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-avatar-sm { width: 45px; height: 45px; font-size: 1.3rem; }
.search-avatar-lg { width: 80px; height: 55px; border-radius: 6px; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-weight: 700; display: block; margin-bottom: 0.25rem; }
.search-result-meta { font-size: 0.85rem; color: var(--gray-600); }

/* LIGHTBOX */
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: var(--white); color: var(--gray-900); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* UTILIDADES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-dark { color: var(--gray-800); }
.text-muted { color: var(--gray-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-light { color: var(--gray-400); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.bg-light { background: var(--gray-100); }

/* PARTIDOS DEL CAMPEONATO */
.match-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.match-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}
.match-card > .match-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.match-card > .match-team:first-child { justify-content: flex-end; text-align: right; }
.match-card > .match-team:last-child { justify-content: flex-start; text-align: left; }
.match-card .match-team-logo {
    width: 72px; height: 72px;
    min-width: 72px; min-height: 72px;
    max-width: 72px; max-height: 72px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    margin: 0;
}
.match-card .match-team-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 3px;
    border-radius: 50%;
    display: block;
}
.match-card .match-team strong {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-card > div:not(.match-team) {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 120px;
}
.match-card .match-score {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: -0.5px;
    line-height: 1;
    padding: 0.35rem 1rem;
    background: #eff6ff;
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
}
.match-card .match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}
.match-card .match-info div { white-space: nowrap; }
.match-card .match-info strong { color: #1e293b; font-size: 0.8rem; }
.match-card .match-info .badge { font-size: 0.7rem; padding: 0.2rem 0.6rem; margin-top: 0.15rem; }

.table-standings .table-team-logo,
.table-standings td img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1px;
    vertical-align: middle;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.table-standings tbody tr:nth-child(1) td:first-child { border-left: 3px solid #fbbf24; }
.table-standings tbody tr:nth-child(2) td:first-child { border-left: 3px solid #94a3b8; }
.table-standings tbody tr:nth-child(3) td:first-child { border-left: 3px solid #cd7f32; }

.championship-grid .card .match-team-logo {
    width: 80px !important; height: 80px !important;
    margin: 0 auto 1rem;
    border: 3px solid #e2e8f0;
    background: #ffffff;
}
.championship-grid .card .match-team-logo img {
    width: 100% !important; height: 100% !important;
    padding: 4px;
}
.championship-grid .card h3 { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0.5rem 0 0.25rem; }
.championship-grid .card .text-muted { font-size: 0.85rem; }

/* PATROCINADORES ADMIN */
.sponsor-logo {
    width: 80px; height: 50px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
    display: block;
}
.sponsor-logo-placeholder {
    width: 80px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 1.5rem;
    color: #94a3b8;
}
.sponsor-logo-preview {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    margin-top: 0.5rem;
    display: block;
}
.sponsor-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-all;
}
.sponsor-link:hover { text-decoration: underline; }

/* FILTROS CONSISTENTES */
.section .tiendas-filtros-grid { margin-top: 0; }
.section-subtitle { margin-bottom: 1rem; }

.noticias-filtro select,
.noticias-filtro input,
.arbitros-filtro select,
.arbitros-filtro input,
.jugadores-filtro select,
.jugadores-filtro input,
.tiendas-filtro select,
.tiendas-filtro input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
    color: #1e293b;
    transition: all 0.25s ease;
    cursor: pointer;
}
.noticias-filtro select:focus,
.noticias-filtro input:focus,
.arbitros-filtro select:focus,
.arbitros-filtro input:focus,
.jugadores-filtro select:focus,
.jugadores-filtro input:focus,
.tiendas-filtro select:focus,
.tiendas-filtro input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.noticias-filtro select:hover,
.arbitros-filtro select:hover,
.jugadores-filtro select:hover,
.tiendas-filtro select:hover {
    border-color: #94a3b8;
}

.match-venue {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* RESULTADOS EXCLUSIVOS */
.match-card-compact.match-exclusivo {
    border: 2px solid #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    position: relative;
}
.match-card-link:hover .match-card-compact.match-exclusivo {
    border-color: #d97706;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}
.match-exclusivo-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TARJETAS CAMPEONATOS HOVER-COMPACTAS */
.champ-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.champ-card-hover {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.champ-card-hover:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-light);
    transform: translateY(-4px);
    z-index: 10;
}

.champ-head {
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    z-index: 2;
    position: relative;
}

.champ-logo-lg {
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.champ-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.champ-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.champ-sport-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.champ-title-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
}

.champ-season-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.1rem;
}

.champ-status-pos {
    margin-top: 0.3rem;
}

.champ-body-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-in, padding 0.3s ease;
    background: #f8fafc;
    border-top: 1px solid transparent;
    padding: 0 1.25rem;
}

.champ-card-hover:hover .champ-body-hidden {
    max-height: 400px;
    opacity: 1;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    border-top-color: #e2e8f0;
}

.champ-detail-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.champ-icon-small {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--gray-500);
}

.champ-val-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.champ-date-highlight {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #cbd5e1;
}

.champ-date-bold {
    font-weight: 600;
    color: var(--gray-900);
    font-family: monospace;
    font-size: 0.85rem;
}

.champ-btn-area {
    margin-top: 0.75rem;
}

.champ-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.champ-view-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.02);
}

/* ELEMENTOS OCULTOS POR DEFECTO */
.navbar-auth-mobile,
.hero-static-mobile {
    display: none;
}

@keyframes navbarOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-sidebar { display: none; }
    .matches-grid-home { grid-template-columns: repeat(2, 1fr); }
    .championship-grid, .news-grid-normal, .arbitros-grid, .jugadores-grid, .tiendas-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .noticias-destacadas-grid { grid-template-columns: 1fr 1fr; }
    .champ-grid-modern { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .page-layout-with-sidebar { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
    .sidebar-publicitario { display: none; }
    .ad-sidebar-container { display: none; }
    .profile-layout, .store-layout { grid-template-columns: 1fr; }
    .noticias-destacadas-grid { grid-template-columns: 1fr 1fr; }
    .news-card-destacada-principal { grid-column: span 2; grid-row: span 1; min-height: 300px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .tiendas-filtros-grid { grid-template-columns: 1fr 1fr !important; }
    .championship-grid, .news-grid-normal, .arbitros-grid, .jugadores-grid, .tiendas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: transparent !important;
        border: none !important;
        color: var(--white) !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        z-index: 1001 !important;
    }

    .navbar-menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -300px !important;
        left: auto !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 4.5rem 1.25rem 1.5rem !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3) !important;
        z-index: 999 !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        gap: 0.25rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        list-style: none !important;
    }

    .navbar-menu.open {
        display: flex !important;
        right: 0 !important;
    }

    body:has(.navbar-menu.open) {
        overflow: hidden !important;
    }

    body:has(.navbar-menu.open)::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        z-index: 998 !important;
        animation: navbarOverlayFade 0.25s ease !important;
    }

    .navbar-menu li {
        width: 100% !important;
        margin-bottom: 0.15rem !important;
    }

    .navbar-menu a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.75rem !important;
        padding: 0.75rem 1rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        border-radius: 8px !important;
        border-left: 3px solid transparent !important;
        transition: all 0.2s ease !important;
        text-align: left !important;
        width: 100% !important;
        text-decoration: none !important;
    }

    .navbar-menu a:hover,
    .navbar-menu a.active {
        background: rgba(255,255,255,0.12) !important;
        border-left-color: var(--accent) !important;
        color: var(--white) !important;
    }

    .navbar-auth-mobile {
        display: list-item !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(255,255,255,0.15) !important;
    }

    .navbar-auth-mobile a {
        font-weight: 600 !important;
        justify-content: center !important;
        text-align: center !important;
        border-left: none !important;
        margin-bottom: 0.4rem !important;
    }

    .navbar-auth-login {
        background: rgba(255,255,255,0.12) !important;
        color: white !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
    }

    .navbar-auth-login:hover {
        background: rgba(255,255,255,0.2) !important;
        color: white !important;
    }

    .navbar-auth-register {
        background: var(--accent) !important;
        color: white !important;
        border: none !important;
    }

    .navbar-auth-register:hover {
        background: #00acc1 !important;
        color: white !important;
    }

    .navbar-auth-logout {
        background: rgba(198, 40, 40, 0.25) !important;
        color: #fecaca !important;
        border: 1px solid rgba(254, 202, 202, 0.3) !important;
    }

    .navbar-auth-logout:hover {
        background: rgba(198, 40, 40, 0.4) !important;
        color: white !important;
    }

    .navbar-actions {
        display: none !important;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 0.75rem; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .hero-static-mobile {
        display: none !important;
    }

    .hero-carousel-wrapper {
        display: block !important;
        min-height: 220px !important;
        border-radius: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .ad-hero-badge {
        display: none !important;
    }

    .hero-carousel-wrapper .hero-actions .btn-primary,
    .hero-carousel-wrapper .hero-actions a[href*="register.php"],
    .hero-static-mobile .hero-actions .btn-primary,
    .hero-static-mobile .hero-actions a[href*="register.php"] {
        display: none !important;
    }

    .hero-carousel-wrapper .hero-actions {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .hero-carousel-wrapper .hero-actions .btn,
    .hero-carousel-wrapper .hero-actions .btn-lg,
    .hero-carousel-wrapper .hero-actions .btn-outline {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        text-align: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-carousel-wrapper .hero-content {
        padding: 1rem 0.5rem !important;
    }

    .hero-carousel-wrapper .hero-content h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.3rem !important;
    }

    .hero-carousel-wrapper .hero-content p {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-carousel-wrapper .hero-actions .btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.8rem !important;
    }

    .section { padding: 2rem 0; }
    .section-title { font-size: 1.4rem; }
    .section-header { flex-direction: column; align-items: flex-start; }

    .ad-banner-superior,
    .ad-banner-superior .ad-slides-container,
    .ad-sidebar-carrusel,
    .ad-entre-contenido,
    .ad-entre-contenido .ad-slides-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        background: #0f172a !important;
        overflow: hidden !important;
        display: block !important;
    }

    .ad-banner-superior .ad-slide,
    .ad-sidebar-carrusel .ad-slide,
    .ad-entre-contenido .ad-slide {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        display: block !important;
        transition: opacity 0.45s ease !important;
        z-index: 1 !important;
    }

    .ad-banner-superior .ad-slide.active,
    .ad-sidebar-carrusel .ad-slide.active,
    .ad-entre-contenido .ad-slide.active {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 2 !important;
    }

    .ad-banner-superior .ad-slide a,
    .ad-sidebar-carrusel .ad-slide a,
    .ad-entre-contenido .ad-slide a {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    .ad-banner-superior .ad-slide img,
    .ad-banner-superior .ad-slide video,
    .ad-sidebar-carrusel .ad-slide img,
    .ad-sidebar-carrusel .ad-slide video,
    .ad-entre-contenido .ad-slide img,
    .ad-entre-contenido .ad-slide video {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        background: transparent !important;
    }

    .ad-hero-carrusel .ad-slide img,
    .ad-hero-carrusel .ad-slide video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

    .ad-nav-btn { width: 36px; height: 36px; font-size: 1rem; }
    .ad-nav-btn.prev { left: 10px; }
    .ad-nav-btn.next { right: 10px; }

    .ad-popup-container,
    .ad-popup-overlay.active .ad-popup-container {
        width: min(400px, 92vw) !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        max-height: 88vh !important;
        transform: none !important;
        opacity: 1 !important;
        background: #000000 !important;
        border-radius: 14px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
    }

    .ad-popup-content,
    .ad-popup-slide .ad-popup-content {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #000000 !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }

    .ad-popup-content img,
    .ad-popup-content video,
    .ad-popup-slide .ad-popup-content img,
    .ad-popup-slide .ad-popup-content video {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        background: #000000 !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .ad-popup-info,
    .ad-popup-slide .ad-popup-info {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        padding: 2.35rem 0.95rem 0.95rem !important;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.72) 55%,
            rgba(0, 0, 0, 0) 100%
        ) !important;
        color: #ffffff !important;
        z-index: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
    }

    .ad-popup-title,
    .ad-popup-slide .ad-popup-title {
        margin: 0 !important;
        color: #ffffff !important;
        font-size: 1rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55) !important;
    }

    .ad-popup-description,
    .ad-popup-slide .ad-popup-description {
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.92) !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        opacity: 1 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
    }

    .ad-popup-button,
    .ad-popup-slide .ad-popup-button {
        align-self: flex-start !important;
        margin-top: 0.45rem !important;
        padding: 0.55rem 0.95rem !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
        color: #ffffff !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25) !important;
    }

    .ad-popup-close {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: rgba(15, 23, 42, 0.78) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 20 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .ad-popup-close:hover {
        background: rgba(15, 23, 42, 0.92) !important;
        transform: none !important;
    }

    .ad-popup-indicators {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 20 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .ad-popup-indicator {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .noticias-destacadas-grid { grid-template-columns: 1fr; }
    .news-card-destacada-principal { grid-column: span 1; min-height: 280px; }
    .news-grid-normal, .news-grid { grid-template-columns: 1fr 1fr; }

    .noticias-filtros, .arbitros-filtros, .jugadores-filtros { flex-direction: column; align-items: stretch; }
    .noticias-filtro, .arbitros-filtro, .jugadores-filtro,
    .noticias-filtro-buscar, .arbitros-filtro-buscar, .jugadores-filtro-buscar { min-width: 100%; flex: none; }
    .tiendas-filtros-grid { grid-template-columns: 1fr 1fr !important; }

    .arbitros-grid, .jugadores-grid, .championship-grid, .tiendas-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .matches-grid-home { grid-template-columns: 1fr 1fr; }
    .champ-grid-modern { grid-template-columns: 1fr; }

    .champ-body-hidden {
        max-height: none;
        opacity: 1;
        padding: 1rem 1.25rem 1.25rem 1.25rem;
        border-top-color: #e2e8f0;
    }
    .champ-card-hover:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .profile-avatar, .store-hero-avatar { width: 100px; height: 100px; }
    .profile-name, .store-hero-title { font-size: 1.5rem; }
    .profile-hero-content { gap: 1rem; flex-direction: column; text-align: center; }
    .profile-hero { padding: 2rem 0; text-align: center; }
    .profile-badges { justify-content: center; }

    .store-name { font-size: 1.5rem; }
    .store-logo-wrap { width: 100px; height: 100px; margin-top: -60px; }
    .store-hero-cover { height: 220px; }
    .store-hero-inner { flex-direction: column; text-align: center; align-items: center; }
    .store-contact-grid, .store-social { justify-content: center; margin-left: 0; }

    .auth-options-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 1.75rem; }

    .form-row { grid-template-columns: 1fr; }
    .table { font-size: 0.85rem; }
    .table th, .table td { padding: 0.65rem 0.5rem; }

    .match-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .match-card > .match-team,
    .match-card > .match-team:first-child,
    .match-card > .match-team:last-child {
        justify-content: center;
        text-align: center;
        width: 100%;
        flex-direction: row;
    }
    .match-card .match-team-logo {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px;
        min-height: 56px;
    }
    .match-card > div:not(.match-team) {
        min-width: auto;
        width: 100%;
    }
    .match-card .match-score {
        font-size: 1.75rem;
        padding: 0.35rem 1.25rem;
    }

    .match-exclusivo-badge { font-size: 0.65rem; padding: 0.2rem 0.6rem; top: -8px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer { padding: 2rem 0 1rem; }

    .hero-carousel-wrapper .ad-hero-carrusel,
    .hero-carousel-wrapper .ad-hero-carrusel .ad-slide,
    .hero-carousel-wrapper .ad-hero-carrusel .ad-slide.active,
    .hero-carousel-wrapper .ad-hero-carrusel .ad-slide a,
    .hero-carousel-wrapper .ad-hero-carrusel img,
    .hero-carousel-wrapper .ad-hero-carrusel video {
        touch-action: pan-y;
        -webkit-user-drag: none;
        user-select: none;
    }
}

@media (max-width: 600px) {
    .hero-carousel-wrapper { min-height: 220px !important; margin-left: -1rem; margin-right: -1rem; }
    .hero-carousel-wrapper .hero-content h1 { font-size: 1.3rem; }
    .hero-carousel-wrapper .hero-content p { font-size: 0.85rem; margin-bottom: 1rem; }

    .section-title { font-size: 1.25rem; }

    .news-grid-normal, .news-grid,
    .arbitros-grid, .jugadores-grid, .championship-grid, .tiendas-grid,
    .products-grid, .matches-grid-home { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .matches-grid-home { grid-template-columns: 1fr; }
    .store-contact-grid, .store-social { display: flex; width: 100%; margin-left: 0; }
    .store-social { margin-top: 0.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    .auth-card { padding: 1.25rem; }
    .btn { padding: 0.55rem 1rem; font-size: 0.88rem; }

    .arbitro-card:hover, .jugador-card:hover,
    .product-card:hover, .tienda-card:hover { transform: none; }

    .store-hero-cover { height: 180px; }

    .hero-carousel-wrapper .hero-actions .btn,
    .hero-carousel-wrapper .hero-actions .btn-lg,
    .hero-carousel-wrapper .hero-actions .btn-outline {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
    }

    .ad-popup-container,
    .ad-popup-overlay.active .ad-popup-container {
        width: min(360px, 95vw) !important;
        max-height: 85vh !important;
    }

    .ad-popup-info,
    .ad-popup-slide .ad-popup-info {
        padding: 2rem 0.8rem 0.8rem !important;
    }

    .ad-popup-title,
    .ad-popup-slide .ad-popup-title {
        font-size: 0.95rem !important;
    }

    .ad-popup-description,
    .ad-popup-slide .ad-popup-description {
        font-size: 0.78rem !important;
    }

    .match-card .match-team strong { font-size: 0.85rem; }
    .match-card .match-score { font-size: 1.5rem; }
    .match-card .match-team-logo {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
    }

    .tabs { overflow-x: auto; }
    .tab { padding: 0.6rem 0.9rem; font-size: 0.85rem; }

    .navbar-menu {
        width: 260px !important;
        padding: 4rem 1rem 1.25rem !important;
    }

    .navbar-menu a {
        padding: 0.65rem 0.9rem !important;
        font-size: 0.9rem !important;
    }
}

@media (min-width: 769px) {
    .navbar-auth-mobile,
    .hero-static-mobile {
        display: none !important;
    }
}

/* ============================================
   NOTICIAS COMPACTAS CON HOVER Y PIE DE FOTO
   Solo afecta a .news-grid-compact en noticias.php
   ============================================ */

.news-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card-compact {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
}

.news-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: #3b82f6;
}

.news-compact-media {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-compact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-compact:hover .news-compact-img {
    transform: scale(1.05);
}

.news-compact-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    background: #f8fafc;
}

/* Pie de foto overlay al hover */
.news-compact-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 1.5rem 0.75rem 0.5rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.news-card-compact:hover .news-compact-caption {
    opacity: 1;
    transform: translateY(0);
}

.news-compact-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-compact-cat {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.news-compact-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contenido expandible al hover */
.news-compact-expand {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.news-card-compact:hover .news-compact-expand {
    max-height: 200px;
    opacity: 1;
}

.news-compact-excerpt {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.news-compact-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 1100px) {
    .news-grid-compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .news-grid-compact { grid-template-columns: 1fr 1fr; }
    /* En móvil siempre mostrar caption y excerpt */
    .news-compact-caption { opacity: 1; transform: translateY(0); }
    .news-compact-expand { max-height: none; opacity: 1; }
}

@media (max-width: 600px) {
    .news-grid-compact { grid-template-columns: 1fr; }
}

/* ============================================
   CARRUSEL DE TEXTOS DEL HERO (AJUSTADO)
   - Textos más compactos y centrados
   - No ocupa todo el ancho horizontal
   - No tapa los botones ❮ ❯ de la publicidad
   ============================================ */

/* Container más angosto para dejar espacio a los botones laterales de publicidad */
.hero-carousel-wrapper > .container {
    max-width: 800px;
    pointer-events: none; /* Deja pasar los clics hacia los botones de publicidad */
}

/* Reactivar clics solo en los elementos interactivos del hero */
.hero-carousel-wrapper .hero-text-slider,
.hero-carousel-wrapper .hero-slide a,
.hero-carousel-wrapper .hero-slide button,
.hero-carousel-wrapper .hero-indicators,
.hero-carousel-wrapper .hero-indicator {
    pointer-events: auto;
}

.hero-text-slider {
    position: relative;
    text-align: center;
    padding: 1.5rem 0;
}

.hero-slide {
    display: none;
    text-align: center;
}

.hero-slide.active {
    display: block;
    animation: heroFadeIn 0.8s ease;
}

/* ✅ Tamaños reducidos y centrados */
.hero-carousel-wrapper .hero-slide h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    text-align: center;
    color: #fff;
}

.hero-carousel-wrapper .hero-slide p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
    text-align: center;
    color: #fff;
}

/* ✅ Botones centrados */
.hero-carousel-wrapper .hero-slide .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Indicadores del carrusel de textos */
.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* ============================================
   FIX BOTONES NAVEGACIÓN PUBLICIDAD HERO
   Visibles y clicables por encima del contenido
   ============================================ */
.hero-carousel-wrapper .ad-hero-carrusel .ad-nav-btn {
    z-index: 25 !important;
    opacity: 0.85;
    pointer-events: auto;
}

.hero-carousel-wrapper .ad-hero-carrusel:hover .ad-nav-btn {
    opacity: 1;
}

/* ============================================
   RESPONSIVE HERO
   ============================================ */
@media (max-width: 768px) {
    .hero-carousel-wrapper > .container {
        max-width: 100%;
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
    
    .hero-text-slider {
        padding: 1rem 0;
    }
    
    .hero-carousel-wrapper .hero-slide h1 {
        font-size: 1.2rem;
    }
    
    .hero-carousel-wrapper .hero-slide p {
        font-size: 0.85rem;
    }
    
    .hero-carousel-wrapper .ad-hero-carrusel .ad-nav-btn {
        opacity: 0.7;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .hero-indicators {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel-wrapper > .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .hero-carousel-wrapper .hero-slide h1 {
        font-size: 1.05rem;
    }
    
    .hero-carousel-wrapper .hero-slide p {
        font-size: 0.8rem;
    }
}