:root {
    --brand: #6B2AD7;
    --accent: #FFD200;
    --green: #10b981;
    --pink: #f472b6;
    --ink: #1f2937;
    --stroke: #e5e7eb;
    --bg: #fffefb;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
}

a {
    color: #0ea5e9;
    text-decoration: none
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #6B2AD7;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stroke)
}

.header .wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px
}

/* Cuando scrolleás, se vuelve translúcido */
.header.scrolled {
    background: rgba(107, 42, 215, 0.8);
    /* mismo color pero con transparencia */
    backdrop-filter: blur(6px);
    /* efecto vidrio */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* leve sombra */
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* --- Botones del menú con sombrita --- */
.nav a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 2px solid transparent;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
    /* sombra base */
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
    /* sombra al hover */
    filter: saturate(1.05);
}

.scroll-gallery {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: auto;
    white-space: nowrap;
}

.scroll-gallery .card,
.scroll-gallery .news-card {
    flex: 0 0 auto;
}


/* BOTÓN HAMBURGUESA */
.hamburger {
    display: none;
    /* visible solo en mobile */
    flex-direction: column;
    /* 👈 fuerza apilado vertical */
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 5px;
    /* espacio entre líneas */
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación al abrir (en forma de X) */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Solo visible en mobile */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
        /* 👈 esto la hace visible y apila */
    }

    .nav {
        display: none;
        /* oculta el menú normal */
    }
}

/* Panel móvil: SIEMPRE oculto por defecto */
.mobile-menu[hidden] {
    display: none !important;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Base del panel */
.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    color: #6B2AD7;
    background: #fff;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    z-index: 60;
}

/* Cuando el header tiene .open, mostramos el panel */
.header.open .mobile-menu {
    color: #6B2AD7 !important;
    font-weight: 700;
    display: flex;
}

/* En desktop, que NUNCA se vea el panel móvil */
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===== Enlaces del menú mobile ===== */
.nav-links a {
    color: #6B2AD7;
    /* violeta Tarasca */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4b1f9e;
    /* tono más oscuro al pasar el mouse */
}

/* Si el menú mobile usa fondo blanco */
@media (max-width: 900px) {
    .nav-links a {
        color: #6B2AD7;
    }
}


.nav .btn-violet {
    background: var(--brand);
    color: #fff;

}

.nav .btn-yellow {
    background: var(--accent);
    color: #5a4400
}

.nav .btn-green {
    background: var(--green);
    color: #073b2a
}

.nav .btn-pink {
    background: var(--pink);
    color: #5b113a
}

/* Hero video definitions moved to bottom for better priority */


.section {
    padding: 56px 0
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px
}

.section h2 {
    margin: 0 0 10px;
    color: var(--brand)
}

.gallery {
    display: grid;
    flex-direction: row;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px
}

.card {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(107, 42, 215, .07)
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.card .body {
    padding: 12px 14px
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    border: 1px solid #e2e8f0
}

.map-block {
    border: 2px dashed var(--brand);
    border-radius: 16px;
    overflow: hidden;
    background: #fff
}

#map {
    height: 480px
}

.map-fallback {
    display: block;
    width: 100%;
    height: auto
}

.news-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px
}

.news-card {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 210, 0, .12)
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover
}

.news-card .body {
    padding: 12px 14px
}

.banner-jr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #ffe88a);
    border: 2px solid #ffea9c;
    box-shadow: 0 8px 24px rgba(255, 210, 0, .25)
}

.banner-jr h3 {
    margin: 0;
    color: #5a4400
}

.banner-jr p {
    margin: 0
}

#jr {
    background-color: #10b981;
    /* verde */
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* centra el contenido dentro del banner */
    max-width: 1100px;
    margin: 0 auto;
    /* 👈 centrado */
}

#jr .container {
    display: flex;
    align-items: center;
    /* alinea verticalmente el logo y el texto */
    gap: 30px;
    /* 👈 separación entre logo y texto */
    max-width: 800px;
    margin: 0 auto;
}

#jr img {
    height: 55px;
    width: auto;
    flex-shrink: 0;
    /* evita que se achique el logo */
}

#jr p {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

#jr a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}



footer {
    border-top: 1px solid var(--stroke);
    background: #fff;
    padding: 28px 0;
    color: #4b5563
}

