/* 
 * contacte.css - Liga 3x3 2025
 * Estilos para la página de contacto
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #000; /* Título en negro */
}

.header-content h3 {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

.basketball-icon {
    font-size: 2em;
    margin: 0 20px;
    animation: bounce 2s infinite;
}

.club-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}

.club-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.8);
    animation: bounce 2s infinite;
}

.club-logo:hover {
    animation: none;
    transform: scale(1.1);
}

/* Ajustar el título del club */
.club-info h1 {
    margin: 0;
    font-size: 2.5em;
    color: #000; /* También en negro */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* NAVEGACIÓN - PARA 6 ELEMENTOS */
.navbar {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px; /* Reducido para que quepan 6 elementos */
    flex-wrap: wrap; /* Permite envolver en pantallas pequeñas */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px; /* Padding reducido para 6 elementos */
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px; /* Tamaño ligeramente menor */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.nav-link:hover,
.nav-item.active .nav-link {
    background: rgba(255,255,255,0.9);
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid white;
}

/* CONTENIDO PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.page-title h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-title p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* SECCIONES GENERALES */
.contact-section,
.general-info,
.social-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.contact-section h3,
.general-info h3,
.social-section h3 {
    color: #2E7D32;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-section h3 i,
.general-info h3 i,
.social-section h3 i {
    color: #4CAF50;
    font-size: 1.2em;
}

/* TARJETAS DE CONTACTO */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

.contact-info h4 {
    color: #2E7D32;
    font-size: 1.4em;
    margin-bottom: 8px;
    font-weight: 700;
}

.cargo {
    color: #4CAF50;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1em;
}

.contact-detail i {
    color: #4CAF50;
    width: 20px;
    text-align: center;
}

.contact-detail a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-detail a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* INFORMACIÓN GENERAL - CENTRADA Y COMPACTA */
.info-location {
    display: flex;
    justify-content: center;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 35px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    border: 3px solid #4CAF50;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    max-width: 600px;
}

.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #2E7D32;
}

.location-card i {
    color: #4CAF50;
    font-size: 2.5em;
    flex-shrink: 0;
}

.location-card .info-content h4 {
    color: #2E7D32;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 700;
}

.location-card .info-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1em;
}

/* SECCIÓN DE INSTAGRAM - DESTACADA */
.instagram-highlight {
    display: flex;
    justify-content: center;
}

.instagram-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 35px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.instagram-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.instagram-card:hover::before {
    opacity: 0.1;
}

.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #E4405F;
    text-decoration: none;
    color: inherit;
}

.instagram-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.3);
    position: relative;
    z-index: 1;
}

.instagram-icon i {
    color: white;
    font-size: 2em;
}

.instagram-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.instagram-content h4 {
    color: #2E7D32;
    font-size: 1.3em;
    margin-bottom: 5px;
    font-weight: 700;
}

.instagram-handle {
    color: #4CAF50;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.follow-cta {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.instagram-arrow {
    color: #4CAF50;
    font-size: 1.2em;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.instagram-card:hover .instagram-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* FOOTER */
footer {
    background: rgba(0,0,0,0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

/* ANIMACIONES */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar delay a las animaciones */
.contact-section { animation-delay: 0.1s; }
.general-info { animation-delay: 0.2s; }
.social-section { animation-delay: 0.3s; }

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.3s; }
.contact-card:nth-child(3) { animation-delay: 0.5s; }

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.5em;
    }
    
    .page-title h2 {
        font-size: 2em;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .location-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }
    
    .instagram-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
        max-width: 400px;
    }
    
    .instagram-icon {
        width: 60px;
        height: 60px;
    }
    
    .instagram-icon i {
        font-size: 1.8em;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }
    
    .header-content h3 {
        font-size: 1.1em;
    }
    
    .basketball-icon {
        font-size: 1.5em;
        margin: 0 10px;
    }

    /* Logo responsive para móviles */
    .club-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .club-logo {
        width: 60px;
        height: 60px;
    }
    
    .club-info h1 {
        font-size: 1.8em;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 columnas para 6 elementos */
        gap: 10px;
        padding: 0 10px;
    }
    
    .nav-link {
        padding: 12px 8px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }
    
    .page-title h2 {
        font-size: 1.8em;
    }
    
    .page-title p {
        font-size: 1em;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .contact-section,
    .general-info,
    .social-section {
        padding: 20px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
        max-width: 100%;
    }
    
    .location-card i {
        font-size: 2em;
    }
    
    .instagram-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
        max-width: 100%;
    }
    
    .instagram-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .instagram-icon i {
        font-size: 1.5em;
    }
    
    .instagram-arrow {
        display: none; /* Ocultar flecha en móvil */
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.6em;
    }
    
    .header-content h3 {
        font-size: 1em;
    }
    
    .basketball-icon {
        font-size: 1.2em;
        margin: 0 5px;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles muy pequeños */
        gap: 8px;
        padding: 0 5px;
    }
    
    .nav-link {
        padding: 10px 6px;
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .nav-link span {
        font-size: 11px;
    }
    
    .nav-link i {
        font-size: 1em;
    }
    
    .page-title h2 {
        font-size: 1.5em;
    }
    
    .contact-section h3,
    .general-info h3,
    .social-section h3 {
        font-size: 1.4em;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-info h4 {
        font-size: 1.2em;
    }
    
    .cargo {
        font-size: 1em;
    }
    
    .location-card {
        padding: 15px;
    }
    
    .location-card i {
        font-size: 1.8em;
    }
    
    .location-card .info-content h4 {
        font-size: 1.2em;
    }
    
    .instagram-card {
        padding: 15px;
        gap: 10px;
    }
    
    .instagram-icon {
        width: 50px;
        height: 50px;
    }
    
    .instagram-icon i {
        font-size: 1.3em;
    }
    
    .instagram-content h4 {
        font-size: 1.1em;
    }
    
    .instagram-handle {
        font-size: 1em;
    }
    
    .follow-cta {
        font-size: 0.8em;
    }
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .basketball-icon,
    .club-logo {
        animation: none;
    }
    
    .contact-section,
    .general-info,
    .social-section,
    .contact-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        transition: none !important;
    }
}