/* =====================================================
   PRINCIPAL.CSS - ESTILOS ESPECÍFICOS DE LA PÁGINA PRINCIPAL
   Asociación de Dodgeball Jalisco
   
   TABLA DE CONTENIDOS:
   1. Hero Section (Portada Principal)
   2. Sección de Convocatorias
   3. Sección Gameplay (¿Qué es el Dodgeball?)
   4. Sección Sobre Nosotros
   5. Sección de Eventos
   6. Sección de Equipos/Clubes
   7. Sección de Ubicaciones/Sedes
   8. Footer Completo (Solo Principal)
   9. Animaciones Específicas
   10. Responsive Design
===================================================== */


/* =====================================================
   1. HERO SECTION (PORTADA PRINCIPAL)
   Primera sección visible - Imagen de fondo con texto
===================================================== */

/* ----- Contenedor Principal del Hero ----- */
.hero {
    background: linear-gradient(rgba(26, 58, 143, 0.5), rgba(26, 58, 143, 0.5)), 
                url('/imagen/hero-portada.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 0px;
}

/* ----- Contenido Centrado del Hero ----- */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ----- Tipografía del Hero ----- */

/* Título principal con animación */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Subtítulos con animación */
.hero h2 {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Párrafos descriptivos */
.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* ----- Botón Principal del Hero ----- */
.hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 25px;
    border-radius: 25px;
    margin-bottom: 25px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    margin-top: 25px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero .btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* ----- Redes Sociales en el Hero ----- */

/* Texto introductorio de redes sociales */
.hero-social-text {
    margin: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Contenedor de enlaces sociales */
.hero-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    animation: fadeInUp 0.8s ease 1s both;
}

/* Iconos individuales de redes sociales */
.hero-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}


/* =====================================================
   2. SECCIÓN DE CONVOCATORIAS
   Anuncios y comunicados importantes
===================================================== */

/* ----- Contenedor de Convocatorias ----- */
.announcements {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ----- Contenido Centrado ----- */
.announcements-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Título de la sección */
.announcements-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Párrafos de contenido */
.announcements-content p {
    margin-bottom: 20px;
    text-align: justify;
}


/* =====================================================
   3. SECCIÓN GAMEPLAY (¿QUÉ ES EL DODGEBALL?)
   Explicación del juego con tarjetas informativas
===================================================== */

/* ----- Contenedor de la Sección ----- */
.gameplay {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ----- Grid de Tarjetas del Juego ----- */
.juego-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ----- Tarjeta Individual ----- */
.juego-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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


/* =====================================================
   4. SECCIÓN SOBRE NOSOTROS
   Información institucional y valores
===================================================== */

/* ----- Contenedor de la Sección ----- */
.about {
    background-color: white;
}

/* ----- Layout de Contenido ----- */

/* Contenedor flexible para texto e imagen */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Área de texto */
.about-text {
    flex: 1;
}

/* ----- Tipografía ----- */

/* Subtítulo con color primario */
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Subtítulo con color de acento */
.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
}

/* Párrafos justificados con separación silábica */
.about-text p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
    word-spacing: -0.05em;
}

/* ----- Imagen de la Sección ----- */

/* Contenedor de imagen con efectos */
.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Imagen con efecto de zoom al hover */
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}


/* =====================================================
   5. SECCIÓN DE EVENTOS
   Próximos torneos y competencias
===================================================== */

