/* =====================================
   MAGO BARAHONA - ESTILOS MÁGICOS
   PALETA: ROJO · BLANCO · NEGRO
===================================== */

/* =====================================
   VARIABLES
===================================== */
:root {
    --color-rojo: #cc0000;
    --color-rojo-oscuro: #990000;
    --color-rojo-claro: #ff1a1a;
    --color-blanco: #ffffff;
    --color-negro: #0a0a0a;
    --color-gris: #1a1a1a;
    --color-gris-claro: #888888;
    --color-texto: #e0e0e0;
    --font-titulos: 'Playfair Display', serif;
    --font-texto: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================
   SCROLLBAR
===================================== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-rojo);
    border-radius: 3px;
}

/* =====================================
   UTILIDADES
===================================== */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.seccion-etiqueta {
    display: inline-block;
    color: var(--color-rojo);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-seccion h2 {
    font-family: var(--font-titulos);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-blanco);
}

.titulo-seccion h2 span {
    color: var(--color-rojo);
}

.titulo-seccion p {
    color: var(--color-gris-claro);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* =====================================
   BOTONES CON CHISPA MÁGICA
===================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-texto);
    position: relative;
    overflow: hidden;
}

.btn-principal {
    background: var(--color-rojo);
    color: var(--color-blanco);
}

.btn-principal:hover {
    background: var(--color-rojo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(204, 0, 0, 0.4);
}

.btn-secundario {
    background: transparent;
    color: var(--color-blanco);
    border: 2px solid var(--color-blanco);
}

.btn-secundario:hover {
    background: var(--color-blanco);
    color: var(--color-negro);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === CHISPA MÁGICA EN BOTONES === */
.btn-magico {
    position: relative;
    overflow: hidden;
}

.btn-magico .chispa {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.btn-magico:hover .chispa {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.btn-magico:active .chispa {
    width: 400px;
    height: 400px;
    opacity: 0;
    transition: width 0.1s, height 0.1s;
}

/* =====================================
   PARTÍCULAS MÁGICAS
===================================== */
.particulas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particula {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-rojo);
    border-radius: 50%;
    opacity: 0;
    animation: flotarMagia linear infinite;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.3);
}

@keyframes flotarMagia {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0) rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1) rotate(720deg);
    }
}

