/* estilos.css */

:root {
    --rojo-gaman: #B01015;
    --negro-gaman: #1a1a1a;
    --gris-gaman: #2b2b2b;
    --blanco: #ffffff;
    --fondo-tarjetas: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fafafa;
    color: var(--negro-gaman);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo con la imagen koi.png */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("koi.png");
    background-size: 400px; background-repeat: repeat;
    opacity: 0.04; filter: grayscale(100%); 
    z-index: -1; pointer-events: none; 
}

/* Menú Lateral */
#sidebar {
    height: 100%; width: 250px; position: fixed; top: 0; left: -250px;
    background-color: var(--gris-gaman); padding-top: 60px; transition: 0.3s; z-index: 1000;
}
#sidebar > a, .dropdown-header a {
    padding: 15px 25px; text-decoration: none; font-size: 18px; color: var(--blanco);
    display: block; transition: 0.2s;
}
#sidebar > a:hover, #sidebar > a.activo, .dropdown-header a.activo {
    background-color: var(--rojo-gaman);
}
#sidebar.active { left: 0; }
#sidebar > a > i, .dropdown-header > a > i {
    margin-right: 12px; width: 20px; text-align: center;
}

/* Submenú Desplegable */
.dropdown-container { display: block; }
.dropdown-header { display: flex; align-items: stretch; }
.dropdown-header a { flex: 1; } 
.dropdown-btn {
    padding: 15px 25px 15px 15px; color: var(--blanco); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.dropdown-btn:hover { background-color: var(--rojo-gaman); }
.dropdown-btn i { transition: transform 0.3s ease; }
.dropdown-btn.girar i { transform: rotate(180deg); }

.sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background-color: #222; }
.sub-menu.abierto { max-height: 200px; }

#sidebar a.sub-menu-item {
    padding: 12px 25px 12px 45px; font-size: 15px; color: #ccc; text-decoration: none; display: block; transition: 0.2s;
}
#sidebar a.sub-menu-item i { margin-right: 8px; width: 15px; text-align: center; }
#sidebar a.sub-menu-item:hover, #sidebar a.sub-menu-item.activo { background-color: var(--rojo-gaman); color: var(--blanco); }

/* Botones Flotantes */
#menu-btn, #home-btn {
    font-size: 30px; cursor: pointer; color: var(--negro-gaman); background: none; border: none;
    position: fixed; left: 20px; text-decoration: none; display: flex; align-items: center; justify-content: center;
}
#menu-btn { top: 20px; z-index: 1001; transition: color 0.3s; }
#home-btn { top: 70px; font-size: 26px; z-index: 990; transition: opacity 0.3s, color 0.3s; } 
#menu-btn.menu-abierto { color: var(--blanco); }
#home-btn.menu-abierto { opacity: 0; pointer-events: none; } 

/* Contenido Principal */
#main-content { padding: 10px 20px 40px; max-width: 1200px; margin: 0 auto; }

/* Cabecera (Hero) */
header { text-align: center; margin-bottom: 50px; }

.logo-titulo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 0px;
}

.logo-titulo-img {
    width: 100%;
    max-width: 850px; 
    height: auto;
    display: block;
    filter: drop-shadow(4px 6px 10px rgba(0,0,0,0.3));
}

/* Subtítulo */
header p.subtitulo { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #333; 
    margin-top: -140px; 
    letter-spacing: 0.5px; 
    width: 100%; 
    position: relative;
    z-index: 2;
}

h2 { border-bottom: 2px solid var(--rojo-gaman); padding-bottom: 10px; margin-bottom: 30px; font-weight: 800; margin-top: 40px;}

