/* home.css - Versión Profesional Mejorada */
:root {
    --primary-color: #094c79;
    --secondary-color: #0b1138;
    --accent-color: #ffd700;
    --text-light: #ffffff;
    --text-dark: #2d3436;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Section Rediseñada */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, rgba(9, 76, 121, 0.95), rgba(11, 17, 56, 0.95)),
            url('../img/logo-as.png') center/cover no-repeat;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    padding-right: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    max-width: 600px;
}

/* Carrusel de Resultados */
/* CSS Actualizado */
.results-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    gap: 1.5rem;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.results-carousel-wrapper {
    overflow: hidden;
    padding: 1rem 0;
}

.results-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 0 1rem;
}

.result-card {
    flex: 0 0 calc(25% - 1.5rem); /* 4 elementos por fila */
    min-width: 280px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.carousel-prev,
.carousel-next {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    color: white;
}

/* CSS Mejorado */
.results-section {
    padding: 4rem 0;
    background: #fff;
}

.results-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 0 2rem;
}

.results-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
}

.result-card {
    flex: 0 0 300px; /* Ancho fijo por tarjeta */
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    opacity: 1 !important; /* Fuerza misma transparencia */
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

/* Tamaño de logos */
.team img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
}

/* Controles más visibles */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

.carousel-prev,
.carousel-next {
    pointer-events: all;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Animación del Carrusel */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

/* Stats Section - Mejorado */
.stats-section {
    position: relative;
    padding: 8rem 0 6rem;
    background: var(--text-light);
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(9, 76, 121, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(9, 76, 121, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: var(--text-light);
    font-size: 2.2rem;
}

.stat-content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

/* Info Section - Mejorado */
.info-section {
    padding: 8rem 0;
    background: #f9fbfd;
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, 
        transparent 49%, 
        #f9fbfd 50%);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.info-content {
    position: relative;
    padding-right: 4rem;
}

.info-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.info-content p {
    font-size: 1.1rem;
    color: #4f5d75;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(9, 76, 121, 0.08);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.features-list li:hover {
    transform: translateX(10px);
}

.features-list li i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-right: 1rem;
    min-width: 30px;
}

.info-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.info-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.info-image:hover img {
    transform: scale(1.05);
}

/* Sponsors Section - Mejorado */
.sponsors-section {
    padding: 6rem 0;
    background: var(--text-light);
    position: relative;
}

.sponsors-section h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsors-grid img {
    height: 80px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.sponsors-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
}

/* CTA Buttons - Mejorado */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.cta-btn:not(.outline) {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.cta-btn.outline {
    background: transparent;
    color: var(--text-light);
    border-color: currentColor;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition);
}

.cta-btn:hover::before {
    transform: translateX(0);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .info-grid {
        gap: 4rem;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 70vh;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .info-content {
        padding-right: 0;
        text-align: center;
    }
    
    .features-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sponsors-grid {
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .stat-icon {
        margin: 0 0 1.5rem 0;
    }
    
    .info-image img {
        height: 400px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .results-carousel-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .team img {
        width: 40px;
        height: 40px;
    }
    
    .score {
        font-size: 1.5rem;
        min-width: 70px;
    }
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder i {
    font-size: 1.5rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .result-card {
        flex: 0 0 calc(33.333% - 1.5rem); /* 3 elementos por fila */
    }
}

@media (max-width: 992px) {
    .result-card {
        flex: 0 0 calc(50% - 1rem); /* 2 elementos por fila */
    }
}

@media (max-width: 768px) {
    .result-card {
        flex: 0 0 calc(100% - 1rem); /* 1 elemento por fila */
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* CSS Mejorado para Hero y Carrusel */

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(9,76,121,0.9) 0%, rgba(11,17,56,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Carrusel - Botones visibles */
.results-section {
    position: relative;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 2;
}

.carousel-prev,
.carousel-next {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}
/* CSS para cards horizontales */
.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 400px;
    margin: 0 1rem;
}

.teams-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

/* Equipos individuales */
.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 110px;
    margin: 0 0.5rem;
}

.team img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Nombre del equipo con gestión de texto */
.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0.3rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    background: none !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    word-break: break-word;
}

.result-card {
    flex: 0 0 340px;
    min-width: 340px;
    max-width: 370px;
    background: #fff;
    border-radius: 16px;
    padding: 1.7rem 1.2rem 1.2rem 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.teams-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.2rem;
    margin: 1.2rem 0 0.5rem 0;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 120px;
    min-width: 0;
    margin: 0 0.5rem;
    word-break: break-word;
}

.team img, .logo-placeholder {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 0.4rem;
    border-radius: 10px;
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(9,76,121,0.07);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.7rem;
    background: #f0f0f0;
}

@media (max-width: 1200px) {
    .result-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 320px;
    }
    .team-name {
        max-width: 100px;
    }
}
@media (max-width: 768px) {
    .result-card {
        flex: 0 0 95vw;
        min-width: 0;
        max-width: 100vw;
    }
    .team-name {
        max-width: 90vw;
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
    gap: 1.5rem;
}

.right-controls {
    display: flex;
    gap: 0.5rem;
    position: static;
    transform: none;
    width: auto;
    pointer-events: auto;
    z-index: 1;
}

.carousel-controls.right-controls button {
    position: static;
    width: 40px;
    height: 40px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .right-controls {
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}

.match-serie {
    font-size: 1.02rem;
    color: #0b1138;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.match-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    color: #666;
    gap: 2px;
}

.match-date, .match-round {
    text-align: center;
    width: 100%;
}