/* ================================
   PITIUPI PRESENTATION - SLIDE 2 STYLES
   Diapositiva interactiva COMPACTA - AJUSTE DE TAMAÑO Y ESPACIADO
   ================================ */

/* ================================
   SLIDE 2 - CONFIGURACIÓN
   ================================ */

   .slide[data-slide="2"] {
    cursor: pointer;
    padding: 1rem !important;
}

.slide[data-slide="2"] .slide-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important; 
    width: 100% !important;
    height: 100% !important;
    padding-top: 5rem !important; 
    gap: 0 !important; 
}

/* ================================
   OCULTACIÓN DE PASOS
   ================================ */

.slide[data-slide="2"] .step-1,
.slide[data-slide="2"] .step-3,
.slide[data-slide="2"] .step-4 {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.slide[data-slide="2"][data-step="1"] .step-1,
.slide[data-slide="2"][data-step="2"] .step-1,
.slide[data-slide="2"][data-step="3"] .step-1,
.slide[data-slide="2"][data-step="4"] .step-1 {
    display: block !important;
    pointer-events: auto !important;
}

.slide[data-slide="2"][data-step="3"] .step-3,
.slide[data-slide="2"][data-step="4"] .step-3 {
    display: block !important;
    pointer-events: auto !important;
}

.slide[data-slide="2"][data-step="4"] .step-4 {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ================================
   PASO 1: PREGUNTA CENTRADA
   ================================ */

.slide[data-slide="2"][data-step="1"] .step-1 {
    animation: appearCenter 0.6s ease-out forwards;
    transform-origin: center center;
    margin-top: 15vh; 
}

@keyframes appearCenter {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   PASO 2: PREGUNTA SUBE (AHORA MÁS GRANDE)
   ================================ */

.slide[data-slide="2"][data-step="2"] .step-1,
.slide[data-slide="2"][data-step="3"] .step-1,
.slide[data-slide="2"][data-step="4"] .step-1 {
    animation: moveToTitleSlide2 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes moveToTitleSlide2 {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        margin-top: 15vh;
    }
    100% {
        opacity: 1;
        /* CAMBIO: Escala 0.8 (antes 0.6) para que sea más grande.
           Sube menos (-40px) para no salirse de la pantalla. */
        transform: translateY(-40px) scale(0.8); 
        margin-top: -50px; 
    }
}

/* ================================
   PASO 3: RESPUESTA APARECE
   ================================ */

.slide[data-slide="2"][data-step="3"] .step-3,
.slide[data-slide="2"][data-step="4"] .step-3 {
    animation: answerAppearSlide2 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes answerAppearSlide2 {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================
   TEXTO DE RESPUESTA
   ================================ */

.answer-text {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    z-index: 15;
    position: relative;
    
    /* CAMBIO: Margen aún más negativo para pegar la respuesta al título */
    margin-top: -5rem !important; 
    margin-bottom: 0; 
}

.answer-text .highlight {
    font-size: 4.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(51, 204, 0, 0.6));
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ================================
   GRID HORIZONTAL DE ÍCONOS
   ================================ */

.icon-grid-interactive {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 6rem !important;
    
    margin-top: 6rem !important; 
    
    width: 100% !important;
    max-width: 900px !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ================================
   ÍTEM INTERACTIVO
   ================================ */

.icon-item-interactive {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    animation: iconPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.icon-item-interactive:nth-child(1) { animation-delay: 0.1s; }
.icon-item-interactive:nth-child(2) { animation-delay: 0.2s; }
.icon-item-interactive:nth-child(3) { animation-delay: 0.3s; }
.icon-item-interactive:nth-child(4) { animation-delay: 0.4s; }

@keyframes iconPopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotateY(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

/* ================================
   WRAPPER DEL ÍCONO (COMPACTO)
   ================================ */

.icon-wrapper {
    background: rgba(3, 0, 46, 0.7);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 1rem;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(51, 204, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.icon-item-interactive:hover .icon-wrapper::before {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icon-item-interactive:hover .icon-wrapper {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--neon);
    box-shadow: 
        0 15px 35px rgba(51, 204, 0, 0.5),
        0 0 40px rgba(57, 255, 20, 0.4);
}

.icon-wrapper .icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 0 10px currentColor);
    transition: transform 0.3s ease;
}

.icon-item-interactive:hover .icon {
    transform: scale(1.1) rotateZ(5deg);
}

.icon-wrapper .icon-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    text-shadow: 0 0 8px rgba(51, 204, 0, 0.5);
    line-height: 1.1;
}

/* ================================
   REVELACIÓN DE PRECIO (ARRIBA DEL ÍCONO)
   ================================ */

.price-reveal {
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 1.2rem;
    background: rgba(3, 0, 46, 0.95); 
    border: 1px solid var(--neon);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    min-width: 130px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 10px 30px rgba(51, 204, 0, 0.4),
        0 0 40px rgba(57, 255, 20, 0.3);
    z-index: 100;
}

.price-reveal::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--neon) transparent transparent transparent;
}

.icon-item-interactive.revealed .price-reveal {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    animation: priceRevealBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes priceRevealBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.5);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.price-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.2rem;
    text-shadow: 
        0 0 15px rgba(57, 255, 20, 1),
        0 0 30px rgba(51, 204, 0, 0.8);
    line-height: 1;
}

.price-desc {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 212, 255, 0.9);
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
    line-height: 1;
}

/* ================================
   CLICK INDICATOR
   ================================ */

.slide[data-slide="2"] .click-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    animation: pulseIndicator 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(51, 204, 0, 0.6);
}

.slide[data-slide="2"][data-step="4"] .click-indicator {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulseIndicator {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.click-arrow {
    font-size: 1.2rem;
    animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .icon-grid-interactive {
        gap: 1rem !important;
        margin-top: 5rem !important;
    }
    
    .icon-wrapper {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .slide[data-slide="2"] .slide-content-wrapper {
        padding-top: 4rem !important; 
    }

    .answer-text {
        font-size: 1.2rem;
        /* CAMBIO: Margen negativo fuerte en móviles también */
        margin-top: -3.5rem !important;
    }
    
    .answer-text .highlight {
        font-size: 1.8rem;
    }
    
    .icon-grid-interactive {
        flex-wrap: wrap !important;
        gap: 1rem !important;
        max-width: 400px !important;
        margin-top: 3rem !important; 
        justify-content: center !important;
    }
    
    .icon-wrapper {
        width: 80px;
        height: 80px;
        padding: 0.8rem;
    }
    
    .icon-wrapper .icon {
        font-size: 2rem;
    }
    
    .icon-wrapper .icon-label {
        font-size: 0.65rem;
    }
    
    .price-reveal {
        min-width: 90px;
        padding: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .price-amount {
        font-size: 0.9rem;
    }
    
    .price-desc {
        font-size: 0.6rem;
    }
    
    @keyframes moveToTitleSlide2 {
        0% { margin-top: 15vh; }
        100% {
            /* CAMBIO: Escala más grande en versión móvil (0.75 en vez de 0.5) */
            transform: translateY(-10px) scale(0.75);
            margin-top: 0;
        }
    }
}