/* Textos de introducción */
.intro-texto {
    background-color: var(--fondo-tarjetas); border-left: 5px solid var(--rojo-gaman);
    padding: 30px; border-radius: 0 10px 10px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.06); margin-bottom: 40px;
}
.intro-texto p { font-size: 1.05rem; color: #444; margin-bottom: 15px; }
.intro-texto p:last-child { margin-bottom: 0; }
.intro-texto .invitacion { font-size: 1.15rem; color: var(--rojo-gaman); font-weight: 700; margin-top: 20px; }

/* Tarjetas Generales y Grillas */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 50px; }
.card {
    background-color: var(--fondo-tarjetas); border: 1px solid #eaeaea; 
    border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
a.card { text-decoration: none; display: block; transition: transform 0.3s ease, box-shadow 0.3s ease; }
a.card:hover { transform: translateY(-7px); box-shadow: 0 12px 25px rgba(176, 16, 21, 0.15); }

/* Simbología y Logo Interactivo */
.simbologia-wrapper { display: flex; align-items: center; gap: 40px; margin-bottom: 50px; }
.simbologia-cards { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.simbologia-cards .card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease; cursor: pointer; }
.simbologia-cards .card:hover {
    transform: translateX(10px); box-shadow: 0 10px 25px rgba(176, 16, 21, 0.15); border-left: 5px solid var(--rojo-gaman);
}

.simbologia-logo { flex: 1; display: flex; justify-content: center; align-items: center; }
.logo-container-relative {
    position: relative; width: 100%; max-width: 350px;
    display: flex; justify-content: center; align-items: center;
}
.base-logo { width: 100%; height: auto; transition: all 0.4s ease; display: block; }
.base-logo.dim { opacity: 0.15; filter: grayscale(100%) blur(1px); }

.part-logo {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain; opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; z-index: 5;
}
.part-logo.highlight { 
    opacity: 1; filter: drop-shadow(0px 10px 20px rgba(176, 16, 21, 0.5)); transform: scale(1.08); 
}

.card-content { padding: 25px; }
.card-content h3 { color: var(--rojo-gaman); margin-bottom: 15px; font-size: 1.3rem; font-weight: 800;}
.card-content h3 span { color: var(--negro-gaman); font-size: 1rem; font-weight: 400;}
.filosofia-card { text-align: left; }
.filosofia-card p { font-size: 0.95rem; color: #444; }

/* Qué es el Judo */
.judo-info { display: flex; align-items: center; gap: 40px; margin-bottom: 50px; }
.judo-info.reverse { flex-direction: row-reverse; } 
.judo-info-text { flex: 1; }
.judo-info-text p { margin-bottom: 15px; font-size: 1.05rem; color: #333; }
.judo-info-image { flex: 1; }
.judo-info-image img { width: 100%; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

/* Estilos Biblioteca Hub */
.hub-card { text-align: center; padding: 50px 20px; }
.hub-card i { font-size: 4rem; color: var(--rojo-gaman); margin-bottom: 20px; transition: transform 0.3s ease; }
a.card:hover .hub-card i { transform: scale(1.1); }
.btn-volver { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--rojo-gaman); text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: 0.3s; }
.btn-volver:hover { color: var(--negro-gaman); transform: translateX(-5px); }

/* Mapas y Videos */
.media-container { width: 100%; height: 200px; position: relative; }
.media-container iframe { width: 100%; height: 100%; border: none; position: absolute; top:0; left:0; }
.video-container { padding-bottom: 56.25%; height: 0; position: relative; }
.sede-info p { font-size: 0.9rem; margin-bottom: 8px; }

/* Botones WhatsApp */
.btn-sede-wsp {
    display: inline-block; background-color: #25d366; color: var(--blanco); text-decoration: none; padding: 12px 15px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; margin-top: 15px; transition: background-color 0.3s, transform 0.3s; text-align: center; width: 100%;
}
.btn-sede-wsp:hover { background-color: #128c7e; transform: translateY(-2px); }
.btn-sede-wsp i { margin-right: 8px; font-size: 1.1rem; }
.btn-wsp-especial { width: auto; padding: 15px 30px; margin-top: 20px; font-size: 1rem; }
.zona-etiqueta { background-color: var(--rojo-gaman); color: var(--blanco); text-align: center; padding: 12px 15px; font-weight: 700; font-size: 1.1rem; }
.zona-etiqueta i { margin-left: 8px; }

/* Banners compartidos (Estructura base) */
.banner-content { display: flex; align-items: center; justify-content: center; gap: 30px; text-align: left; overflow: hidden; }
.banner-text { overflow: hidden; }
/* Se quitó white-space: nowrap para permitir que el texto salte de línea */
.banner-text h3 { font-size: 1.4rem; margin-bottom: 5px; font-weight: 800; color: var(--blanco); text-shadow: 1px 1px 3px rgba(0,0,0,0.2);}
.banner-text p { font-size: 1.05rem; opacity: 0.95; line-height: 1.5; }

/* Banner de YouTube */
.youtube-banner {
    display: block; background: linear-gradient(135deg, #e52d27 0%, var(--rojo-gaman) 100%); color: var(--blanco); text-decoration: none; padding: 40px 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(176, 16, 21, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 50px;
}
.youtube-banner:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(176, 16, 21, 0.4); }
.youtube-banner .banner-content i { font-size: 4.5rem; color: var(--blanco); filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2)); }

/* Banner del Minijuego */
.game-banner {
    display: block; 
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%); 
    border: 2px solid var(--rojo-gaman);
    color: var(--blanco); 
    text-decoration: none; 
    padding: 40px 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; 
    margin-bottom: 30px;
}
.game-banner:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(176, 16, 21, 0.4); 
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
}
.game-banner .banner-content i { 
    font-size: 4.5rem; 
    color: var(--rojo-gaman); 
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.4)); 
}

/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 100; transition: 0.3s; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); color: white; box-shadow: 2px 5px 15px rgba(0,0,0,0.3);}

/* Responsive */
@media (max-width: 900px) {
    .logo-titulo-img { max-width: 550px; }
    header p.subtitulo { margin-top: -85px; font-size: 1rem; }
    .simbologia-wrapper { flex-direction: column-reverse; }
    .simbologia-logo { margin-bottom: 30px; }
}

@media (max-width: 600px) {
    .logo-titulo-img { max-width: 320px; }
    header p.subtitulo { font-size: 0.85rem; margin-top: -50px; }
    #menu-btn { font-size: 22px; top: 15px; left: 15px; }
    #home-btn { font-size: 20px; top: 55px; left: 15px; }
    .logo-container-relative { max-width: 200px; margin: 0 auto; }
    
    .judo-info { flex-direction: column; }
    .judo-info.reverse { flex-direction: column; } 
    .banner-content { flex-direction: column; text-align: center; gap: 15px; }
    .banner-text h3 { font-size: 1.25rem; }
    .banner-text p { font-size: 1rem; }
}