/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --red: #e4032e;
    --violet: #70247f;
    --white: #ffffff;
    --black: #0a0a0a;
    --purple-dark: #1a0520;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Source Code Pro', monospace;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

ul {
    list-style: none;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}


/* =========================================
   TIPOGRAFÍA
   ========================================= */
h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--red), var(--violet), var(--red));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--red);
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--violet);
}

/* Variante para hero con texto grande reducido */
.v60 h1 {
    font-size: clamp(3rem, 9vw, 7rem);
}


/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(228, 3, 46, 0.8)); }
    50%       { filter: drop-shadow(0 0 50px rgba(228, 3, 46, 1)); }
}

@keyframes nebulaMove {
    0%   { transform: translate(-50%, -50%) translateZ(-500px); opacity: 0; }
    30%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate(-50%, -50%) translateZ(300px); opacity: 0; }
}


/* =========================================
   HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--red);
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(228, 3, 46, 0.4);
}

.header-content {
    max-width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(228, 3, 46, 0.6));
    transition: all 0.3s ease;
}

.logo-header:hover {
    filter: drop-shadow(0 0 25px rgba(228, 3, 46, 1));
    transform: scale(1.05);
}


/* =========================================
   NAVEGACIÓN (DESKTOP)
   ========================================= */
#navMenu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

#navMenu a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Subrayado gradiente (solo desktop) */
#navMenu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--violet));
    transition: width 0.3s ease;
}

#navMenu a:hover::after,
#navMenu a.active::after {
    width: 100%;
}

#navMenu a:hover,
#navMenu a.active {
    color: var(--red);
    text-shadow: 0 0 20px rgba(228, 3, 46, 0.8);
}

/* Iconos de navegación (ocultos en desktop) */
.nav-icon {
    display: none;
    font-size: 1.5rem;
    margin-bottom: 4px;
    pointer-events: none;
    line-height: 1;
}


/* =========================================
   HERO
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 4rem;
    background-image: url('../img/TimeRebels-foto-bg1.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(112, 36, 127, 0.5), rgba(10, 10, 10, 0.6));
}

.hero-content {
    max-width: 1600px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.hero-logo {
    max-width: 500px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(228, 3, 46, 0.8));
    animation: pulse 3s ease-in-out infinite;
}

.hero-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Variantes de altura para hero */
.v100 { min-height: 100vh; }
.v60  { min-height: 60vh; }

/* Imágenes de fondo para hero reutilizable */
.hero2 { background-image: url('../img/TimeRebels-Colmenarejo.jpg');    background-size: cover; background-position: center; }
.hero3 { background-image: url('../img/TimeRebels_festival8M-2.jpg');   background-size: cover; background-position: center; }
.hero4 { background-image: url('../img/timerebels_vizzio3.jpg');        background-size: cover; background-position: center; }

.tagline {
    font-size: clamp(1.3rem, 3vw, 2rem);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}

.tagline span {
    color: var(--red);
    font-weight: 900;
}


/* =========================================
   SECCIONES
   ========================================= */
section,
.section {
    padding: 6rem 3rem;
    position: relative;
}

.section2 {
    padding: 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    /* Sin overflow-x: hidden para no recortar sombras de img-box
       ni el pseudo-elemento ::after de los vídeos */
}

/* Fondo negro puro */
.bg-black {
    background: var(--black);
}

/* Fondo degradado oscuro (sección "Ofrecemos esto y más") */
.bg-gradient-dark {
    background: linear-gradient(180deg, var(--black), var(--purple-dark), var(--black));
}

/* Barra de conversión con padding propio (eventos.html) */
.conversion-bar-section {
    padding: 60px 20px;
}

/* Filas de agenda (eventos.html) */
.agenda-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid var(--violet);
    padding: 20px 0;
    flex-wrap: wrap; /* en móvil estrecho el botón baja a nueva línea */
}