/* ----- Contenedor de la Sección ----- */
.events {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ----- Grid de Eventos ----- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ----- Tarjeta de Evento Individual ----- */
.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ----- Imagen del Evento ----- */
.event-image {
    height: 200px;
    overflow: hidden;
}

/* Imagen con efecto de zoom */
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

/* ----- Contenido del Evento ----- */
.event-content {
    padding: 20px;
}

/* Fecha del evento con badge */
.event-date {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Título del evento */
.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}


/* =====================================================
   6. SECCIÓN DE EQUIPOS/CLUBES
   Clubes y escuelas afiliadas
===================================================== */

/* ----- Contenedor de la Sección ----- */
.teams {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ----- Grid de Equipos ----- */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ----- Tarjeta de Equipo Individual ----- */
.team-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

/* Efecto hover - cambia a color primario */
.team-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.team-card:hover h3 {
    color: white;
}

/* ----- Logo del Equipo ----- */
.team-logo {
    margin-bottom: 20px;
}

.team-logo img {
    height: 60px;
    width: auto;
}

/* ----- Título del Equipo ----- */
.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* ----- Redes Sociales del Equipo ----- */
.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

/* Enlaces a redes sociales */
.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}

/* Color de acento al hover en tarjeta activa */
.team-card:hover .team-social a {
    background: var(--accent);
}


/* =====================================================
   7. SECCIÓN DE UBICACIONES/SEDES
   Mapa interactivo de sedes
===================================================== */

/* ----- Contenedor de la Sección ----- */
.locations {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ----- Contenedor del Mapa ----- */
.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* iframe del mapa de Google */
.map-container iframe {
    width: 100%;
    max-width: 800px;
    height: 480px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* =====================================================
   8. FOOTER COMPLETO (SOLO PARA PRINCIPAL.HTML)
   Footer extenso con múltiples columnas
===================================================== */

/* ----- Contenedor Principal del Footer ----- */
footer {
    background-color: var(--azul-header);
    color: white;
    padding: 25px 0 5px;
    margin-top: auto;
}

/* ----- Grid de Columnas ----- */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
    text-align: left;
}

/* ----- Columna Individual ----- */
.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Línea decorativa bajo el título */
.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

/* ----- Listas de Enlaces ----- */
.footer-col ul {
    list-style: none;
    text-align: left;
}

.footer-col ul li {
    margin-bottom: 10px;
}

/* Enlaces de la lista */
.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

/* ----- Párrafos del Footer ----- */
.footer-col p {
    text-align: left;
}

/* ----- Redes Sociales del Footer ----- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Enlaces de redes sociales */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* ----- Detalles de Contacto ----- */
.contact-details {
    margin-top: 30px;
}

/* Item individual de contacto */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Icono de contacto */
.contact-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--accent);
}

/* ----- Copyright ----- */
.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}


/* =====================================================
   9. ANIMACIONES ESPECÍFICAS
   Animaciones para el Hero y secciones
===================================================== */

/* ----- Animación Fade In Up (Aparecer desde abajo) ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Animación Fade In Down (Aparecer desde arriba) ----- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Clase para Animaciones de Secciones ----- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   10. RESPONSIVE DESIGN
   Adaptaciones para diferentes tamaños de pantalla
===================================================== */

/* ----- Tablets y Dispositivos Medianos (≤992px) ----- */
@media (max-width: 992px) {
    
    /* --- Sección Sobre Nosotros --- */
    /* Cambiar a disposición vertical */
    .about-content {
        flex-direction: column;
        align-items: flex-start; /* ← ALINEACIÓN A LA IZQUIERDA */
    }
    
    /* Alinear texto a la izquierda */
    .about-text {
        width: 100%;
        text-align: left;
    }
    
    .about-text h2,
    .about-text h3 {
        text-align: left;
    }
    
    /* Alinear imagen a la izquierda también */
    .about-image {
        width: 100%;
        align-self: flex-start;
    }
}

/* ----- Dispositivos Móviles (≤768px) ----- */
@media (max-width: 768px) {
    
    /* --- Hero Section --- */
    .hero {
        margin-top: 0;
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
    }
    
    /* Reducir tamaño del título */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Ajustar redes sociales */
    .hero-social-links {
        gap: 15px;
    }
    
    .hero-social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* --- Mapa --- */
    .map-container iframe {
        height: 300px;
    }

    /* --- Footer --- */
    
    /* Cambiar a una columna */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Centrar contenido */
    .footer-col ul {
        text-align: center;
    }
    
    .footer-col p {
        text-align: center;
    }

    /* Centrar línea decorativa */
    .footer-col h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Centrar redes sociales */
    .social-links {
        justify-content: center;
    }
}

/* =====================================================
   FIN DE PRINCIPAL.CSS
===================================================== */