/*
 * READY4PADEL - Estilos de la Página de Inicio
 * Archivo: index.css
 * Descripción: Estilos específicos para la página principal
 * Autor: Daniel Mateu Sánchez
 */

/* ========================================
   HERO SECTION (Sección principal)
   ======================================== */

/* Contenedor principal del hero */
.hero-section {
    position: relative;
    height: 80vh; /* 80% de la altura de la pantalla */
    min-height: 600px; /* Mínimo 600px */
    background-size: cover; /* Cubrir todo el espacio */
    background-position: center; /* Centrar imagen */
    background-repeat: no-repeat; /* No repetir */
    overflow: hidden; /* Ocultar desbordamiento */
}

/* Overlay oscuro para mejorar legibilidad */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.45) 0%, rgba(0, 76, 199, 0.45) 100%);
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

/* Título principal */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Subtítulo */
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Botones del hero */
.btn-hero {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   SECCIÓN JUEGA YA (Divisiones)
   ======================================== */

.play-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Línea decorativa debajo del título */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    border-radius: 5px;
}

/* Tarjetas de división - Diseño overlay */
.division-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.division-card:hover {
    transform: none;
}

.division-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    z-index: 1;
}

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

/* Overlay oscuro sobre la imagen */
.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.division-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2.5rem;
    max-width: 600px;
}

.division-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.division-subtitle {
    color: #4da3ff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-division {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-division:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
    text-decoration: none;
}

/* ========================================
   SLIDESHOW DE DIVISIONES
   ======================================== */

/* Contenedor principal del slideshow */
.divisions-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Wrapper de los slides */
.slideshow-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 650px;
}

/* Cada slide individual */
.division-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

/* Slide activo */
.division-slide.active {
    display: block;
    opacity: 1;
}

/* Animación de fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botones de navegación (prev/next) */
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--primary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

/* Botón anterior */
.slideshow-prev {
    left: 30px;
}

/* Botón siguiente */
.slideshow-next {
    right: 30px;
}

/* Contenedor de dots (puntos de navegación) */
.slideshow-dots {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Cada dot individual */
.dot {
    width: 16px;
    height: 16px;
    background: #d0d0d0;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Dot activo */
.dot.active {
    background: var(--primary-color);
    width: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}

/* Dot hover */
.dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
    transform: scale(1.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .divisions-slideshow {
        padding: 20px 50px;
    }

    .slideshow-wrapper {
        min-height: 580px;
    }

    .division-image {
        height: 300px;
    }

    .division-title {
        font-size: 1.8rem;
    }

    .division-subtitle {
        font-size: 1rem;
    }

    .division-content {
        padding: 2rem;
    }

    .slideshow-btn {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .dot.active {
        width: 35px;
    }
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */

.stats-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #000000 0%, var(--primary-color) 100%);
}

.stat-box {
    text-align: center;
    padding: 2rem;
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* ========================================
   SECCIÓN NOTICIAS
   ======================================== */

/* Contenedor de la sección */
.noticias-section {
    background: white;
    padding: 80px 0;
}

/* Card de cada noticia */
.noticia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Efecto hover en la card */
.noticia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
}

/* Imagen de la noticia */
.noticia-imagen {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Zoom en la imagen al hacer hover */
.noticia-card:hover .noticia-imagen {
    transform: scale(1.1);
}

/* Contenido de texto de la noticia */
.noticia-contenido {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Metadatos (fecha y vistas) */
.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.noticia-fecha,
.noticia-vistas {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Título de la noticia */
.noticia-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a2e;
    line-height: 1.4;
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Resumen de la noticia */
.noticia-resumen {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Botón leer más */
.btn-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Hover en botón leer más */
.btn-leer-mas:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* Botón ver todas las noticias */
.btn-ver-todas {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

/* Hover en botón ver todas */
.btn-ver-todas:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .noticia-card {
        margin-bottom: 1.5rem;
    }

    .noticia-titulo {
        font-size: 1.1rem;
    }

    .noticia-resumen {
        font-size: 0.9rem;
    }
}

/* ========================================
   SECCIÓN EQUIPO
   ======================================== */

.team-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.championship-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.championship-year {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.championship-info {
    font-size: 1rem;
    opacity: 0.9;
}

.team-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ========================================
   CARACTERÍSTICAS (Features)
   ======================================== */

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* ========================================
   SECCIÓN CTA (Call to Action)
   ======================================== */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--primary-color) 0%, #000000 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE (Móviles)
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