.small {
    font-size: 12px;
    color: #6b7280
}

/* Carrusel (Galería horizontal de colecciones) */
.gallery,
.news-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow: hidden;
    /* Esconde los elementos que se desborden */
    scroll-behavior: smooth;
    /* Permite un desplazamiento suave */
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.gallery>.card,
.news-row>.news-card {
    flex: 0 0 auto;
    /* No permite que las tarjetas crezcan o se encojan */
    width: 260px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .gallery>.card,
    .news-row>.news-card {
        width: 200px;
    }
}

/* Contenedor de los botones de desplazamiento */
.gallery-container,
.news-row-container {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    /* fondo blanco */
    color: #6B2AD7;
    /* violeta Tarasca */
    border: none;
    width: 42px;
    height: 42px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    /* circular */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* sombrita elegante */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    /* 👈 asegurate que sea mayor que la galería */
    pointer-events: auto;
    /* 👈 garantiza clics */
}

.scroll-btn:hover {
    background-color: #6B2AD7;
    color: #fff;
    box-shadow: 0 6px 18px rgba(107, 42, 215, 0.4);
}

.scroll-btn.left {
    left: 10px;
}

.scroll-btn.right {
    right: 10px;
}

.btn-more {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #6B2AD7;
    /* violeta Tarasca */
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(107, 42, 215, .25);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    white-space: nowrap;
}

.btn-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(107, 42, 215, .35);
}



/* ===== Breakpoints ===== */
/* Desktop grande (default) -> nada extra */

/* Laptops / tablets horizontales */
@media (max-width: 1200px) {
    .container {
        max-width: 980px;
    }

    .hero-video {
        min-height: 480px;
    }

    .nav a {
        padding: 10px 16px;
    }

    .card img {
        height: 160px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .container {
        max-width: 760px;
    }

    .header .wrap {
        padding: 10px 14px;
    }

    .hero-video {
        height: 65vh;
        min-height: 420px;
    }

    .nav {
        display: none;
    }

    /* nav desktop oculto (usa hamburguesa) */
    .hamburger {
        display: flex;
    }

    /* hamburguesa visible */
    .gallery>.card,
    .news-row>.news-card {
        width: 220px;
    }

    .banner-jr {
        padding: 14px;
    }

    section#jr>.container {
        gap: 18px;
    }

    section#jr>.container img {
        height: 48px;
    }

    section#jr p {
        font-size: 16px;
    }
}

#image-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    /* Centra las imágenes */
    align-items: center;
    border: 2px dashed #8A4C8D;
    /* Borde color morado */
    padding: 10px;
    border-radius: 10px;
    flex-wrap: wrap;
    max-width: 80%;
    /* Cambié el ancho máximo a 80% para hacerlo más pequeño */
    margin: 0 auto;
    /* Centra el contenedor en el medio */
}

.map-img {
    width: 300px;
    /* Tamaño ajustado para el mapa */
    height: auto;
}

.info-container {
    width: 500px;
    /* Ajuste en la información */
    height: auto;
}

.info-container img {
    width: 100%;
}

@media (max-width: 768px) {
    #image-container {
        flex-direction: column;
        align-items: center;
        border: 2px dashed #8A4C8D;
        padding: 20px;
        max-width: 90%;
        /* El tamaño se ajusta para la versión móvil */
    }

    .map-img {
        width: 90%;
        max-width: 90%;
        margin-bottom: 20px;
    }

    .info-container {
        width: 90%;
        margin-left: 0;
    }
}




/* Móviles */
@media (max-width: 600px) {
    .container {
        max-width: 100%;
        padding: 0 14px;
    }

    .hero-video {
        height: 58vh;
        min-height: 360px;
    }

    .nav a {
        font-size: 14px;
    }

    .gallery {
        gap: 12px;
    }

    .gallery>.card,
    .news-row>.news-card {
        width: 200px;
    }

    .card img {
        height: 140px;
    }

    .news-card img {
        height: 130px;
    }

    /* Banner JR */
    section#jr {
        padding: 16px;
        border-radius: 12px;
        margin: 0 16px;
    }

    section#jr>.container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    section#jr>.container img {
        height: 44px;
    }

    section#jr p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Header */
    .header .wrap img {
        height: 38px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }
}

