@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');

/* FONDO VIKINGO NEÓN CAFÉ*/

/* Fondo principal */
body.fondo-vikingo {

    background-color: #1a120b;
    background-image: url("Imagenes/fondo-vikingo.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    color: white;
}

/* Capa overlay*/
body.fondo-vikingo::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(196, 123, 42, 0.15),
        rgba(0, 0, 0, 0.85)
    );
    pointer-events: none;
    z-index: -1;
}


/* =====================================================
   📱 RESPONSIVE fondo vikingo
===================================================== */

@media (max-width: 768px) {

    body.fondo-vikingo {
        background-attachment: scroll; /* evita bug en móviles */
        background-size: cover;
    }

}

@media (max-width: 768px) {

    body.fondo-vikingo {
        background-size: 120%;
        background-repeat: repeat;
        background-position: center;
    }

}
/* =====================================================
   🖱 SCROLLBAR PERSONALIZADA
===================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track);
}

/* 🎯 barra con gradiente dinámico */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scroll-track);
}

/* 🎯 barra con gradiente dinámico */
::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        var(--scroll-glow) 0%,
        white 50%,
        var(--scroll-glow) 100%
    );

    border-radius: 10px;

    box-shadow:
        0 0 10px var(--scroll-glow),
        0 0 25px var(--scroll-glow),
        inset 0 0 8px rgba(255,255,255,0.3);

    position: relative;
}

::-webkit-scrollbar-thumb {
    background-size: 100% 200%;
    animation: energiaScroll 2.5s linear infinite;
}

@keyframes energiaScroll {
    0% {
        background-position: 0% 0%;
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
    100% {
        background-position: 0% 100%;
        filter: brightness(1);
    }
}


/* ================= HERO ESPIRITUAL LIMPIO ================= */

.hero-espiritual{
    position:relative;
    width:100%;
    min-height:0;
    padding:42px 20px 48px;
    text-align:center;
    overflow:hidden;
}

/* ================= SÍMBOLO VIKINGO ================= */

.simbolo-fondo{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    
    font-size:280px;
    
    color:rgba(255,255,255,0.03);
    text-shadow:0 0 60px var(--color-neon);

    z-index:1;
    pointer-events:none;

    animation:rotarSimbolo 40s linear infinite;
}

@keyframes rotarSimbolo{
    from{
        transform:translate(-50%,-50%) rotate(0deg);
    }

    to{
        transform:translate(-50%,-50%) rotate(360deg);
    }
}

/* ================= CONTENEDOR TITULO ================= */

.titulo-epico{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    position:relative;
    z-index:3;
    width:100%;
    padding:8px 20px 18px;
    text-align:center;
}

/* ================= TITULO VIKINGO ================= */

.titulo-vikingo{
    position:relative;
    z-index:10;
    font-weight:bold;
    text-transform:uppercase;
    width:100%;
    margin:0;
}

/* ================= TEXTO METALICO ================= */

.titulo-vikingo span{
    display:inline-block;
    position:relative;
    font-family:'Uncial Antiqua', cursive;
    font-size:clamp(2.4rem,4.2vw,3.5rem);
    line-height:1.05;
    letter-spacing:clamp(2px,0.35vw,5px);
    background:linear-gradient(180deg,#fff,#999,#444);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    text-shadow:
        0 0 5px var(--color-neon),
        0 0 12px var(--color-neon),
        0 0 22px var(--color-neon-strong);

    animation:
        forja 2.5s ease forwards,
        brilloMistico 3s infinite alternate 2.5s;
}

/* Escala especial para títulos largos: se mantienen dentro de la pantalla. */
.titulo-vikingo-largo{
    width:100%;
    max-width:1100px;
    margin-inline:auto;
}

.titulo-vikingo-largo > span{
    display:block;
    width:100%;
    font-size:clamp(2rem,3.2vw,2.625rem) !important;
    line-height:1.08;
    letter-spacing:clamp(1px,.22vw,3px);
    white-space:nowrap;
    overflow:visible;
    text-shadow:
        0 0 6px var(--color-neon),
        0 0 14px var(--color-neon),
        0 0 28px var(--color-neon-strong);
}

.titulo-vikingo-largo .salto-movil{
    display:inline;
    font:inherit;
    letter-spacing:inherit;
    text-shadow:inherit;
}

/* ================= LINEA SAGRADA ================= */

.linea-sagrada{
    margin:12px auto 0;

    width:min(52%, 560px);
    height:3px;

    background:
        linear-gradient(
            to right,
            transparent,
            var(--color-neon),
            white,
            var(--color-neon),
            transparent
        );

    box-shadow:
        0 0 20px var(--color-neon),
        0 0 50px var(--color-neon-strong);

    z-index:1;
}

/* =========== Menú =========== */
.menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: fit-content;
    padding: 15px 25px;
    background: var(--bg);
    border: 2px solid var(--color-neon);
    border-radius: 12px;

    box-shadow:
        0 0 8px var(--color-neon),
        0 0 16px var(--color-neon),
        0 0 25px var(--color-neon-strong);

    z-index: 9999;
    transition: all 0.3s ease;
    animation: neonPulse 2.5s infinite ease-in-out;
}

@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 8px var(--color-neon),
            0 0 16px var(--color-neon);
    }
    50% {
        box-shadow:
            0 0 18px var(--color-neon),
            0 0 35px var(--color-neon-strong);
    }
    100% {
        box-shadow:
            0 0 8px var(--color-neon),
            0 0 16px var(--color-neon);
    }
}

