/* ================================
   PITIUPI PRESENTATION - SLIDE 9 STYLES
   Hologram Flow (Proyección 3D)
   ================================ */

   .slide[data-slide="9"] {
    padding: 1rem !important;
}

.slide-9-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    perspective: 1500px; /* Profundidad 3D esencial */
}

/* ================================
   TEXTOS
   ================================ */
.flow-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(-20px);
}

.flow-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 3rem;
    opacity: 0;
}

/* Animaciones de entrada */
.slide[data-slide="9"][data-step="1"] .step-1,
.slide[data-slide="9"][data-step="2"] .step-1,
.slide[data-slide="9"][data-step="3"] .step-1 { opacity: 1; transform: translateY(0); transition: all 0.6s ease; }

.slide[data-slide="9"][data-step="2"] .step-2,
.slide[data-slide="9"][data-step="3"] .step-2 { opacity: 1; transition: all 0.6s ease 0.2s; }

.slide[data-slide="9"][data-step="3"] .hologram-grid { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ================================
   GRID DE HOLOGRAMAS
   ================================ */
.hologram-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    flex-wrap: wrap;
}

/* ================================
   TARJETA CONTENEDORA (Escenario)
   ================================ */
.holo-card {
    position: relative;
    width: 180px;
    height: 280px;
    display: flex;
    align-items: flex-end; /* Alineamos al fondo para rotar desde ahí */
    justify-content: center;
    transform-style: preserve-3d;
}

/* ================================
   BASE (La Ficha que se acuesta)
   ================================ */
.holo-base {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(145deg, rgba(3, 0, 46, 0.9), rgba(0, 0, 20, 0.95));
    border: 2px solid var(--primary);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform-origin: bottom center; /* Clave: rota desde abajo */
}

.holo-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px var(--neon));
    transition: transform 0.4s;
}

.holo-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

/* INTERACCIÓN: HOVER EN LA TARJETA */
.holo-card:hover .holo-base {
    transform: rotateX(75deg) scale(0.9); /* Se acuesta hacia atrás */
    border-color: var(--neon);
    box-shadow: 0 50px 50px rgba(57, 255, 20, 0.2);
    background: rgba(3, 0, 46, 0.95);
}

.holo-card:hover .holo-icon {
    transform: rotateX(-75deg) translateY(-20px) scale(0.8); /* Contrarresta rotación para verse 3D */
    opacity: 0.5;
}

.holo-card:hover .holo-label {
    opacity: 0; /* Ocultamos texto al acostarse para limpiar la base */
}

/* ================================
   PROYECCIÓN (El Teléfono)
   ================================ */
.holo-projection {
    position: absolute;
    bottom: 20px;
    width: 160px; /* Tamaño celular */
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    transform-style: preserve-3d;
    z-index: 5;
}

/* HAZ DE LUZ (Beam) */
.projection-beam {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 0;
    background: linear-gradient(to top, rgba(57, 255, 20, 0.4), transparent);
    clip-path: polygon(20% 100%, 80% 100%, 100% 0, 0 0);
    opacity: 0;
    transition: all 0.4s ease;
    filter: blur(5px);
}

.holo-card:hover .projection-beam {
    height: 250px;
    opacity: 1;
}

/* PANTALLA DEL CELULAR */
.phone-screen {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(100px) scale(0.5); /* Empieza abajo y pequeño */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

/* ESTADO HOVER: El teléfono sube */
.holo-card:hover .phone-screen {
    transform: translateY(-80px) scale(1); /* Sube y crece */
    opacity: 1;
    border-color: var(--neon);
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.6);
    z-index: 20;
}

/* MOCKUP INTERFAZ TELEGRAM (Para que se vea bien sin imágenes reales aún) */
.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40%; height: 15px;
    background: #000;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.screen-content {
    width: 100%; height: 100%;
    background: #0e1621; /* Fondo oscuro Telegram */
    padding: 25px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    /* SI TIENES IMÁGENES REALES: Descomenta esto y pon tu URL */
    /* background-image: url('ruta/a/tu/captura.png'); */
    /* background-size: cover; */
}

/* Elementos simulados del chat (Burbujas) */
.chat-bubble {
    background: #182533;
    color: #fff;
    padding: 8px;
    border-radius: 10px 10px 10px 0;
    font-size: 0.7rem;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-btn {
    background: #2b5278; /* Azul Telegram */
    color: #fff;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
    margin-top: auto; /* Empuja al fondo */
    margin-bottom: 10px;
}

/* Colores específicos para cada paso simulado */
.bg-telegram-1 .chat-btn { background: var(--primary); }
.bg-telegram-5 .chat-bubble:first-child { color: var(--neon); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .hologram-grid { gap: 1rem; }
    .holo-card { width: 140px; height: 220px; }
    .holo-base { height: 180px; }
}

@media (max-width: 768px) {
    .slide[data-slide="9"] { overflow-y: auto; } /* Permitir scroll si no caben */
    .hologram-grid { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 2rem; 
        padding-bottom: 6rem;
    }
    .holo-card { width: 130px; height: 180px; }
    
    /* En móvil, hacemos el efecto un poco más sutil */
    .holo-card:hover .phone-screen {
        transform: translateY(-40px) scale(1.1);
    }
}


/* Estilo para las imágenes reales dentro del teléfono */
.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la imagen cubra todo el espacio sin deformarse */
    display: block;
    position: relative;
    z-index: 1; /* Detrás del notch */
}

/* Ajuste opcional para el Notch si tapa algo importante */
.phone-notch {
    z-index: 10; /* Aseguramos que el notch esté siempre encima de la foto */
    background: #000; /* Color negro puro */
}