/* ============================================
   PALETA DE COLORES MONSTER HIGH
   Rosa: #FF007F | Azul: #00BFFF | Negro: #0D0D0D
   ============================================ */

:root {
    --mh-pink: #FF007F;
    --mh-pink-light: #FF69B4;
    --mh-pink-dark: #C71585;
    --mh-blue: #00BFFF;
    --mh-blue-light: #87CEEB;
    --mh-blue-dark: #1E90FF;
    --mh-purple: #8B00FF;
    --mh-black: #0D0D0D;
    --mh-gray: #1A1A1A;
    --mh-light: #F5F5F5;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, var(--mh-pink) 0%, var(--mh-blue) 100%);
    --gradient-dark: linear-gradient(135deg, var(--mh-black) 0%, var(--mh-gray) 100%);
    --shadow-pink: 0 0 20px rgba(255, 0, 127, 0.4);
    --shadow-blue: 0 0 20px rgba(0, 191, 255, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--mh-black);
    color: var(--mh-light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   EFECTO DE PARTÍCULAS DE FONDO
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--mh-pink);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite;
    box-shadow: 0 0 10px var(--mh-pink);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   ENCABEZADO CON EFECTO GLITCH
   ============================================ */
.main-header {
    background: var(--gradient-dark);
    position: relative;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 3px solid var(--mh-pink);
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 191, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

.glitch {
    font-family: 'Creepster', cursive;
    font-size: 4rem;
    color: var(--white);
    text-shadow: 
        0 0 10px var(--mh-pink),
        0 0 20px var(--mh-pink),
        0 0 40px var(--mh-pink);
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--mh-blue);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--mh-pink);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    20% { clip: rect(63px, 9999px, 130px, 0); }
    40% { clip: rect(25px, 9999px, 145px, 0); }
    60% { clip: rect(89px, 9999px, 55px, 0); }
    80% { clip: rect(45px, 9999px, 99px, 0); }
    100% { clip: rect(12px, 9999px, 120px, 0); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--mh-blue);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.skull-decoration {
    font-size: 3rem;
    margin-top: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   NAVEGACIÓN STICKY CON INDICADOR
   ============================================ */
.navbar {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--mh-pink);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 20px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-main);
    transition: height 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    height: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    text-shadow: 0 0 10px var(--mh-pink);
}

