/* ========================================
   STAGE 2024 - MALLORCA WATERPOLO CLUB
   Stylesheet Principal
   ======================================== */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */

nav {
    background: linear-gradient(135deg, #F25912 50%, #000000 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* PLACEHOLDER: Logo del club */
.logo-img {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
    padding: 5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    right: -100%;

}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(0deg, rgba(255, 183, 89, 0.432) 10%, rgba(255, 172, 19, 0.26) 100%),
                url('img/Primera\ portada.jpg') center/cover;
    color: rgb(0, 0, 0);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* PLACEHOLDER: Imagen hero de fondo */
.hero::before {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    z-index: 1;
}

.hero h1 {
    font-size: 7rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .date {
    font-size: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   SECCIONES
   ======================================== */

section {
    margin-bottom: 4rem;
}

section h2 {
    color: #dd820a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #d67900;
}

.intro {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   INFO CARDS (Grid)
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* PLACEHOLDER: Iconos para info-cards */
.info-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffa228 0%, #c45800 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-align: center;
    padding: 10px;
}

.info-card h3 {
    color: #e46c0a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.info-card p, .info-card ul {
    color: #555;
    line-height: 1.8;
}

.info-card ul {
    list-style: none;
    padding-left: 1rem;
}

.info-card ul li:before {
    content: "▸ ";
    color: #0066cc;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ========================================
   GALERÍA
   ======================================== */

.gallery {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* PLACEHOLDER: Imágenes de galería */
.gallery-item {
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

/* ========================================
   INSTALACIONES
   ======================================== */

.facilities-section {
    margin: 4rem 0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* PLACEHOLDER: Imágenes de instalaciones */
.facility-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.facility-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.facility-content {
    padding: 1.5rem;
}

.facility-content h3 {
    padding-top: 3rem;
    color: #ff8800;
    margin-bottom: 1rem;
}

/* ========================================
   PROGRAMA / HORARIOS
   ======================================== */

.schedule-item {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #dd7600;
}

.schedule-item h4 {
    color: #da7401;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.schedule-item p {
    color: #666;
    margin: 0.3rem 0;
}

/* ========================================
   ACORDEÓN PROGRAMA
======================================== */

.accordion-item {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border-left: 4px solid #dd7600;
}

.accordion-header {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: #f8f9fa;
    color: #da7401;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #ffe7c8;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.2rem;
}

.accordion-content p {
    margin: 0.8rem 0;
    color: #666;
}

.programa-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.programa-right img {
    margin-left: 40px;
    width: 70%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Botón mantiene estilo anterior pero con icono */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animación flecha */
.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 900px) {
    .programa-container {
        grid-template-columns: 1fr;
    }

    .programa-right {
        margin-top: 2rem;
    }
}



/* ========================================
   EQUIPO DE ENTRENADORES
   ======================================== */

.team-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* PLACEHOLDER: Fotos de entrenadores */
.coach-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.coach-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;   /* CLAVE */
    margin: 0 auto 1rem;
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* CLAVE */
    display: block;
}

.coach-card h4 {
    color: #e95d00;
    margin-bottom: 0.5rem;
}

.coach-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   PRECIO
   ======================================== */

.price-box {
    background: linear-gradient(135deg, #F25912 0%, #000000 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.price-box .amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.price-box .details {
    font-size: 1.1rem;
    opacity: 0.95;
}

.payment-info {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.payment-info h4 {
    color: #f88604;
    margin-bottom: 1rem;
}

.plazas-rojo {
    color: #dc3545;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ========================================
   CONTACTO
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-card h4 {
    color: #f57207;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #666;
    margin: 0.5rem 0;
}

.contact-card a {
    color: #000000;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}


/* ========================================
    MAPA INTERACTIVO
   ======================================== */

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 35%; /* altura proporcional */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   BOTONES Y ALERTAS
   ======================================== */

.cta-button {
    display: inline-block;
    background: #004999;
    color: #ffffff;   /* Letras blancas */
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

/* Centrado dentro del alert-box */
.alert-box .cta-button {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0 auto;
}

/* Hover elegante */
.cta-button:hover {
    background: #ff7b00;
    transform: translateY(-2px);
}


.alert-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.alert-box strong {
    color: #856404;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 1rem;
    text-align: center;
}

/* ========================================
   UTILIDADES
   ======================================== */

.dev-note {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1565c0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .date {
        font-size: 1.2rem;
    }

    .info-grid,
    .gallery-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero::before {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .map-responsive {
        padding-bottom: 60%;
    }

}


/* ========================================
   NAVBAR RESPONSIVE
======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff !important;
    border-radius: 2px;
    transition: 0.3s;
}

/* MÓVIL */
@media (max-width: 900px) {

    .menu-toggle {
        display: flex;
        position: absolute;
        left: 1.3rem;
        top: 2rem;
        z-index: 1100;
        color: white;
    }

    .nav-container {
        justify-content: center;
    }

   .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #F25912 50%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 1050;
}

.no-scroll {
    overflow: hidden;
}

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        list-style: none;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}


/* ===========================
   MODAL GENGAR
=========================== */

.gengar-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.gengar-modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