.agenda-row-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agenda-row-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.agenda-row-title--red    { color: var(--red); }
.agenda-row-title--white  { color: var(--white); }
.agenda-row-title--violet { color: var(--violet); }

.agenda-row-sub {
    margin: 0;
    color: #ccc;
    font-size: 1rem;
}

/* Variante del btn-rebel inclinado y compacto (filas de agenda) */
.btn-rebel--skew {
    padding: 8px 18px;
    font-size: 0.75rem;
    transform: skewX(-10deg);
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-left: auto; /* empuja el botón a la derecha */
}

/* Fondos decorativos */
.bg-smoke {
    background:
        linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
        url('https://images.pexels.com/photos/9694700/pexels-photo-9694700.jpeg') center / cover fixed;
}

.bg-halftone    { background: url('../img/bg_halftone.jpg') center / cover fixed; }
.bg-nebulosa    { background: url('../img/TimeRebels_nebulosa.jpg') center / cover fixed; }
.conversion-bar2 { background: url('../img/fondo-V5.jpg') center / cover fixed; }


/* =========================================
   GRID LAYOUTS
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }


/* =========================================
   UTILIDADES DE TEXTO
   ========================================= */
.pmarginb { margin-bottom: 2rem; }
.pbig     { font-size: 1.8rem; }
.pmed     { font-size: 1.3rem; line-height: 1.8; }
.bigred   { color: var(--red); font-size: 2rem; }

/* Texto destacado en párrafos (extraído de inline) */
.text-accent-red    { color: var(--red);    font-weight: 700; }
.text-accent-violet { color: var(--violet); font-weight: 700; }

/* Párrafo centrado con anchura máxima */
.text-center-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

/* Párrafo grande destacado (sección profesionalidad / CTA) */
.highlight-paragraph {
    font-size: 1.5rem;
    text-align: center;
}

/* Subtítulo de sección en rojo centrado (banda.html: "SIN TRAMPA NI CARTÓN") */
.subtitulo-rojo-centrado {
    color: var(--red);
    text-align: center;
    margin-bottom: 2rem;
}

/* Subtítulo destacado de sección (banda.html: "Una formación multicultural...") */
.banda-subtitulo {
    font-size: 1.6rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
    line-height: 2;
    color: var(--red);
    font-weight: 600;
    text-align: center;
}

/* Visualmente oculto pero accesible para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* H3 más pequeño para tarjetas de grid (tipos de evento, qué ofrecemos) */
.grid-3 h3,
.grid-4 h3 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

/* Botón o contenido centrado con margen superior */
.cta-block {
    text-align: center;
    margin-top: 3rem;
}


/* =========================================
   BOTONES
   ========================================= */
.cta-primary {
    display: inline-block;
    background-color: var(--red);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 21px 38px;
    text-decoration: none;
    border: none;
    position: relative;
    margin: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.15rem;
    letter-spacing: 1px;
    transform: skewX(-11deg);
}

.cta-primary span {
    display: block;
    transform: skewX(11deg);
}

.cta-primary::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: -6px; bottom: -6px;
    border: 3px solid var(--violet);
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background-color: var(--violet);
    box-shadow: 0 0 25px var(--violet);
    transform: skewX(-11deg) scale(1.05);
}

.cta-primary:hover::after {
    border-color: var(--red);
    right: -10px;
    bottom: -10px;
}

.cta-secondary {
    display: inline-block;
    background-color: var(--violet);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 21px 38px;
    text-decoration: none;
    border: none;
    position: relative;
    margin: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.15rem;
    letter-spacing: 1px;
    transform: skewX(-11deg);
}

.cta-secondary span {
    display: block;
    transform: skewX(11deg);
}

.cta-secondary::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: -6px; bottom: -6px;
    border: 2px solid var(--white);
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background-color: var(--white);
    color: #70247f !important;
    box-shadow: 0 0 25px var(--red);
    transform: skewX(-11deg) scale(1.05);
}

