/* ================================
   PITIUPI PRESENTATION - SLIDE 7 STYLES
   Mega Cuadro Comparativo
   ================================ */

   .slide[data-slide="7"] {
    padding: 1rem !important;
}

.slide-7-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;
    padding-top: 3rem !important;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
}

/* ================================
   ANIMACIONES Y PASOS
   ================================ */
.slide[data-slide="7"] .step-1,
.slide[data-slide="7"] .step-2,
.slide[data-slide="7"] .step-3 {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Mostrar elementos */
.slide[data-slide="7"][data-step="1"] .step-1,
.slide[data-slide="7"][data-step="2"] .step-1,
.slide[data-slide="7"][data-step="3"] .step-1 { opacity: 1; pointer-events: auto; }

.slide[data-slide="7"][data-step="2"] .step-2,
.slide[data-slide="7"][data-step="3"] .step-2 { opacity: 1; pointer-events: auto; }

.slide[data-slide="7"][data-step="3"] .step-3 { opacity: 1; pointer-events: auto; }


/* Animación de filas en cascada (gestionado por CSS para el Step 2) */
.slide[data-slide="7"][data-step="2"] tr {
    animation: slideInRow 0.5s ease-out forwards;
}

/* Retrasos para efecto cascada */
.slide[data-slide="7"][data-step="2"] tr:nth-child(1) { animation-delay: 0.1s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(2) { animation-delay: 0.2s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(3) { animation-delay: 0.3s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(4) { animation-delay: 0.4s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(5) { animation-delay: 0.5s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(6) { animation-delay: 0.6s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(7) { animation-delay: 0.7s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(8) { animation-delay: 0.8s; }
.slide[data-slide="7"][data-step="2"] tr:nth-child(9) { animation-delay: 0.9s; }

@keyframes slideInRow {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ================================
   ESTILOS DE LA TABLA
   ================================ */
.comparison-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--primary);
}

.table-container {
    width: 100%;
    max-width: 1300px;
    overflow-x: auto; /* Scroll horizontal si es necesario en pantallas pequeñas */
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(51, 204, 0, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.mega-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #fff;
}

/* Headers */
.mega-table th {
    padding: 1.2rem;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #a0aec0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.col-feature { text-align: left !important; width: 18%; color: var(--primary) !important; }
.col-competitor { width: 15%; font-size: 0.9rem; }
.col-pitiupi { 
    width: 22%; 
    position: relative;
    background: rgba(51, 204, 0, 0.1);
    border-top: 2px solid var(--neon);
    border-left: 2px solid var(--neon);
    border-right: 2px solid var(--neon);
    border-radius: 15px 15px 0 0;
    overflow: visible;
}

.pitiupi-header-glow {
    position: absolute;
    top: -20px; left: 0; width: 100%; height: 50px;
    background: var(--neon);
    filter: blur(40px);
    opacity: 0.4;
    z-index: 0;
}

.th-logo {
    max-width: 140px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

/* Filas y Celdas */
.mega-table td {
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.feature-name {
    text-align: left !important;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.95rem;
    padding-left: 1rem !important;
}

/* Colores de Valores */
.val-bad { color: #ff4d4d; opacity: 0.7; font-size: 0.85rem; }
.val-neutral { color: #cbd5e0; opacity: 0.8; font-size: 0.85rem; }
.val-good { color: #48bb78; font-weight: 600; }

/* La Columna Estrella (PITIUPI) */
.val-pitiupi {
    background: rgba(51, 204, 0, 0.08); /* Fondo sutil verde */
    border-left: 2px solid var(--neon);
    border-right: 2px solid var(--neon);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(51, 204, 0, 0.5);
    position: relative;
}

/* Highlight especial para las características "Killer" */
.val-pitiupi-highlight {
    background: rgba(51, 204, 0, 0.2); /* Fondo más fuerte */
    border-left: 2px solid var(--neon);
    border-right: 2px solid var(--neon);
    color: var(--neon);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--neon);
}

/* Borde inferior de la columna PITIUPI */
.mega-table tr:last-child .val-pitiupi-highlight {
    border-bottom: 2px solid var(--neon);
    border-radius: 0 0 15px 15px;
}

/* Opacidad reducida para casinos */
.opacity-low { opacity: 0.5; }

/* ================================
   FRASE DE CIERRE
   ================================ */
.closing-phrase {
    text-align: center;
    margin-top: 1rem;
    animation: fadeUp 1s ease-out forwards;
}

.closing-phrase p {
    font-size: 1.5rem;
    color: #a0aec0;
    line-height: 1.4;
}

.closing-phrase span {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #fff, var(--neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .table-container { overflow-x: scroll; }
    .mega-table { min-width: 900px; } /* Forzar ancho para scroll */
}

@media (max-width: 768px) {
    .comparison-title { font-size: 1.8rem; }
    .col-feature { position: sticky; left: 0; background: #03002e; z-index: 10; border-right: 1px solid #333; }
    .val-pitiupi, .val-pitiupi-highlight { font-size: 0.9rem; }
    .closing-phrase p { font-size: 1.1rem; }
    .closing-phrase span { font-size: 1.4rem; }
}