/* =========================================
   SKETCH SPORTS X - EVENTS & CALENDAR
   ========================================= */

:root {
    --sp-cyan: #00E5FF;
    --sp-dark: #050505;
    --sp-glass-dark: rgba(10, 10, 10, 0.6);
    --sp-border: rgba(255, 255, 255, 0.1);
}

body { font-family: 'regular', sans-serif; background: #f4f6f8; color: #111; } /* Fondo gris muy claro para legibilidad */
h1, h2, h3, h4 { font-family: 'medium', sans-serif; text-transform: uppercase; }

/* 1. HERO DE EVENTOS (ESTADIO) */ 
.events-hero {
    position: relative;
    height: 60vh; 
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background-color: #000;
    overflow: hidden;
}
.events-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.7;
    filter: brightness(0.6);
    animation: zoomBg 20s infinite alternate;
}
@keyframes zoomBg { from { transform: scale(1); } to { transform: scale(1.1); } }

/* Texto del Hero */
.hero-season-tag {
    color: var(--sp-cyan); font-family: 'light'; font-style: italic; 
    font-size: 1.5rem; letter-spacing: 2px;
}
.hero-title-big {
    font-size: clamp(3rem, 6vw, 6rem); color: white; margin: 10px 0; line-height: 0.9;
}
.stroke-text { -webkit-text-stroke: 1px white; color: transparent; }


/* 2. EVENTO ESTELAR (MAIN EVENT CARD) */
.main-event-section {
    margin-top: -80px; /* Montado sobre el hero */
    position: relative; z-index: 10;
    padding-bottom: 80px;
    max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 5%; padding-right: 5%;
}

.main-event-card {
    background: #000; /* Negro sólido para contraste máximo */
    border: 1px solid #333;
    border-top: 4px solid var(--sp-cyan); /* Acento Cyan */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    display: grid; grid-template-columns: 1.5fr 1fr;
}

.me-visual {
    position: relative; overflow: hidden; min-height: 450px;
}
.me-visual img { width: 100%; height: 100%; object-fit: cover; }
.me-overlay {
    position: absolute; inset: 0; 
    background: linear-gradient(to right, transparent 50%, #000 100%);
}

.me-tag {
    position: absolute; top: 20px; left: 20px;
    background: var(--sp-cyan); color: black;
    font-family: 'medium'; padding: 5px 15px; 
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
}

.me-info {
    padding: 60px; color: white;
    display: flex; flex-direction: column; justify-content: center;
}

.me-subtitle {
    color: var(--sp-cyan); letter-spacing: 2px; font-family: 'medium'; 
    font-size: 0.9rem; margin-bottom: 10px;
}
.me-vs-title {
    font-size: 3.5rem; line-height: 1; margin-bottom: 15px;
}
.me-desc {
    color: #bbb; font-size: 1.1rem; margin-bottom: 30px; 
    font-family: 'light'; line-height: 1.6;
}

/* Info Grid (Fecha/Lugar) */
.me-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; 
    margin-bottom: 40px; border-top: 1px solid #333; padding-top: 20px;
}
.meta-label { display: block; color: #666; font-size: 0.8rem; text-transform: uppercase; font-family: 'medium'; }
.meta-val { color: white; font-size: 1.2rem; font-family: 'medium'; }

/* Botón Cyan */
.btn-cyan-block {
    background: var(--sp-cyan); color: black; text-align: center;
    padding: 15px; font-family: 'medium'; text-transform: uppercase;
    text-decoration: none; border-radius: 2px; transition: 0.3s;
}
.btn-cyan-block:hover { background: white; }


/* 3. GRID DE PRÓXIMOS EVENTOS (FONDOS BLANCOS) */
.events-section-white {
    padding-bottom: 100px;
    max-width: 1200px; margin: 0 auto; padding-left: 5%; padding-right: 5%;
}

.section-header-flex {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 40px; border-bottom: 2px solid #ddd; padding-bottom: 15px;
}
.sh-title { font-size: 2rem; color: #000; margin: 0; }
.sh-link { color: #000; font-family: 'medium'; text-decoration: none; border-bottom: 1px solid var(--sp-cyan); }

.events-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-bottom: 80px;
}

.event-card {
    background: white; /* Tarjeta blanca limpia */
    border: 1px solid #e0e0e0;
    border-radius: 6px; overflow: hidden;
    transition: 0.3s; display: flex; flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--sp-cyan); }

.ec-image { height: 220px; overflow: hidden; position: relative; }
.ec-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(20%); }
.event-card:hover .ec-image img { transform: scale(1.05); filter: grayscale(0%); }

