/* estilos.css */

/* ==========================================================================
   1. VARIABLES E IDENTIDAD DE MARCA
   ========================================================================== */
:root {
    --mandalika-fucsia: #D63384;
    --mandalika-verde: #82BC00;
    --mandalika-celeste: #00B4D8;
    --mandalika-dark: #505050;
    --mandalika-light: #F0FBFF;
    --white: #FDFBF7;
    --mandalika-amarillo: #f4d35e; /* Color institucional para el correo */
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--mandalika-dark);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--mandalika-dark);
    font-weight: 700; 
}

p {
    color: #666666; /* Gris intermedio para los textos largos */
}

/* ==========================================================================
   3. COMPONENTES REUTILIZABLES (Botones, Tarjetas, Formularios)
   ========================================================================== */

/* Botones */
.btn-mandalika {
    display: block;
    background-color: var(--mandalika-verde); /* #82BC00 */
    color: white;
    padding: 1rem 2.5rem; /* Ajuste de tamaño proporcional */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem; 
    line-height: 1.2;
    width: fit-content; /* Se ajusta al texto */
    min-width: 250px;
    max-width: 300px; /* Evita que se vuelva muy ancho */
    margin: 10px auto; 
}

.btn-mandalika:hover {
    background-color: var(--mandalika-fucsia);
    transform: translateY(-2px);
}

/* Tarjetas */
.card-mandalika {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    border: 2px solid var(--mandalika-celeste);
    transition: all 0.4s ease;
}

.card-mandalika:hover {
    border-color: var(--mandalika-fucsia);
    transform: scale(1.02);
}

.card-mandalika h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Variación circular para Hero */
.card-hero-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formularios */
.mandalika-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%; /* Asegura que el formulario use todo el ancho de la tarjeta */
    align-items: stretch; /* Esto hace que los inputs ocupen todo el ancho */
}

.mandalika-input {
    padding: 12px;
    border: 1px solid var(--mandalika-celeste);
    border-radius: 5px;
    font-family: inherit;
}

.mandalika-textarea {
    height: 100px;
}

.form-status-msg {
    margin-top: 20px;
    font-weight: 600;
}

/* ==========================================================================
   4. ESTRUCTURA Y SECCIONES (Header, Hero, Footer)
   ========================================================================== */

/* Header y Navegación */
.header-mandalika {
    padding: 1rem 5%; /* Reducimos un poco el padding vertical para compensar el logo más grande */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-mandalika img {
    height: 85px; /* Aumentado de 60px a 85px para mayor presencia */
    width: auto;
    transition: transform 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--mandalika-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--mandalika-fucsia);
}

/* Hero Section */
.section-hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--mandalika-light) 100%);
    padding: 5rem 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Grid de Talleres / Secciones de Contenido */
.grid-talleres {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fuerza 4 columnas en PC */
    gap: 1.5rem;
    padding: 2rem 5%;
}

/* Pie de Página */
.footer-mandalika {
    background-color: var(--mandalika-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-mandalika a {
    color: var(--mandalika-celeste);
    text-decoration: none;
}

.texto-legal-blanco {
    color: #FDFBF7 !important; /* Forzamos el código de color directamente */
    margin-top: 30px;
    opacity: 0.8;
    font-size: 0.8rem;
    display: block;
}

/* ==========================================================================
   5. UTILIDADES (Clases de ayuda)
   ========================================================================== */
.text-center { text-align: center; }
.grid-full-width { grid-column: 1 / -1; }
.section-hero-compact { min-height: auto !important; }
.mt-large { margin-top: 3rem; }

.form-container {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: auto;
}

.mb-medium { margin-bottom: 2rem; }

/* Media Query para Celulares */
@media (max-width: 768px) {
    .header-mandalika {
        flex-direction: column; /* Logo arriba, menú abajo */
        padding: 1rem;
    }
    .section-hero {
        padding: 3rem 5%;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap; /* Permite que los enlaces se acomoden en 2 filas si es necesario */
        justify-content: center;
        gap: 1rem;
        padding-top: 1rem;
        font-size: 0.85rem;
    }
    .grid-talleres {
        grid-template-columns: 1fr; /* Vuelve a 1 columna en móvil */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Footer en móviles: Logo y textos centrados */
    .footer-mandalika {
        flex-direction: column !important;
        text-align: center !important;
    }
    .footer-logo, .footer-info {
        text-align: center !important;
        margin-bottom: 20px;
    }
    .footer-logo img {
        margin: 0 auto;
    }
    /* Asegura que el afiche suba en móviles */
    .club-container-responsive {
        flex-direction: column-reverse;
    }
    .footer-info h3 {
        margin-top: 20px;
    }
}

/* Estilo para las técnicas del Club */
#club h4 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-top: 10px;
}

#club p {
    margin-bottom: 10px;
    font-style: italic;
}

/* Contenedor del club para igualar alturas */
#club .hero-content {
    display: flex;
    flex-direction: column;
}

/* Ajuste de centrado para sección Club */
#club .hero-content div {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%; /* Asegura que el contenedor ocupe todo el espacio para centrar bien */
}

#club .card-mandalika {
    height: 100%; /* Obliga a la tarjeta a medir lo mismo que el texto de la izquierda */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja los botones hacia abajo y el afiche arriba */
    padding: 30px;
}

#club .card-mandalika img {
    max-height: 450px; /* Ajuste ligeramente menor para dar aire a los botones */
    width: auto;
    margin: 0 auto 20px auto;
    object-fit: contain;
    flex-grow: 1; /* Permite que la imagen crezca si hay espacio */
}

/* Ajuste de botones dentro de la tarjeta del club */
.club-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.club-buttons-container .btn-mandalika {
    margin: 0; /* Quitamos el margen automático para control total */
    width: 100%; /* Que ocupen el ancho de la tarjeta */
    max-width: none;
}

/* Efecto de Zoom para el Afiche */
.img-zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.img-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
}

.img-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Colores de Contacto */
.link-mail { color: var(--mandalika-amarillo) !important; }
.link-whatsapp { color: #25D366 !important; }
.link-instagram { color: #E1306C !important; }
.link-facebook { color: #1877F2 !important; }

.footer-mandalika a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-mandalika a:hover {
    opacity: 0.8;
}

/* Ajuste para el logo en el footer */
.footer-logo img {
    width: 200px;
    height: auto;
    display: block;
}