.cta-secondary:hover::after {
    border-color: var(--red);
    right: -10px;
    bottom: -10px;
}

.btn-rebel {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 18px 40px;
    font-family: var(--font-body);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    border: 2px solid var(--red);
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 2px;
}

.btn-rebel:hover {
    background-color: transparent;
    color: var(--red);
    box-shadow: 0 0 15px var(--red);
}

.btn-tickets {
    padding: 15px 30px;
    font-size: 1rem;
}


/* =========================================
   SEPARADOR REBEL
   ========================================= */
.rebel-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.line-left {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--violet), var(--red));
}

.line-right {
    width: 100px;
    height: 4px;
    background: linear-gradient(to left, var(--violet), var(--red));
}

.hourglass svg {
    width: 40px;
    height: 40px;
    color: var(--red);
}

/* Líneas decorativas triples (borde inferior de sección) */
.triple-line-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 5px;
    pointer-events: none;
}

.line {
    width: 100%;
    background: linear-gradient(90deg, var(--violet), var(--red), var(--violet));
}

.line:nth-child(1) { height: 1px; }
.line:nth-child(2) { height: 3px; }
.line:nth-child(3) { height: 5px; }


/* =========================================
   TÍTULOS DE SECCIÓN
   ========================================= */
.section-title {
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    text-align: center;
    margin-bottom: 60px;
    color: white;
    display: block;
    width: 100%;
    font-weight: 900;
}

.section-title span {
    color: var(--red);
    background: repeating-linear-gradient(
        to bottom,
        var(--red) 1px,
        var(--red) 3px,
        #000 4px
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 4px var(--red));
}


/* =========================================
   IMAGEN CON MARCO ESTILIZADO
   ========================================= */
.img-box {
    position: relative;
    border: 5px solid white;
    box-shadow: 20px 20px 0 var(--red);
    transform: rotate(3deg);
    transition: 0.3s;
    /* Margen para que la sombra y la rotación no se recorten */
    margin: 10px 25px 25px 10px;
}

.img-box:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 25px 25px 0 var(--violet);
}

.img-box img {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(1.2);
}

.img-box:hover img {
    filter: grayscale(0%);
}


/* =========================================
   VÍDEOS
   ========================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* Sin overflow-x: hidden para que el ::after del video-wrapper
       pueda sobresalir a la derecha sin recortarse */
    padding-right: 20px; /* compensa el desplazamiento del ::after */
}

.video-wrapper {
    position: relative;
    margin-bottom: 20px;
    margin-right: 15px; /* espacio para el ::after que sobresale a la derecha */
}

.video-wrapper .iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--violet);
    display: block;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, var(--red), var(--violet));
    z-index: -1;
    transition: all 0.3s ease;
}

.video-wrapper:hover::after {
    top: 20px;
    right: -20px;
    bottom: -20px;
}


/* =========================================
   NEBULA (PALABRAS 3D)
   ========================================= */
#nebula-container {
    width: 100%;
    height: 400px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    perspective: 600px;
}

.nebula-word {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 900;
    animation: nebulaMove var(--duration) linear infinite;
    animation-delay: var(--delay);
    white-space: nowrap;
}


/* =========================================
   EVENTOS
   ========================================= */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-family: var(--font-heading);
}

.event-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    background: rgba(27, 10, 38, 0.3);
    border: 2px solid var(--violet);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.event-row:hover {
    background: rgba(112, 36, 127, 0.2);
    box-shadow: 0 0 30px rgba(112, 36, 127, 0.5);
    transform: translateX(10px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 20px;
    background: linear-gradient(135deg, var(--red), var(--violet));
    border-radius: 5px;
}

.event-date .day {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.event-date .month {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.event-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.event-info .event-time {
    font-size: 0.9rem;
    color: var(--violet);
    font-weight: 700;
}


/* =========================================
   BARRA DE CONVERSIÓN
   ========================================= */
.conversion-bar {
    width: 100vw;
    padding: 60px 20px;
    background: linear-gradient(90deg, var(--red) 0%, var(--violet) 100%);
    text-align: center;
}

.conversion-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.conversion-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icons a {
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px var(--white));
}


/* =========================================
   GALERÍA DE FOTOS
   ========================================= */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--purple-dark), var(--black));
    border: 3px solid var(--red);
    transform: rotate(-1deg);
    transition: all 0.4s ease;
}