/* ============================================
   CONTENEDOR PRINCIPAL Y TARJETAS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--mh-gray);
    margin-bottom: 50px;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-main);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

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

.section-title {
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    color: var(--mh-pink);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-main);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================
   CONTENIDO DE INICIO
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.text-content i {
    color: var(--mh-blue);
    font-style: italic;
}

.text-content strong {
    color: var(--mh-pink);
    font-weight: 700;
}

.custom-hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--mh-pink), var(--mh-blue), transparent);
    margin: 25px 0;
}

.highlight {
    background: linear-gradient(120deg, var(--mh-pink) 0%, var(--mh-purple) 100%);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.monster-quote {
    border-left: 4px solid var(--mh-pink);
    padding-left: 20px;
    margin-top: 30px;
    font-style: italic;
    color: var(--mh-blue-light);
    font-size: 1.2rem;
}

.monster-quote cite {
    display: block;
    margin-top: 10px;
    color: var(--mh-pink);
    font-weight: bold;
}

.quick-stats {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 0, 127, 0.35);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mh-pink);
    text-shadow: 0 0 12px rgba(255, 0, 127, 0.35);
}

.stat-label {
    color: var(--mh-blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.origin-timeline {
    margin-top: 24px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.35);
}

.origin-timeline h3 {
    color: var(--mh-blue);
    margin-bottom: 10px;
}

.origin-timeline ul {
    list-style: none;
}

.origin-timeline li {
    margin-bottom: 8px;
    color: var(--mh-light);
}

.floating-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: float-image 3s ease-in-out infinite;
    box-shadow: var(--shadow-pink);
}

.floating-image .icon {
    font-size: 5rem;
}

@keyframes float-image {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   GALERÍA CON TARJETAS FLIP 3D
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.student-card {
    perspective: 1000px;
    cursor: pointer;
    height: 400px;
}

.student-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.student-card.flipped .student-inner {
    transform: rotateY(180deg);
}

.student-front,
.student-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.student-front {
    background: var(--mh-gray);
    border: 2px solid var(--mh-pink);
}

.student-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-bottom: 3px solid var(--mh-pink);
}

.student-front h3 {
    color: var(--mh-pink);
    margin: 15px 0 5px;
    font-size: 1.5rem;
}

.student-front p {
    color: var(--mh-blue);
}

.student-back {
    background: linear-gradient(135deg, var(--mh-pink), var(--mh-purple));
    color: var(--white);
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.student-back h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.student-back p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.monster-icon {
    font-size: 4rem;
    margin-top: 20px;
    animation: bounce 1s infinite;
}

.student-highlights {
    margin-top: 35px;
}

.student-highlights h3 {
    color: var(--mh-pink);
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.7rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 15px;
}

.talent-card {
    background: rgba(139, 0, 255, 0.12);
    border: 1px solid rgba(139, 0, 255, 0.4);
    border-radius: 14px;
    padding: 18px;
}

.talent-card h4 {
    color: var(--mh-blue);
    margin-bottom: 8px;
}

.talent-card p {
    color: var(--mh-light);
}

/* Lista de asignaturas */
.subjects-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.subjects-section h3 {
    color: var(--mh-blue);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.monster-list {
    list-style: none;
    counter-reset: monster-counter;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--mh-black);
    border-radius: 10px;
    border-left: 4px solid var(--mh-pink);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
    transform: translateX(-50px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.list-item:hover {
    transform: translateX(10px);
    border-left-color: var(--mh-blue);
    box-shadow: var(--shadow-pink);
}

.list-item .number {
    background: var(--gradient-main);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    font-size: 1.2rem;
}

.list-item .text {
    flex: 1;
    font-size: 1.2rem;
}

.list-item .icon {
    font-size: 2rem;
}

/* ============================================
   TABLA ESTILIZADA
   ============================================ */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.monster-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--mh-black);
    border-radius: 15px;
    overflow: hidden;
}

.monster-table caption {
    color: var(--mh-pink);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.monster-table th {
    background: linear-gradient(135deg, var(--mh-pink), var(--mh-purple));
    color: var(--white);
    padding: 20px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.monster-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 0, 127, 0.2);
    transition: all 0.3s ease;
}

.monster-table tr:hover td {
    background: rgba(255, 0, 127, 0.1);
    color: var(--mh-pink);
}

.monster-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   SECCIÓN DE VIDEO
   ============================================ */
.video-section {
    margin: 40px 0;
}

.video-section h3 {
    color: var(--mh-blue);
    margin-bottom: 20px;
    text-align: center;
}

.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
}

.video-placeholder {
    background: linear-gradient(135deg, var(--mh-gray), var(--mh-black));
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--mh-blue);
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.6);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.5);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.video-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.video-iframe.hidden,
.video-placeholder.hidden {
    display: none;
}

/* Botones de enlaces */
.links-section {
    margin-top: 40px;
    text-align: center;
}

.links-section h3 {
    color: var(--mh-pink);
    margin-bottom: 20px;
}

.link-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn.pink {
    background: var(--mh-pink);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 0, 127, 0.4);
}

.link-btn.blue {
    background: var(--mh-blue);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.4);
}

.link-btn.purple {
    background: var(--mh-purple);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(139, 0, 255, 0.4);
}

.link-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.6);
}

.rules-box {
    margin-top: 35px;
    padding: 24px;
    border-radius: 15px;
    background: rgba(255, 0, 127, 0.08);
    border: 1px solid rgba(255, 0, 127, 0.35);
}

.rules-box h3 {
    color: var(--mh-blue);
    text-align: center;
    margin-bottom: 18px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 15px;
}

.rule-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.rule-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.faq-expediente {
    margin-top: 28px;
}

.faq-expediente h3 {
    color: var(--mh-pink);
    margin-bottom: 12px;
}