.ec-date-badge {
    position: absolute; top: 15px; right: 15px;
    background: #000; color: white;
    text-align: center; padding: 8px 12px; min-width: 60px;
    border-bottom: 3px solid var(--sp-cyan);
}
.ec-day { display: block; font-family: 'medium'; font-size: 1.5rem; line-height: 1; }
.ec-month { display: block; font-size: 0.75rem; font-family: 'light'; }

.ec-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.ec-loc { color: var(--sp-cyan); font-size: 0.8rem; font-family: 'medium'; text-transform: uppercase; display: block; margin-bottom: 5px; }
.ec-title { font-size: 1.4rem; margin-bottom: 10px; color: #000; line-height: 1.1; }

.ec-meta { color: #666; font-size: 0.9rem; margin-bottom: 20px; display: flex; gap: 15px; font-family: 'regular'; }
.ec-meta i { color: #000; margin-right: 5px; }

.btn-outline-dark {
    margin-top: auto; border: 1px solid #000; color: #000;
    text-align: center; padding: 10px; font-family: 'medium'; 
    text-transform: uppercase; text-decoration: none; transition: 0.3s; font-size: 0.85rem;
}
.btn-outline-dark:hover { background: #000; color: white; }


/* 4. TABLA DE RESULTADOS */
.results-header { font-size: 2rem; color: #000; margin-bottom: 30px; }

.results-table-wrap { overflow-x: auto; background: white; padding: 10px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.results-table { width: 100%; border-collapse: collapse; min-width: 800px; }

.results-table th { 
    text-align: left; color: #999; font-size: 0.75rem; 
    text-transform: uppercase; padding: 15px 20px; 
    border-bottom: 2px solid #eee; font-family: 'medium'; letter-spacing: 1px;
}
.results-table td { 
    padding: 20px; border-bottom: 1px solid #f0f0f0; 
    color: #333; font-family: 'regular'; font-size: 0.95rem;
}
.table-date { font-family: 'medium'; color: #000; }
.table-winner { font-family: 'medium'; color: #000; }
.result-win { color: #2e7d32!important; font-family: 'medium'; }
.result-loss { color: #d32f2f!important; font-family: 'medium'; }


/* 5. NEWSLETTER (CTA) */
.newsletter-sec {
    background: #000; padding: 80px 0; color: white; text-align: center;
    border-top: 4px solid var(--sp-cyan);
}
.newsletter-title { font-size: 2.5rem; margin-bottom: 10px; }
.newsletter-desc { color: #999; margin-bottom: 30px; font-family: 'light'; }

.nl-form { display: flex; gap: 10px; justify-content: center; max-width: 500px; margin: 0 auto; }
.nl-input { 
    flex-grow: 1; padding: 15px; border: 1px solid #333; 
    background: #111; color: white; border-radius: 2px; outline: none;
}
.nl-input:focus { border-color: var(--sp-cyan); }
.nl-btn {
    background: var(--sp-cyan); color: black; border: none; 
    padding: 15px 30px; font-family: 'medium'; cursor: pointer; text-transform: uppercase;
}
.nl-btn:hover { background: white; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-event-card { grid-template-columns: 1fr; }
    .me-visual { height: 300px; min-height: auto; }
    .me-overlay { background: linear-gradient(to top, #000 20%, transparent 100%); }
    .me-info { padding: 30px; }
    .events-hero { height: 50vh; }
    .nl-form { flex-direction: column; padding: 0 20px; }
}