.photo-item:nth-child(even) {
    transform: rotate(1deg);
}

.photo-item:hover {
    transform: rotate(0) scale(1.05);
    border-color: var(--red);
    box-shadow: 0 0 40px rgba(228, 3, 46, 0.8);
    z-index: 10;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(228, 3, 46, 0.85);
    padding: 1.5rem 1rem;
    color: var(--white);
    backdrop-filter: blur(4px);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

.photo-caption h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.photo-caption p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}


/* =========================================
   LOGOS (SALAS / AYUNTAMIENTOS)
   ========================================= */
.logos-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    padding: 2px;
    width: 100%; /* evita que desborde y genere scrollbar */
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    flex: 0 0 calc(20% - 2px);
    cursor: pointer;
    transition: background-color 0.35s ease;
}

.logo-card img {
    max-width: 160px;
    width: 100%;
    height: auto;
    filter: grayscale(70%) brightness(0.4) sepia(1) hue-rotate(250deg) saturate(5) brightness(1.4);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.logo-card:hover img {
    filter:
        drop-shadow(0 0 6px rgba(228, 3, 46, 1))
        drop-shadow(0 0 16px rgba(228, 3, 46, 0.7))
        drop-shadow(0 0 30px rgba(228, 3, 46, 0.4));
    transform: scale(1.12);
}


/* =========================================
   CONTACTO
   ========================================= */
.contact-grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 0 auto;
    max-width: 1400px;
}

/* Tablet: una columna antes de llegar a móvil */
@media (max-width: 1024px) {
    .contact-grid-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info-block {
    background: rgba(26, 5, 32, 0.5);
    padding: 40px;
}

.info-item {
    margin-bottom: 40px;
}

.info-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--red);
    display: block;
    margin-bottom: 5px;
    font-weight: 900;
}

.info-value {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    font-family: var(--font-body);
}

.glass-form {
    background: linear-gradient(115deg, rgba(228, 3, 46, 0.3) 0%, rgba(112, 36, 127, 0.3) 100%);
    padding: 40px;
    backdrop-filter: blur(5px);
    border: 2px solid var(--red);
    isolation: isolate; /* evita que el ::after del botón interior se filtre fuera */
}

.form-input {
    width: 100%;
    background: rgba(15, 15, 15, 0.6);
    border: none;
    border-bottom: 2px solid var(--violet);
    padding: 15px;
    color: white;
    margin-bottom: 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--red);
    background: rgba(15, 15, 15, 0.3);
}

/* Honeypot antispam: oculto visualmente, invisible para humanos */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contenedor del botón de envío del formulario */
.form-submit-wrap {
    text-align: center;
}

.rgpd-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 30px;
    cursor: pointer;
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

.rgpd-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--red);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.rgpd-check a {
    color: var(--red);
    text-decoration: underline;
}

#formMsg {
    display: none;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    border-radius: 2px;
}

#formMsg.ok {
    background: rgba(0, 180, 80, 0.2);
    border: 1px solid #00b450;
    color: #fff;
}

#formMsg.error {
    background: rgba(228, 3, 46, 0.2);
    border: 1px solid var(--red);
    color: #fff;
}