/* Móviles chicos */
@media (max-width: 400px) {

    .gallery>.card,
    .news-row>.news-card {
        width: 180px;
    }

    .card img {
        height: 120px;
    }
}

/* ==== HERO VIDEO (full screen) ==== */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--brand);
}

.video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0));
    z-index: 2;
    pointer-events: none;
}

/* RESPONSIVE ajustes */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}


/* ===== SOLO MOBILE: Ajuste para ver el video completo en relación de aspecto ===== */
@media (max-width: 600px) {
    .hero-video {
        height: auto;
        min-height: unset;
        aspect-ratio: 16/9;
        margin-top: 58px; /* Altura del header en mobile para evitar que se solape */
        background: var(--brand);
    }

    .video-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
    }

    .video-bg iframe {
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
        border: 0;
        pointer-events: auto; /* Permitir interacciones en móviles */
    }
}

/* ===== Footer Raspe Plus ===== */
.raspeplus-footer {
    background: #f6f6f6;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #e0e0e0;
}

.raspeplus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.raspeplus-footer .logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.raspeplus-footer .logos img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.raspeplus-footer .link a {
    color: #6b2ad7;
    /* violeta Tarasca */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.raspeplus-footer .link a:hover {
    color: #3d1b91;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .raspeplus-footer .logos img {
        height: 45px;
    }

    .raspeplus-footer .logos {
        gap: 25px;
    }
}

/* ===== Sección descriptiva TARASCA ===== */
.about-tarasca {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #fffdfd;
}

.about-box {
    background: #fafafa;
    border: 2px solid #e6e6e6;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.about-box h2 {
    color: #6b2ad7;
    /* violeta Tarasca */
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.about-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.about-box p strong {
    color: #000;
}

.about-box a {
    color: #6b2ad7;
    text-decoration: none;
    font-weight: 600;
}

.about-box a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .about-box {
        padding: 30px 20px;
    }

    .about-box h2 {
        font-size: 1.6rem;
    }

    .about-box p {
        font-size: 1rem;
    }
}

/* Colores del panel mobile (más específico que 'a { ... }') */
.header .mobile-menu a {
    color: #6B2AD7 !important;
    /* violeta Tarasca */
    font-weight: 700;
    text-decoration: none;
}

.header .mobile-menu a:hover {
    color: #4b1f9e !important;
}

.header .mobile-menu a:visited {
    color: #6B2AD7 !important;
}

.age-warning {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.age-warning {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.age-warning img {
    width: 55px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* === PRO-MAX INTERACTIVE MAP === */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--brand);
    text-align: center;
    margin-bottom: 40px;
}

.pro-map-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin: 40px auto;
    max-width: 1200px;
}

.map-visual-area {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--stroke);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-intrinsic-container {
    position: relative;
    width: 320px;
    height: 660px;
    margin: 0 auto;
}

#svgMapWrapper {
    width: 100%;
    height: 100%;
}

#svgMapWrapper svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

#svgMapWrapper svg path {
    transition: all 0.3s ease;
    cursor: pointer;
}

#svgMapWrapper svg path:hover {
    filter: brightness(0.95);
    stroke: var(--brand);
    stroke-width: 1.5px;
}

.map-info-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    transition: transform 0.3s ease;
}

.info-card:hover { transform: translateY(-3px); }

.card-icon {
    width: 44px;
    height: 44px;
    background: #fdf2f8; 
    color: #f97316; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px !important;
    height: 24px !important;
}

.card-content h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: var(--ink);
}

.card-content p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.4;
}

.map-tooltip {
    position: absolute;
    background: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    z-index: 1000;
}

@media (max-width: 1000px) {
    .pro-map-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .map-visual-area {
        min-height: 500px;
    }
    .map-intrinsic-container {
        width: 250px;
        height: 515px;
    }
}

.scratch-wrap { cursor: none !important; }
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 48px; height: 48px;
    background-image: url('../assets/mano_moneda.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s linear;
    margin-left: -16px; margin-top: -16px;
}
.custom-cursor.visible { opacity: 1; }
.custom-cursor.scratching { animation: scratchAnim 0.15s infinite alternate ease-in-out; }
@keyframes scratchAnim {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(-5deg); }
}