.menu-container {
    display: flex;
    align-items: center;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 10px;
    justify-content: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.menu a:hover {
    color: var(--color-neon);
    text-shadow: 0 0 8px var(--color-neon);
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: var(--bg);
    color: white;
    border: 2px solid var(--color-neon);
    cursor: pointer;
}

/*Meú responsive*/
@media (max-width: 768px) {
    .menu {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        animation: none;
    }
    .menu-container{
        position:relative;
    }

    .menu-toggle {
        display: block;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 2px solid var(--color-neon);
        box-shadow:
            0 0 10px var(--color-neon),
            0 0 20px var(--color-neon);
    }

    .menu-links {
        position: absolute;
        top: 80px;
        right: 0;
        flex-direction: column;
        background: black;
        border: 2px solid var(--color-neon);
        border-radius: 12px;
        z-index: 9999;
        display: none;
        box-shadow:
            0 0 10px var(--color-neon),
            0 0 20px var(--color-neon);
        justify-content: center;
        text-align: center;
    }

    .menu-links.activo {
        display: flex;
    }
}
/* =====================================================
   🎠 SECCIÓN CARRUSEL ULTRA PREMIUM
===================================================== */
.seccion {
    position: relative;
    z-index: 5;
}

.seccion-carrusel {
    margin: 60px auto;
    width: 70%;
    max-width: 1200px;
    text-align: center;
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow:
        0 0 40px var(--contenedor),
        0 0 60px var(--color-neon-strong);
    opacity: 1;
    transform: none;
    z-index: 5;
}


.seccion-carrusel.visible {
    opacity: 1;
    transform: translateY(0);
    z-index: 5;
}

.seccion-carrusel h1 {
    color: #fff;
    font-family: 'Uncial Antiqua', cursive;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: clamp(2px, .45vw, 5px);
    text-transform: uppercase;
    text-shadow: 0 0 25px var(--color-neon);
    margin-bottom: 15px;
    z-index: 5;
}

.carrusel {
    position: relative;
    perspective: 1200px;
    overflow: hidden;
    padding: 4px 0;
}

.carrusel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s ease;
    position: relative;
    height: 550px; 
}

/*tarjetas carrusel*/
.card {
    position: absolute;
    width: 300px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border: 2px solid var(--color-neon);
    box-shadow:
        0 0 15px var(--color-neon),
        0 0 40px var(--color-neon-strong);
    transition: 0.8s ease;
    text-align: center;
    z-index: 5;  
}

.card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--color-neon);
}

.card h3 {
    color: var(--color-neon);
    margin-bottom: 10px;
}

.card p {
    color: #ccc;
    font-size: 14px;
}

.leer-mas {
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid var(--color-neon);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.leer-mas:hover {
    background: var(--color-neon);
    color: black;
    box-shadow: 0 0 20px var(--color-neon);
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(0, 0, 0);
    border: 2px solid var(--color-neon);
    color: var(--color-neon);
    font-size: 22px;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 5px; }
.next { right: 5px; }

.btn:hover {
    background: var(--color-neon);
    color: black;
}


.indicadores span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 80%;
    background: #444444;
    cursor: pointer;
    transition: 0.3s;
    z-index:5;
}

.indicadores span.activo {
    background: var(--color-neon);
    box-shadow: 0 0 10px var(--color-neon);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  z-index: 1000;
  overflow-y: auto; 
}

.modal-content {
  background: black;
  border: 2px solid var(--color-neon);
  border-radius: 20px;
  padding: 40px 20px 60px;
  max-width: 700px;
  width: 90%;
  box-shadow:
    0 0 25px var(--color-neon),
    0 0 60px var(--color-neon-strong);
  text-align: justify;
  text-shadow: 0 0 15px var(--color-neon);
  position: relative;
  line-height: 1.6;
  white-space: pre-wrap;
}

.modal-content h2 {
  margin-bottom: 30px;
  text-align: center;
}

.modal-content .cerrar {
  background: var(--color-neon);
  color: black;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 20px;
  display: block;
  margin: 20px auto 0;
}

.modal-content .cerrar:hover {
  background: white;
  color: black;
}