.faq-expediente details {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.faq-expediente summary {
    color: var(--mh-blue-light);
    font-weight: 700;
    cursor: pointer;
}

.faq-expediente p {
    margin-top: 8px;
    color: var(--mh-light);
}

/* ============================================
   FORMULARIO INTERACTIVO
   ============================================ */
.monster-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--mh-blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--mh-black);
    border: 2px solid rgba(255, 0, 127, 0.3);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mh-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    text-align: right;
    color: var(--mh-blue);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Radio buttons personalizados */
.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background: var(--mh-black);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--mh-pink);
    background: rgba(255, 0, 127, 0.1);
}

.radio-label input,
.checkbox-label input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--mh-pink);
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 5px;
}

.radio-label input:checked + .radio-custom {
    background: var(--mh-pink);
    box-shadow: 0 0 10px var(--mh-pink);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--mh-pink);
    border-color: var(--mh-pink);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--white);
    font-weight: bold;
}

.radio-text,
.checkbox-text {
    color: var(--mh-light);
    font-size: 1rem;
}

.terms-group {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 0, 127, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 127, 0.3);
}

.terms-link {
    color: var(--mh-blue);
    text-decoration: underline;
}

.enrollment-benefits {
    margin: 0 auto 30px;
    max-width: 900px;
    padding: 22px;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 14px;
}

.enrollment-benefits h3 {
    color: var(--mh-pink);
    margin-bottom: 10px;
}

.enrollment-benefits ul {
    list-style: none;
}

.enrollment-benefits li {
    margin-bottom: 8px;
    color: var(--mh-light);
}

.admission-steps {
    margin-top: 30px;
}

.admission-steps h3 {
    color: var(--mh-blue);
    text-align: center;
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.step-item {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 0, 127, 0.35);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.step-item span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-main);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 10px;
}

/* Botón de envío */
.btn-send {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--mh-pink), var(--mh-purple));
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.5);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-send:hover .btn-icon {
    transform: rotate(360deg);
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Mensaje de éxito */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.2), rgba(0, 191, 255, 0.2));
    border-radius: 20px;
    border: 2px solid var(--mh-pink);
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.success-message h3 {
    color: var(--mh-pink);
    font-size: 2rem;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--mh-light);
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--mh-black);
    border-top: 3px solid var(--mh-pink);
    padding: 60px 20px 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--mh-pink);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Creepster', cursive;
}

.footer-section p {
    color: var(--mh-light);
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--mh-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--mh-pink);
}

.social {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.social-link {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--mh-light);
}

.footer-bottom .small {
    color: var(--mh-blue-light);
    font-size: 0.9rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--mh-pink), var(--mh-blue));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--mh-blue), var(--mh-pink));
}

/* ============================================
   BOTON VOLVER ARRIBA
   ============================================ */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-main);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 0, 127, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 1100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 191, 255, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .glitch {
        font-size: 3.2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .floating-image {
        width: 170px;
        height: 170px;
    }

    .student-card {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 80px 16px;
    }

    .glitch {
        font-size: 2.4rem;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .nav-link {
        padding: 14px 16px;
        letter-spacing: 1px;
        font-size: 0.85rem;
    }

    .container {
        padding: 24px 14px;
    }

    .card {
        padding: 24px 18px;
        margin-bottom: 30px;
    }

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

    .text-content p,
    .monster-quote,
    .list-item .text {
        font-size: 1rem;
    }

    .list-item {
        padding: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .btn-send {
        padding: 16px;
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .link-btn {
        width: 100%;
        max-width: 340px;
        text-align: center;
    }

    .quick-stats,
    .highlight-grid,
    .rules-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .origin-timeline,
    .rules-box,
    .enrollment-benefits {
        padding: 18px;
    }

    .video-placeholder,
    .video-iframe {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.9rem;
    }

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

    .student-card {
        height: 350px;
    }

    .student-back {
        padding: 20px;
    }

    .student-back h3 {
        font-size: 1.6rem;
    }

    .footer {
        padding: 40px 16px 16px;
    }
}

/* ============================================
   ACCESIBILIDAD: MENOS MOVIMIENTO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .particle,
    .glitch,
    .skull-decoration,
    .floating-image,
    .monster-icon,
    .success-icon {
        animation: none !important;
    }
}