/* =========================================
   BANNER DE COOKIES
   (cargado en style.css para que funcione
    en todas las páginas del sitio)
   ========================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.97);
    border-top: 3px solid var(--red);
    padding: 1.4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 -5px 30px rgba(228, 3, 46, 0.35);
    backdrop-filter: blur(8px);
    /* Empieza oculto bajo la pantalla, el JS lo sube */
    transform: translateY(110%);
    transition: transform 0.4s ease;
}

#cookie-banner.visible {
    transform: translateY(0);
}

#cookie-banner.hiding {
    transform: translateY(110%);
}

.cookie-text {
    flex: 1;
    min-width: 250px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.6;
}

.cookie-text strong {
    color: var(--white);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.cookie-text a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-text a:hover {
    color: var(--white);
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn-accept {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 11px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    transform: skewX(-8deg);
    white-space: nowrap;
    text-transform: uppercase;
}

.cookie-btn-accept span {
    display: block;
    transform: skewX(8deg);
}

.cookie-btn-accept:hover {
    background: var(--violet);
    box-shadow: 0 0 15px rgba(228, 3, 46, 0.6);
}

.cookie-btn-reject {
    display: inline-block;
    background: transparent;
    color: #aaa;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 11px 18px;
    border: 1px solid #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
}

.cookie-btn-reject:hover {
    color: var(--white);
    border-color: #aaa;
}

@media (max-width: 600px) {
    #cookie-banner {
        padding: 1rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* =========================================
   VÍDEO INDEX (más pequeño que en banda.html)
   ========================================= */
.video-grid--index {
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   TESTIMONIOS
   ========================================= */
.testimonios-grid {
    gap: 2px;
    margin-top: 2rem;
}

.testimonio-card {
    border-left: 3px solid var(--red);
    padding: 1.8rem 2rem;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}

.testimonio-card:hover {
    background: rgba(228, 3, 46, 0.05);
}

.testimonio-texto {
    font-style: italic;
    color: #ccc;
    line-height: 1.9;
    font-size: 1rem;
    margin: 0 0 1.2rem 0;
    border: none;
    padding: 0;
}

.testimonio-autor {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonio-autor strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.testimonio-autor span {
    color: var(--red);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* =========================================
   FAQ
   ========================================= */
.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-align: left;
    padding: 1.2rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--red);
}

.faq-question[aria-expanded="true"] {
    color: var(--red);
}

.faq-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--red);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    padding: 0;
    opacity: 0;
}

.faq-answer.open {
    max-height: 400px;
    padding-bottom: 1.4rem;
    opacity: 1;
}

.faq-answer p {
    color: #bbb;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

.faq-answer a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   RIDER HINT (contacto.html)
   ========================================= */
.rider-hint {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(228, 3, 46, 0.07);
    border-left: 3px solid var(--red);
    padding: 0.9rem 1.2rem;
    margin-bottom: 2rem;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rider-hint .mdi {
    color: var(--red);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.rider-hint a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.rider-hint a:hover {
    color: var(--white);
}

/* =========================================
   PÁGINA 404
   ========================================= */
.error-404-hero {
    background-image: url('../img/TimeRebels_nebulosa.jpg');
    background-color: var(--black); /* fallback */
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 20vw, 16rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 10px;
}

.error-404-code span {
    color: var(--red);
    text-shadow: 0 0 40px rgba(228, 3, 46, 0.8);
}


/* =========================================
   FOOTER
   ========================================= */
footer {
    width: 100%;
    background:
        radial-gradient(circle, rgba(0, 0, 0, 0.2) 20%, transparent 20%),
        linear-gradient(180deg, #70247f 0%, #a6001e 100%);
    background-size: 4px 4px, 100% 100%;
    padding-top: 20px;
    position: relative;
}

.footer-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.footer-logo-area {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.footer-logo-area img {
    height: 80px;
    margin: 0 auto 10px auto;
}

.footer-slogan {
    font-family: var(--font-heading);
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    text-align: center;
}

.footer-col h5 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--red);
    display: inline-block;
    padding-bottom: 5px;
    text-align: left;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--violet);
    font-weight: 700;
    text-shadow: 0 0 11px #fff;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: left;
}

.footer-socials a {
    color: var(--white);
    text-decoration: none;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
}

.footer-socials a:hover {
    color: var(--violet);
    transform: translateY(-5px) scale(1.2);
    background: transparent;
    box-shadow: none;
    text-shadow: 0 0 15px rgba(228, 3, 46, 0.8);
    filter: drop-shadow(0 0 5px rgba(228, 3, 46, 0.5));
}

.footer-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact-item span {
    color: #fff;
    font-size: 1.1rem;
}

.copyright-bar {
    background: #000;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #333;
}


/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .footer-cols {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }

    .footer-contact-item {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0.8rem;
    }

    .contact-info-block,
    .glass-form {
        padding: 24px 16px;
    }

    .btn-rebel--skew {
        padding: 7px 14px;
        font-size: 0.7rem;
    }

    .logo-header {
        height: 30px;
    }

    .hero-content {
        max-width: 768px;
    }

    .hero-logo {
        max-width: 300px;
    }

    #navMenu {
        gap: 0.5rem;
    }

    .nav-icon {
        display: block;
        font-size: 2.2rem;
        margin-bottom: 6px;
        line-height: 1;
        transition: all 0.3s ease;
    }

    .nav-text {
        display: block;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        line-height: 1;
        font-weight: 700;
        color: #aaa;
        transition: color 0.3s ease;
    }

    /* Ocultar "La " solo en móvil */
    .hide-mobile-text {
        display: none;
    }

    #navMenu a {
        padding: 0.5rem 0.2rem;
        background: transparent !important;
        min-width: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #navMenu a::after {
        display: none;
    }

    #navMenu a.active .nav-icon,
    #navMenu a:hover .nav-icon {
        color: var(--red) !important;
        text-shadow: 0 0 15px rgba(228, 3, 46, 0.9);
        filter: drop-shadow(0 0 4px rgba(228, 3, 46, 0.6));
        transform: scale(1.15) translateY(-2px);
    }

    #navMenu a.active .nav-text,
    #navMenu a:hover .nav-text {
        color: var(--white);
        text-shadow: 0 0 5px rgba(228, 3, 46, 0.8);
    }

    .pbig {
        font-size: 1.2rem;
    }

    .event-row {
        flex-direction: column;
        text-align: center;
    }

    .video-wrapper {
        margin-right: 15px;
    }

    /* Galería móvil: caption visible debajo de la imagen */
    .photo-item {
        height: auto;
        display: flex;
        flex-direction: column;
        border: none;
        background: transparent;
        margin-bottom: 3rem;
        overflow: visible; /* permite que el caption fluya sin recortarse */
        aspect-ratio: unset;
        transform: none;
    }

    .photo-item img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        border: 1px solid #333;
    }

    .photo-caption {
        position: static;
        width: 100%;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0.7rem 0 0 0;
        border-top: none;
        text-align: left;
    }

    /* Anular hover de escritorio en móvil */
    .photo-item:hover .photo-caption {
        transform: none;
    }

    .photo-caption h3 {
        color: var(--red);
        padding: 0 0.5rem;
        margin-bottom: 0.3rem;
        font-size: 1.3rem;
    }

    .photo-caption p {
        padding: 0 0.5rem;
        color: #ddd;
    }

    .footer-socials {
        justify-content: center;
    }

    .logo-card {
        flex: 0 0 calc(33% - 2px);
        padding: 2px 11px;
    }
}

@media (max-width: 480px) {
    .logo-header {
        height: 25px;
    }

    .hero-content {
        max-width: 480px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .nav-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .nav-text {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .logo-card {
        flex: 0 0 calc(33.333% - 2px);
        padding: 2px 16px;
    }

    .logo-card img {
        max-width: 120px;
    }
}