/* =====================================
   HERO - CON IMAGEN DE FONDO Y EFECTOS MÁGICOS
===================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-negro);
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        rgba(0, 0, 0, 0.6),
        radial-gradient(ellipse at 50% 30%, rgba(204, 0, 0, 0.15), transparent 70%),
        radial-gradient(ellipse at 80% 80%, rgba(204, 0, 0, 0.05), transparent 50%);
    z-index: 1;
}

/* Efecto de brillo mágico en el hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(204, 0, 0, 0.03), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(204, 0, 0, 0.02), transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Efecto de destello en el hero (como si fuera magia) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 100px,
            rgba(204, 0, 0, 0.01) 100px,
            rgba(204, 0, 0, 0.01) 101px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 120px,
            rgba(204, 0, 0, 0.01) 120px,
            rgba(204, 0, 0, 0.01) 121px);
    z-index: 1;
    pointer-events: none;
    animation: destelloMagico 20s linear infinite;
}

@keyframes destelloMagico {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(200px) translateY(100px);
    }
}

/* =====================================
   HERO CONTENIDO - CON SOMBRAS PARA LEGIBILIDAD
===================================== */
.hero-contenido {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-etiqueta {
    color: var(--color-rojo);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: aparecerEtiqueta 1.5s ease;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

@keyframes aparecerEtiqueta {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-contenido h1 {
    font-family: var(--font-titulos);
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-blanco);
    margin: 15px 0;
    line-height: 1.1;
    text-shadow:
        0 0 50px rgba(0, 0, 0, 0.9),
        0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-contenido h1 span {
    color: var(--color-rojo);
}

.hero-subtitulo {
    font-size: 1.3rem;
    color: var(--color-blanco);
    max-width: 600px;
    margin-bottom: 35px;
    animation: aparecerSubtitulo 1.8s ease;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

@keyframes aparecerSubtitulo {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-botones {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: aparecerBotones 2s ease;
}

@keyframes aparecerBotones {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   NAV - CON LOGO MÁGICO
===================================== */
nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    transition: var(--transition);
}

/* =====================================
   LOGO IMAGEN - EFECTOS MÁGICOS ✨
   TAMAÑO MÁS GRANDE (80px en navbar)
===================================== */
.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.3));
    border-radius: 8px;
}

/* Ocultamos el texto del logo */
.logo-text {
    display: none;
}

.logo-icon {
    display: none;
}

/* Efecto de brillo mágico al pasar el mouse */
.logo:hover .logo-img {
    filter: drop-shadow(0 0 25px rgba(204, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(204, 0, 0, 0.3));
    transform: scale(1.08) rotate(-2deg);
}

/* Animación de pulso suave en el logo (siempre activa) */
.logo-img {
    animation: logoPulsoMagico 3s ease-in-out infinite;
}

@keyframes logoPulsoMagico {
    0% {
        filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(204, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(204, 0, 0, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(204, 0, 0, 0.3));
    }
}

/* Efecto de brillo en el borde del logo al hacer hover */
.logo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-rojo), transparent, var(--color-rojo), transparent);
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.logo:hover::after {
    opacity: 0.6;
    animation: bordeMagicoLogo 2s ease-in-out infinite;
}

@keyframes bordeMagicoLogo {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Efecto de chispas alrededor del logo al hacer hover */
.logo:hover .logo-img {
    animation: logoChispas 0.8s ease;
}

@keyframes logoChispas {
    0% {
        transform: scale(1.08) rotate(-2deg);
    }

    25% {
        transform: scale(1.12) rotate(2deg);
    }

    50% {
        transform: scale(1.06) rotate(-1deg);
    }

    75% {
        transform: scale(1.10) rotate(1deg);
    }

    100% {
        transform: scale(1.08) rotate(-2deg);
    }
}

/* =====================================
   LOGO EN EL FOOTER - TAMAÑO MÁS GRANDE (60px)
===================================== */
.footer-logo .logo-img {
    height: 60px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(204, 0, 0, 0.2));
    transition: var(--transition);
}

.footer-logo .logo-img:hover {
    filter: drop-shadow(0 0 25px rgba(204, 0, 0, 0.5));
    transform: scale(1.05);
}

.footer-logo .logo-text {
    display: none;
}

.footer-logo p {
    color: var(--color-gris-claro);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* =====================================
   MENÚ
===================================== */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-blanco);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 20;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu li a {
    color: var(--color-gris-claro);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.menu li a:hover,
.menu li a.active {
    color: var(--color-blanco);
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-rojo);
    transition: var(--transition);
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

/* =====================================
   TÍTULO MÁGICO (efecto brillo)
===================================== */
.titulo-magico {
    display: inline-block;
    position: relative;
    background: linear-gradient(90deg, #ff0000, #ff6600, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brilloMagico 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(204, 0, 0, 0.3);
}

@keyframes brilloMagico {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* =====================================
   HERO SCROLL
===================================== */
.hero-scroll {
    position: relative;
    z-index: 5;
    text-align: center;
    padding-bottom: 30px;
    color: var(--color-gris-claro);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.hero-scroll i {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
    color: var(--color-rojo);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* =====================================
   SOBRE MÍ
===================================== */
.sobre {
    padding: 100px 0;
    background: var(--color-gris);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =====================================
   IMAGEN DEL MAGO - CON BORDE MÁGICO
===================================== */
.imagen-mago {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
}

.imagen-mago img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    transition: var(--transition);
}

.imagen-mago:hover img {
    transform: scale(1.05);
}

/* Borde mágico animado alrededor de la imagen */
.imagen-borde-magico {
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, var(--color-rojo), transparent, var(--color-rojo), transparent);
    background-size: 300% 300%;
    z-index: -1;
    animation: bordeMagico 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes bordeMagico {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Efecto de brillo sobre la imagen al hacer hover */
.imagen-mago::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(204, 0, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    border-radius: var(--radius);
}

.imagen-mago:hover::after {
    opacity: 1;
}

/* =====================================
   SOBRE MÍ - TEXTO
===================================== */
.sobre-texto h2 {
    font-family: var(--font-titulos);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 20px;
}

.sobre-texto h2 span {
    color: var(--color-rojo);
}

.sobre-texto p {
    color: var(--color-texto);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.sobre-stats .stat {
    text-align: center;
    padding: 20px;
    background: var(--color-negro);
    border-radius: var(--radius);
    border: 1px solid rgba(204, 0, 0, 0.15);
    transition: var(--transition);
}

.stat-magico:hover {
    border-color: var(--color-rojo);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.15);
}

.sobre-stats .stat .numero {
    display: block;
    font-family: var(--font-titulos);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-rojo);
}

.sobre-stats .stat .label {
    font-size: 0.8rem;
    color: var(--color-gris-claro);
}

/* =====================================
   ESPECTÁCULOS - TARJETAS MÁGICAS
===================================== */
.espectaculos {
    padding: 100px 0;
    background: var(--color-negro);
}

.espectaculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.espectaculo-card {
    background: var(--color-gris);
    padding: 35px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.espectaculo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.03), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.espectaculo-card:hover::before {
    opacity: 1;
}

.espectaculo-card:hover {
    transform: translateY(-10px);
    border-color: rgba(204, 0, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.espectaculo-card.destacado {
    border-color: var(--color-rojo);
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.08), rgba(204, 0, 0, 0.02));
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--color-rojo);
    color: var(--color-blanco);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: block;
}

.espectaculo-card h3 {
    font-family: var(--font-titulos);
    font-size: 1.3rem;
    color: var(--color-blanco);
    margin-bottom: 10px;
}

.espectaculo-card p {
    color: var(--color-gris-claro);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-duracion {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-rojo);
    font-weight: 600;
}

/* =====================================
   GALERÍA - CON IMÁGENES REALES Y EFECTO FLIP
===================================== */
.galeria {
    padding: 100px 0;
    background: var(--color-gris);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.galeria-item.flip-card {
    aspect-ratio: 1;
    border-radius: var(--radius);
    cursor: pointer;
    perspective: 1000px;
}

.flip-card .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-front {
    background: var(--color-negro);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flip-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}

.flip-front img:hover {
    transform: scale(1.05);
}

.flip-back {
    background: var(--color-rojo);
    transform: rotateY(180deg);
    color: var(--color-blanco);
    padding: 20px;
}

.flip-back i {
    font-size: 3rem;
    margin-bottom: 8px;
}

.flip-back span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* =====================================
   CONTACTO
===================================== */
.contacto {
    padding: 100px 0;
    background: var(--color-negro);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacto-info h2 {
    font-family: var(--font-titulos);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 16px;
}

.contacto-info h2 span {
    color: var(--color-rojo);
}

.contacto-info>p {
    color: var(--color-gris-claro);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.contacto-detalles {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.contacto-detalles .detalle {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.detalle-magico:hover {
    transform: translateX(5px);
}

.contacto-detalles .detalle i {
    width: 40px;
    height: 40px;
    background: var(--color-gris);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-rojo);
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.detalle-magico:hover i {
    background: var(--color-rojo);
    color: var(--color-blanco);
}

.contacto-detalles .detalle strong {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gris-claro);
    font-weight: 500;
}

.contacto-detalles .detalle span {
    color: var(--color-blanco);
}

.contacto-redes {
    display: flex;
    gap: 12px;
}

.contacto-redes a {
    width: 44px;
    height: 44px;
    background: var(--color-gris);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blanco);
    transition: var(--transition);
}

.red-social {
    transition: var(--transition);
}

.red-social:hover {
    background: var(--color-rojo);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.3);
}

/* =====================================
   FORMULARIO MÁGICO
===================================== */
.contacto-formulario {
    background: var(--color-gris);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-negro);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--color-blanco);
    font-family: var(--font-texto);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-magico input:focus,
.form-magico select:focus,
.form-magico textarea:focus {
    outline: none;
    border-color: var(--color-rojo);
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.1);
}

.form-group select option {
    background: var(--color-negro);
}

.form-mensaje {
    margin-top: 16px;
    text-align: center;
    display: none;
    padding: 12px;
    border-radius: 8px;
}

.form-mensaje.success {
    display: block;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.form-mensaje.error {
    display: block;
    color: var(--color-rojo);
    background: rgba(204, 0, 0, 0.1);
}

/* =====================================
   FOOTER
===================================== */
footer {
    background: var(--color-negro);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

.footer-logo p {
    color: var(--color-gris-claro);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-gris-claro);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-rojo);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-gris);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blanco);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-rojo);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: var(--color-gris-claro);
    font-size: 0.8rem;
}

.footer-bottom .credito a {
    color: var(--color-rojo);
    font-weight: 600;
}

/* =====================================
   BOTÓN SUBIR
===================================== */
.btn-subir {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--color-rojo);
    border: none;
    border-radius: 50%;
    color: var(--color-blanco);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.btn-subir.visible {
    opacity: 1;
    visibility: visible;
}

.btn-subir:hover {
    transform: translateY(-4px) rotate(360deg);
    box-shadow: 0 10px 40px rgba(204, 0, 0, 0.4);
}

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

/* Tablets y pantallas medianas */
@media (max-width: 992px) {

    .sobre-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-contenido h1 {
        font-size: 3.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

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

    .imagen-mago {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .menu-btn {
        display: block;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-negro);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: var(--transition);
        z-index: 15;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menu.active {
        right: 0;
    }

    .hero-contenido h1 {
        font-size: 2.8rem;
    }

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

    .titulo-seccion h2 {
        font-size: 2.2rem;
    }

    .sobre-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-stats {
        grid-template-columns: 1fr;
    }

    .espectaculos-grid {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contacto-formulario {
        padding: 25px;
    }

    .hero-botones .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .imagen-mago {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Logo responsive - más grande en tablet */
    .logo-img {
        height: 55px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero-contenido h1 {
        font-size: 2.2rem;
    }

    .hero-contenido h1 span {
        font-size: 2.2rem;
    }

    .hero-etiqueta {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-subtitulo {
        font-size: 0.95rem;
    }

    .hero-botones .btn {
        font-size: 0.8rem;
        padding: 12px 20px;
    }

    .titulo-seccion h2 {
        font-size: 1.8rem;
    }

    .titulo-seccion p {
        font-size: 0.95rem;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .contacto-detalles .detalle {
        flex-wrap: wrap;
    }

    .flip-back span {
        font-size: 0.7rem;
    }

    .imagen-mago {
        max-width: 250px;
    }

    .sobre-texto h2 {
        font-size: 2rem;
    }

    .sobre-texto p {
        font-size: 0.95rem;
    }

    .contacto-info h2 {
        font-size: 2rem;
    }

    .contacto-info>p {
        font-size: 0.95rem;
    }

    .contacto-formulario {
        padding: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }

    .btn-subir {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }

    footer {
        padding: 30px 0 20px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    /* Logo responsive - más grande en móvil */
    .logo-img {
        height: 50px;
    }
}

/* Móviles muy pequeños (menos de 360px) */
@media (max-width: 360px) {
    .hero-contenido h1 {
        font-size: 1.8rem;
    }

    .hero-contenido h1 span {
        font-size: 1.8rem;
    }

    .hero-subtitulo {
        font-size: 0.85rem;
    }

    .hero-botones .btn {
        font-size: 0.7rem;
        padding: 10px 16px;
    }

    .titulo-seccion h2 {
        font-size: 1.5rem;
    }

    .imagen-mago {
        max-width: 200px;
    }

    .sobre-texto h2 {
        font-size: 1.6rem;
    }

    .contacto-info h2 {
        font-size: 1.6rem;
    }

    .espectaculo-card {
        padding: 25px 18px;
    }

    .espectaculo-card h3 {
        font-size: 1.1rem;
    }

    .espectaculo-card p {
        font-size: 0.85rem;
    }

    /* Logo responsive - más grande en móvil pequeño */
    .logo-img {
        height: 45px;
    }
}

/* =====================================
   ✨ MAGIA EXTRA: CURSOR DE VARITA MÁGICA
===================================== */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><line x1='6' y1='36' x2='26' y2='16' stroke='%23330000' stroke-width='5' stroke-linecap='round'/><line x1='6' y1='36' x2='26' y2='16' stroke='%23cc0000' stroke-width='2.5' stroke-linecap='round'/><circle cx='10' cy='30' r='1.3' fill='%23ffffff' opacity='0.7'/><circle cx='15' cy='25' r='1' fill='%23ffffff' opacity='0.5'/><path d='M30 3 Q32 8 37 10 Q32 12 30 17 Q28 12 23 10 Q28 8 30 3 Z' fill='%23ffffff'/></svg>") 30 10, auto;
    }

    a,
    button,
    .btn,
    input,
    select,
    textarea,
    .flip-card {
        cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><line x1='6' y1='36' x2='26' y2='16' stroke='%23330000' stroke-width='5' stroke-linecap='round'/><line x1='6' y1='36' x2='26' y2='16' stroke='%23ff1a1a' stroke-width='2.5' stroke-linecap='round'/><circle cx='10' cy='30' r='1.3' fill='%23ffffff' opacity='0.8'/><circle cx='15' cy='25' r='1.2' fill='%23ffd700' opacity='0.7'/><path d='M30 2 Q32.5 8 38 10 Q32.5 12 30 18 Q27.5 12 22 10 Q27.5 8 30 2 Z' fill='%23ffd700'/></svg>") 30 10, pointer;
    }
}

/* Aura mágica que sigue al cursor */
.magia-cursor-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.4), rgba(255, 102, 0, 0.15) 45%, transparent 70%);
    pointer-events: none;
    z-index: 9997;
    mix-blend-mode: screen;
    filter: blur(2px);
    will-change: transform;
}

/* Chispas que siguen el cursor al moverse */
.magia-cursor-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: magiaChispaDesvanecer 0.9s ease-out forwards;
    text-shadow: 0 0 8px currentColor;
}

@keyframes magiaChispaDesvanecer {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.3) rotate(180deg);
    }
}

/* Estallido de chispas al hacer clic (efecto varita mágica) */
.magia-click-estrella {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: magiaEstallido 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    text-shadow: 0 0 10px currentColor;
}

@keyframes magiaEstallido {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2);
    }
}

/* Ocultar la magia del cursor personalizado en pantallas táctiles o con movimiento reducido */
@media (hover: none),
(pointer: coarse) {

    .magia-cursor-aura,
    .magia-cursor-sparkle,
    .magia-click-estrella {
        display: none;
    }
}

/* =====================================
   ✨ MAGIA EXTRA: DETALLES ADICIONALES
===================================== */

/* Brillo pulsante en las etiquetas de sección */
.seccion-etiqueta {
    animation: magiaPulsoEtiqueta 2.5s ease-in-out infinite;
}

@keyframes magiaPulsoEtiqueta {

    0%,
    100% {
        text-shadow: 0 0 0 rgba(204, 0, 0, 0);
    }

    50% {
        text-shadow: 0 0 12px rgba(204, 0, 0, 0.7);
    }
}

/* Los íconos de las tarjetas cobran vida mágica al pasar el mouse */
.espectaculo-card:hover .card-icon {
    animation: magiaIconoVivo 0.6s ease;
    filter: drop-shadow(0 0 14px rgba(204, 0, 0, 0.6));
}

@keyframes magiaIconoVivo {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    30% {
        transform: scale(1.2) rotate(-10deg);
    }

    60% {
        transform: scale(1.1) rotate(10deg);
    }
}

/* Redes sociales con resplandor mágico extra */
.red-social:hover,
.footer-social a:hover {
    box-shadow: 0 0 25px rgba(204, 0, 0, 0.6);
}

/* Scrollbar con resplandor al pasar el mouse */
::-webkit-scrollbar-thumb:hover {
    background: var(--color-rojo-claro);
    box-shadow: 0 0 10px var(--color-rojo);
}

/* Botón subir con leve resplandor extra */
.btn-subir.visible {
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.4);
}

/* =====================================
   ✨ MAGIA EXTRA: FONDOS DE SECCIÓN VIVOS
===================================== */
.sobre,
.espectaculos,
.galeria,
.contacto,
footer {
    position: relative;
}

.contenedor {
    position: relative;
    z-index: 1;
}

/* Resplandores suaves en las esquinas de cada sección */
.sobre::before,
.espectaculos::before,
.galeria::before,
.contacto::before,
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 15%, rgba(204, 0, 0, 0.08), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(204, 0, 0, 0.07), transparent 50%);
}

/* Contenedor de partículas flotantes para cada sección */
.magia-particulas-seccion {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}