@media (max-width:768px){

    .carrusel {
        overflow: hidden;
    }

    .carrusel-track {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: auto;
        justify-content: flex-start; /* 🔥 importante */
        padding: 10px 0;
        scrollbar-width: none;       /* Firefox */
        -ms-overflow-style: none;    /* IE y Edge antiguos */
}

.carrusel-track::-webkit-scrollbar {
    display: none;               /* Chrome, Safari, Edge */
}

    .card {
        position: relative;
        top: auto;
        width: 85%;
        min-width: 260px;
        max-width: 300px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .card h3{
        font-size: 18px;
    }

    .card p{
        font-size: 13px;
    }
    

}

/* =====================================================
   🌟 SECCIÓN INTERESAR PREMIUM
===================================================== */

.interesar {
    background: var(--bg);
    margin: 80px auto;
    padding: 50px;
    width: 90%;
    max-width: 1100px;
    text-align: center;

    border: 2px solid var(--color-bg-soft);
    border-radius: 20px;

    box-shadow:
        0 0 15px var(--color-bg-soft),
        0 0 35px var(--color-bg-soft);

    opacity: 10;
    transform: translateY(40px);
    transition: 0.8s ease;
    overflow: hidden; 
}

.interesar.visible {
    opacity: 1;
    transform: translateY(0);
}

.interesar h2 {
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 12px var(--color-bg-soft);
}

.interesar .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.interesar .links a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    border: 2px solid var(--color-bg-soft);
    transition: 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.interesar .links a:hover {
    background: var(--color-neon);
    color: black;
    box-shadow:
        0 0 15px var(--color-neon),
        0 0 30px var(--color-neon),
        0 0 40px var(--color-neon-strong);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .interesar {
        padding: 30px 20px;
    }

    .interesar .links {
        flex-direction: column;
    }

    .interesar .links a {
        width: 100%;
    }
}

/* =====================================================
   🎨 TARJETAS  SECCIÓN
===================================================== */

.card-seccion {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: 0.3s ease;
    margin: 40px;
}

.card-seccion img {
    width: 380px;
    max-width: 100%;
    border-radius: 15px;
    transition: 0.4s ease;
    border: 2px solid transparent;
    box-shadow:
        0 0 10px var(--color-neon),
        0 0 25px var(--color-neon-strong);
}

.card-seccion:hover img {
    border-color: var(--color-neon);
    box-shadow:
        0 0 20px var(--color-neon),
        0 0 50px var(--color-neon-strong);
    transform: translateY(-8px);
}
.card-seccion:hover span {
    color: var(--color-neon);
    text-shadow: 0 0 8px var(--color-neon);
}

.card-seccion span {
    font-weight: bold;
    color: white;
    transition: 0.3s ease;
    font-size: 35px;
}



/*================tarjetas Responsive===================*/

@media (max-width: 768px) {
    .card-seccion img {
        width: 75%;
        
    }
}

/* =====================================================
   🌌 HERO PRINCIPAL CON NEÓN
===================================================== */

.hero img {
    width: 100%;
    display: block;
    border: 3px solid var(--color-neon);
    box-shadow:
        0 0 20px var(--color-neon),
        0 0 50px var(--color-neon-strong);
}


/* =====================================================
   🎬 SECCIÓN VIDEOS ESTILO NEÓN
===================================================== */

.videos {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 100px auto;
    flex-wrap: wrap;
}

.video-card {
    background: black;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: 0.4s ease;    
    border: 2px solid var(--color-neon);
    box-shadow:
        0 0 15px var(--color-neon),
        0 0 35px var(--color-neon-strong);
}

.video-card img {
    width: 100%;
    display: block;
    transition: 0.4s ease;
}

.video-card p {
    margin: 15px 0;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--color-neon);
    text-shadow: 0 0 10px var(--color-neon);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 0 25px var(--color-neon),
        0 0 50px var(--color-neon-strong);
}

/* =====================================
   📱 RESPONSIVE
===================================== */

@media (max-width: 768px) {
    .videos {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .video-card {
        width: 80%;
    }
}

.categorias {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-instalar-app {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 10000;
    padding: 13px 18px;
    border: 2px solid var(--color-neon, #b026ff);
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 4, 18, .94);
    box-shadow: 0 0 12px var(--color-neon, #b026ff), 0 0 28px rgba(176, 38, 255, .45);
    font: 700 15px/1.1 Arial, sans-serif;
    cursor: pointer;
}

.btn-instalar-app:hover,
.btn-instalar-app:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--color-neon, #b026ff), 0 0 38px rgba(176, 38, 255, .65);
}

.btn-instalar-app[hidden] { display: none; }

@media (max-width: 600px) {
    .hero-espiritual { padding: 32px 58px 30px 12px; }
    .titulo-epico { padding: 6px 2px 10px; }
    .titulo-vikingo span { font-size: clamp(1.75rem, 8vw, 2.125rem); }
    .tema-global .titulo-vikingo span { font-size: clamp(1.65rem, 7.2vw, 2rem); }
    .titulo-vikingo-largo > span {
        font-size:clamp(1.45rem,6.5vw,1.75rem) !important;
        line-height:1.18;
        white-space:normal;
    }
    .titulo-vikingo-largo .salto-movil { display:block; }
    .linea-sagrada { width:72%; margin-top:8px; height:2px; }
    .simbolo-fondo { font-size:150px; }
}
