:root {
    --bg-color: #080808;
    --accent-primary: #ff003c;
    --accent-secondary: #ffb700;
    --text-light: #f5f5f5;
    --text-dark: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
    /* Fondo oscuro estilo coliseo/batalla */
    background-image: radial-gradient(circle at center 30%, #2a0b16 0%, #000000 100%);
    min-height: 100vh;
}

.page-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0; /* Sin padding para tocar los bordes */
    z-index: 2;
    overflow-x: hidden; /* Para que se corten en los bordes */
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Utiliza la imagen de WhatsApp como fondo difuminado */
    background: url('WhatsApp Image 2026-05-18 at 01.12.16.jpeg') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    filter: blur(8px) grayscale(70%);
}

.header {
    text-align: center;
    margin-bottom: 0; /* Menos espacio */
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.info-logo {
    max-width: 90%;
    width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.9));
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.battles-container {
    display: flex;
    flex-direction: column;
    gap: 0; /* Sin espacio entre cosas */
    align-items: center;
    position: relative;
    width: 100%;
}

.battle-row {
    display: flex;
    justify-content: space-between; /* Bien contra los bordes */
    align-items: center;
    width: 100%;
    position: relative;
    transition: all 0.5s ease;
    margin: -1.5rem 0; /* Solapamiento más moderado para que no se pisen los textos */
}

/* Hacer que cada batalla esté por encima de la anterior */
.battle-row:nth-child(1) { z-index: 10; }
.battle-row:nth-child(2) { z-index: 20; }
.battle-row:nth-child(3) { z-index: 30; }
.battle-row:nth-child(4) { z-index: 40; }
.battle-row:nth-child(5) { z-index: 50; }
.battle-row:nth-child(6) { z-index: 60; }
.battle-row:nth-child(7) { z-index: 70; }

.battle-row.main-event {
    margin: 0 0 -1rem 0;
}

.competitor-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Hitbox: Asegurarnos de que el hitbox sea exacto al competidor */
    pointer-events: auto;
}

.competitor-wrapper.left {
    justify-content: flex-start; /* Pegado a la izquierda */
}
.competitor-wrapper.right {
    justify-content: flex-end; /* Pegado a la derecha */
}

.competitor-img {
    width: 100%;
    max-width: 45vw; /* Mucho más grandes, casi mitad de pantalla */
    height: auto;
    object-fit: cover;
    object-position: bottom;
    /* Efecto oscuro solicitado */
    filter: brightness(0.2) contrast(1.2) grayscale(0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Difuminado abajo para que no se vea el corte crudo */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

/* Ajustar el origen del scale para que crezcan desde su borde */
.competitor-wrapper.left .competitor-img {
    transform-origin: left bottom;
}
.competitor-wrapper.right .competitor-img {
    transform-origin: right bottom;
}

.main-event .competitor-img {
    max-width: 50vw; /* Aún más grandes para la final */
}

.name-tag {
    position: absolute;
    bottom: 30px;
    padding: 10px 25px;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    text-shadow: 3px 3px 6px #000, 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none;
    white-space: nowrap;
    z-index: 15; /* Asegura que el nombre siempre esté por encima de la imagen */
}

.competitor-wrapper.left .name-tag { 
    left: 20px; 
    background: linear-gradient(90deg, rgba(0,0,0,0.95), transparent); 
}
.competitor-wrapper.right .name-tag { 
    right: 20px; 
    background: linear-gradient(270deg, rgba(0,0,0,0.95), transparent); 
}

/* =========================================
   EL EFECTO DE HOVER SOLICITADO
   ========================================= */
.battle-row.active {
    z-index: 100; /* Pasa al frente de todo */
}

/* Cuando la fila está activa (hover en cualquiera de los dos competidores) */
.battle-row.active .competitor-img {
    /* Se exponen ambos rivales y crecen mucho más */
    filter: brightness(1.1) contrast(1.1) grayscale(0) drop-shadow(0 0 30px rgba(255, 0, 60, 0.6));
    transform: scale(1.2) translateY(-10px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

.battle-row.active .name-tag {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vs-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse; /* Pone el texto por encima del VS */
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    text-shadow: 0 0 15px rgba(255,0,0,0.2);
    opacity: 0.6;
    transition: all 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.battle-type {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    text-transform: uppercase;
    font-style: normal;
    -webkit-text-stroke: 0px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    margin-bottom: -10px; /* Ajustado por column-reverse */
    margin-top: 0;
}

.battle-row.active .vs-badge {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
    color: var(--text-light);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
}

.vs-badge.small {
    font-size: 3rem;
}

.vs-badge.small .battle-type {
    font-size: 0.9rem;
}

/* Título de la cartelera inferior */
.undercard-title {
    width: 100%;
    text-align: center;
    margin: 5rem 0 3rem;
    z-index: 10;
    position: relative;
}

.undercard-title h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--accent-primary);
}

.undercard-title .line {
    height: 4px;
    width: 200px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin: 0 auto;
    border-radius: 50%;
}

/* Footer & CTA */
.footer {
    margin-top: 6rem;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    z-index: 10;
    background: radial-gradient(ellipse at top, rgba(255,0,60,0.1) 0%, transparent 70%);
}

.cta-button {
    display: inline-block;
    position: relative;
    padding: 20px 60px;
    background: linear-gradient(45deg, #a00020, var(--accent-primary));
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(255, 0, 60, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(255, 0, 60, 0.6), 0 0 20px var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.cta-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.cta-button:hover .cta-shine {
    left: 150%;
}

.date-info {
    margin-top: 2.5rem;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-secondary);
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
}

/* Responsividad */
@media (max-width: 1024px) {
    .vs-badge { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .vs-badge { font-size: 2rem; padding: 0 10px; }
    .vs-badge.small { font-size: 1.5rem; }
    .name-tag { font-size: 1rem; padding: 5px 15px; bottom: 15px; } /* Ajustado para dar más espacio */
    .cta-button { padding: 15px 40px; font-size: 1.5rem; }
    .undercard-title h2 { font-size: 2rem; }
    .battle-row { margin: -0.5rem 0; }
}

@media (max-width: 480px) {
    .vs-badge { font-size: 1.5rem; padding: 0 5px; }
    .vs-badge.small { font-size: 1.2rem; }
    .battle-type { font-size: 0.8rem; margin-bottom: -5px; margin-top: 0; }
    .vs-badge.small .battle-type { font-size: 0.7rem; margin-bottom: 0px; margin-top: 0; }
    .name-tag { font-size: 0.8rem; padding: 5px 10px; bottom: 10px; } /* Más abajo y más pequeño */
    .undercard-title h2 { font-size: 1.5rem; }
    .cta-button { padding: 12px 30px; font-size: 1.2rem; }
    .date-info { font-size: 1.2rem; }
    .battle-row { margin: 0; } /* Sin solapamiento en móviles para no pisar textos */
    .battle-row.main-event { margin-bottom: 0.5rem; }
}
