/* Estilos base */
:root {
    --primario: rgb(37, 150, 190);
    --secundario: rgb(25, 102, 130);
    --terciario: rgb(173, 221, 240);
    
  }

body {
    font-family: "Quicksand";
    padding: 0%;
    background-color: white;
    color: white;
    margin-top: 0px;
}



.header_1 {
    position: fixed;
    top: 0;
    left: 5px;
    width: 100%;
    z-index: 9999;
    background-color: #fff;
}

.mobilemenu {
    display: none; /* Ocultar por defecto */
    cursor: pointer;
}

.mobilemenu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    flex-direction: row; /* Por defecto, horizontal */
    align-items: center;
    
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-menu ul li {
    margin: 1em 0;
}

.nav-menu ul li a {
    color: #1f355e;
    text-decoration: none;
    font-size: 1.2em;
}

footer {
    font-size: 9px;
    background-color: white;
    color: rgb(37 150 190 / 37%);
    text-align: center;
    padding: 1em 0;
    /* position: fixed; */
    height: 10px;
    width: 100%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mainmenu ul li a {
    font-family: "Quicksand", sans-serif;
    color: var(--secundario);
    display: block;
    line-height: 18px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-transform: none;
    text-decoration: none;
}

.mainmenu ul li {
    margin: 10px;
    padding: 10px 15px;
    list-style: none;
}

.mainmenu ul li.menu-item-has-children {
    position: relative;
}

.columna-img {
    width: 25%;
}

.columna-img img {
    max-width: 40%;
    height: auto;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero {
    font-family: "Quicksand", sans-serif;
    position: relative;
    width: 90%;
    height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    top: 120px;
    border-radius: 15px;
    align-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: column;
    margin: 10px auto auto auto;

}

.hero2{
    width: 100px;
}

.hero1 {
    font-family: "Quicksand", sans-serif;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
    top: 120px;
    flex-direction: row-reverse;
}


.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Hace que el video quede en el fondo */
}

.image-slider2 {
    width: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Para que la línea no se salga */
}

.slide_active{
    max-width: 450px;
    min-width: 150px;
    width: 100%;
    margin: 10px auto auto auto;
    border-radius: 15px;
    align-items: center;
    justify-content: center;

}

.text {
    font-size: 36px;
    width: 60%;
    position: relative;
    z-index: 2; /* Asegura que el texto quede por encima del video */
    text-align: left;
    color: white; /* Hace que el texto sea visible sobre el video */
    padding: 5%;
    border-radius: 10px;
}


.image-slider video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que se pixelee */
}

button {
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 10px;
    background: rgba(37, 150, 190, 0.5); /* Último valor (0.7) es la opacidad */
    height: 50px;
    color: #fefefe;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 2px solid rgb(37, 150, 190);
    cursor: pointer;
    transition: 0.3s ease all;
    outline: none;
    width: 231px;
    border-radius: 20px;
}

button:hover {
    background: var(--primario);
    transform: scale(1.15); /* Efecto sutil de agrandamiento */
    border: 1x solid var(--primario);
    color: white;
}

.button2 {
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 10px;
    background: rgb(255, 255, 255, 0.5);
    height: 50px;
    color: #013e6a;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1x solid #013e6a;
    cursor: pointer;
    transition: 0.3s ease all;
    outline: none;
    width: 231px;
    border-radius: 20px;
}

.button2:hover {
    background: white;
    transform: scale(1.15); /* Efecto sutil de agrandamiento */
    border: 1x solid var(--secundario);
    color: var(--secundario);
}

#compartirQrButton {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background-color: rgb(37, 150, 190, 0.50);
    border: none;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.492);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    padding: 0;
    min-width: 5px;
}

#compartirQrButton svg {
    width: 30px; /* Ajusta el tamaño del ícono */
    height: 30px;
    fill: #fff; /* Color del ícono */
}

.header_1 {
    position: fixed;
    top: 0;
    width: 100%;
    transition: top 0.3s ease;
    z-index: 1000;
}

.header_1.hide {
    top: -110px; /* ocultamos el header desplazándolo hacia arriba */
}

.text2 {
    font-size: 24px;
    position: relative;
    z-index: 2; /* Asegura que el texto quede por encima del video */
    text-align: left;
    color: var(--secundario); /* Hace que el texto sea visible sobre el video */
    border-radius: 10px;
    padding: 80px 0px 80px 40%;
}

.text5 {
    width: 100%;
    color: var(--secundario); /* Hace que el texto sea visible sobre el video */
    text-align: center;
}

.text2 button {
    text-align: center;
}

.text3 {
    font-size: 24px;
    position: relative;
    z-index: 2; /* Asegura que el texto quede por encima del video */
    text-align: right;
    color: var(--secundario); /* Hace que el texto sea visible sobre el video */
    border-radius: 10px;
    padding: 80px 40% 80px 0px;

    
}

.text3 button {
    display: inline-block; /* o inline */
    text-align: left;
}


.scanner-line {
    position: absolute;
    top: -100%;
    align-items: center;
    width: 100%;
    height: 4px;
    background: red;
    box-shadow: 0 0 15px red;
    animation: scanMove 3s linear infinite;
    z-index: 3;
    border-radius: 100%;
    cursor: pointer;

}


.mano-click {
    position: absolute;
    top: 120%; /* Empieza fuera de pantalla */
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    opacity: 0;
    pointer-events: none; /* No bloquea clics reales */
    transition: top 0.5s ease, opacity 0.5s ease;
}

/* Estado cuando entra a hacer clic */
.mano-click.entrando {
    top: 35%; /* O donde esté tu botón */
    right: 6%;
    opacity: 1;
}


/* Estado cuando sale después de clic */
.mano-click.saliendo {
    top: 120%; /* Vuelve a salir */
    opacity: 0;
}


@keyframes scanMove {
    0% {
        top: -5%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        top: 50%;
        opacity: 0.6;
    }
    100% {
        top: 105%;
        opacity: 0;
    }
}


        /* Escena 3D */
        .escena {
            position: fixed;
            top: 50%;
            left: 50%;
            width: 300px;
            height: 600px;
            transform-style: preserve-3d;
            perspective: 2500px;
            transform: translate(-50%, -50%);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .escena.visible {
            opacity: 1;
        }

        /* Modelo 3D del iPhone */
        .iphone-3d {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
            border-radius: 50px;
        }

        /* Efecto de reflejo durante la animación */
        .iphone-3d::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
            opacity: 0;
            border-radius: 50px;
            animation: reflectAnimation 0.8s ease-in-out;
        }

        /* Caras del iPhone */
        .iphone-face {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50px;
            backface-visibility: visible;
            overflow: hidden;
        }

        /* Cara frontal */
        .front {
            background: #000;
            transform: translateZ(10px);
            box-shadow: 0 0 20px rgba(0,0,0,0.3);
        }

        /* Pantalla */
        .pantalla {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            bottom: 10px;
            background: #000;
            border-radius: 40px;
            overflow: hidden;
        }

        .pantalla img, .pantalla video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Notch */
        .notch {
            position: absolute;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 28px;
            background: #000;
            border-radius: 20px 20px 20px 20px;
            z-index: 10;
        }

        /* Cara trasera */
        .back {
            background: 
                linear-gradient(160deg, #2a2a2c 0%, #1a1a1c 50%, #0d0d0e 100%);
            transform: rotateY(180deg) translateZ(10px);
            position: relative;
            overflow: hidden;
            box-shadow: 
                0 0 30px rgba(0,0,0,0.5),
                inset 0 0 0 1px rgba(255,255,255,0.03);
        }
        
        /* Efecto de vidrio mate/texturizado */
        .back::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 30%, 
                    rgba(255,255,255,0.02) 0%, 
                    transparent 40%),
                repeating-linear-gradient(
                    45deg,
                    rgba(255,255,255,0.01) 0px,
                    rgba(255,255,255,0.01) 1px,
                    transparent 1px,
                    transparent 4px);
            z-index: 1;
        }
        
        /* Módulo de cámara mejorado */
        .camera-module {
            position: absolute;
            top: 40px;
            left: 25%;
            transform: translateX(-50%);
            width: 120px;
            height: 120px;
            background: #0a0a0a;
            border-radius: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 
                0 0 0 1px rgba(255,255,255,0.05),
                inset 0 0 10px rgba(0,0,0,0.8);
            z-index: 2;
        }
        
        /* Lentes de cámara profesionales */
        .camera-lens {
            width: 28px;
            height: 28px;
            background: #050505;
            border-radius: 50%;
            position: relative;
            margin: 0 5px;
            box-shadow: 
                0 0 0 1px rgba(255,255,255,0.03),
                inset 0 0 15px rgba(0,0,0,0.9);
        }
        
        /* Lente principal (más grande) */
        .camera-lens.main {
            width: 32px;
            height: 32px;
        }
        
        /* Efecto de cristal en las lentes */
        .camera-lens::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            right: 2px;
            bottom: 2px;
            background: radial-gradient(
                circle at 30% 30%, 
                rgba(100,100,100,0.3) 0%, 
                rgba(0,0,0,0.8) 70%);
            border-radius: 50%;
            box-shadow: 
                inset 0 0 5px rgba(255,255,255,0.1);
        }
        
        /* Flash y sensores */
        .camera-flash {
            position: absolute;
            bottom: 15px;
            right: 15px;
            width: 12px;
            height: 12px;
            background: #1a1a1a;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.05);
            z-index: 2;
        }
        
        /* Texto "iPhone" en la parte inferior */
        .iphone-brand {
            position: absolute;
            bottom: 25px;
            left: 0;
            right: 0;
            text-align: center;
            color: rgba(255,255,255,0.3);
            font-size: 10px;
            font-family: 'SF Pro Display', sans-serif;
            letter-spacing: 1px;
            z-index: 2;
        }

        /* Bordes */
        /* Ajustes específicos para los bordes */
        .top, .bottom, .left-side, .right-side {
            /* Reducir ligeramente el tamaño para que no sobresalgan */
            width: calc(10% - 12px);
            height: calc(10% - 12px);
            /* Asegurar que están detrás de las caras principales */
            z-index: -1;
            /* Suavizar transiciones */
            transition: all 0.3s ease;
        }

        .top, .bottom {
            width: 72%;
            height: 20px;
            left: 15%;
            transform-origin: center;
        }

        .top {
            top: -10px;
            transform: rotateX(90deg);
            border-radius: 10px 10px 0 0;
            background-color: rgb(0, 0, 0);

        }

        .bottom {
            bottom: -10px;
            transform: rotateX(90deg);
            border-radius: 0 0 10px 10px;
            background-color: rgb(0, 0, 0);

        }

        .left-side, .right-side {
            width: 20px;
            height: 85%;
            top: 8%;
            transform-origin: center;
            
        }

        .left-side {
            left: -10px;
            transform: rotateY(90deg);
            background-color: rgb(0, 0, 0);

        }

        .right-side {
            right: -10px;
            transform: rotateY(90deg);
            background-color: rgb(0, 0, 0);
        }
        

        
        .corner-top-left {
            top: -10px;
            left: -10px;
            transform: rotateY(90deg) rotateX(10deg);
        }
        
        .corner-top-right {
            top: -10px;
            right: -10px;
        }
        
        .corner-bottom-left {
            bottom: -10px;
            left: -10px;
        }
        
        .corner-bottom-right {
            bottom: -10px;
            right: -10px;
        }


        /* Botones laterales */
        .power-button, .volume-buttons {
            position: absolute;
            background: #ffffff;
            border-radius: 3px;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
        }

        .power-button {
            right: -5px;
            top: 100px;
            width: 5px;
            height: 60px;
            transform: rotateY(90deg);
        }

        .volume-buttons {
            right: -5px;
            top: 180px;
            width: 5px;
            height: 100px;
            transform: rotateY(90deg);
        }

        /* Posiciones laterales */
        .escena.left {
            left: 20%;
        }
        
        .escena.right {
            left: 80%;
        }

        .escena.animar-out .iphone-3d {
            animation: flipToBack 0.5s forwards;
        }
        
        .escena.animar-in .iphone-3d {
            animation: flipToFront 0.9s forwards;
        }

        /* Nuevas animaciones */
        @keyframes flipToBack {
            0% {
                transform: rotateY(0) translateZ(0);
                filter: brightness(1) drop-shadow(0 0 5px rgba(0,0,0,0.3));
                opacity: 1;
            }
            30% {
                transform: rotateY(60deg) translateZ(-30px) scale(0.95);
                filter: brightness(0.7) drop-shadow(0 0 15px rgba(0,0,0,0.5));
            }
            50% {
                transform: rotateY(90deg) translateZ(-50px) scale(0.9);
                filter: brightness(0.5) drop-shadow(0 0 20px rgba(0,0,0,0.2));
                opacity: 0.8;
            }
            80% {
                transform: rotateY(150deg) translateZ(-30px) scale(0.95);
                filter: brightness(0.7) drop-shadow(0 0 15px rgba(0,0,0,0.5));
            }
            100% {
                transform: rotateY(180deg) translateZ(0) scale(1);
                filter: brightness(1) drop-shadow(0 0 5px rgba(0,0,0,0.3));
                opacity: 1;
            }
        }

        @keyframes reflectAnimation {
            30%, 80% {
                opacity: 0.3;
            }
            0%, 100% {
                opacity: 0;
            }
        }

        /* Añadir perspectiva y ajustes de timing */
.iphone-container {
    perspective: 2500px;
    transform-style: preserve-3d;
    animation-timing-function: cubic-bezier(0.4, 0.1, 0.2, 1);
}



.grafica-linea {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* <-- Más grande */
    height: 150px; /* <-- Más grande */
    z-index: 5;
    overflow: visible;
}

.grafica-linea polyline {
    stroke-dasharray: 1500; /* <-- También aumentamos aquí */
    stroke-dashoffset: 1500;
    animation: dibujarLinea 2.5s ease-in-out infinite alternate;
}

@keyframes dibujarLinea {
    to {
        stroke-dashoffset: 0;
    }
}

.flecha-descarga {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: var(--primario);
    animation: moverFlecha 1.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes moverFlecha {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 20px);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Responsive para pantallas    pequeñas */
@media (max-width: 934px) {

    body {
        font-family: "Quicksand", sans-serif;
        padding: 5px;
        background-color: white;
        color: white;
        font-size: 112px;
    }

    .text {
        font-size: 18px;
    }

    .text2{
        font-size: 14px;
        width: 50%;
    }
    .text3{
        font-size: 14px;
        width: 50%;

    }

    .header_1 {
        position: fixed;
        z-index: 9999;
        background-color: #fff;
        top: 0px;
        left: 10px;
        width: 100%;
        height: 120px;
    }

    .nav-menu {
        z-index: 10; /* Asegura que el menú siempre esté al frente */
    }
    .row {
        padding:  0px 25px 0px 0px;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    .mainmenu ul {
        display: none; /* Ocultar menú por defecto */
        flex-direction: column;
    }

    .columna-img {
        width: 25%;
    }
    

    .columna-img img {
        max-width: 70%;
        height: auto;
    }

    .nav-menu.open ul {
        display: flex; /* Mostrar menú al abrir */
    }

    .mobilemenu {
        display: block; /* Mostrar el botón de menú de hamburguesa */
    }

    .nav-menu {
        display: none; /* Ocultar menú por defecto */
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #fff;
        position: absolute;
        left: 0;
        padding: 20px 0;
    }

    .nav-menu.open {
        display: flex; /* Mostrar menú al abrir */
        top: 0px;
    }

    .nav-menu ul {
        width: 100%;
        text-align: center;
    }

    .nav-menu ul li {
        margin: 10px 0;
    }

    .nav-menu ul li a {
        color: #1f355e;
        text-decoration: none;
        font-size: 1.2em;
    }

    .hero1 {
        font-family: "Quicksand", sans-serif;
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: white;
        top: 120px;
        flex-direction: column;
    }

    #gestorPagosSection{
        flex-direction: column-reverse;
    }

    .image-slider2 {
        width: 60%;
    }
    

            /* Escena 3D */
            .escena {
                position: fixed;
                top: 50%;
                left: 50%;
                width: 150px;
                height: 310px;
                transform-style: preserve-3d;
                perspective: 1500px;
                transform: translate(-50%, -50%);
                z-index: 1000;
                opacity: 0;
                transition: opacity 0.5s ease;
            }
    
            .escena.visible {
                opacity: 1;
            }
    
            /* Modelo 3D del iPhone */
            .iphone-3d {
                position: relative;
                width: 100%;
                height: 100%;
                transform-style: preserve-3d;
                transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
                border-radius: 5px;
            }
    
            /* Efecto de reflejo durante la animación */
            .iphone-3d::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
                opacity: 0;
                border-radius: 20px;
                animation: reflectAnimation 0.8s ease-in-out;
            }
    
            /* Caras del iPhone */
            .iphone-face {
                position: absolute;
                width: 100%;
                height: 100%;
                border-radius: 35px;
                backface-visibility: visible;
                overflow: hidden;
            }
    
            /* Cara frontal */
            .front {
                background: #000;
                transform: translateZ(10px);
                box-shadow: 0 0 20px rgba(0,0,0,0.3);
            }
    
            /* Pantalla */
            .pantalla {
                position: absolute;
                top: 6.5px;
                left: 6.5px;
                right: 6.5px;
                bottom: 6.5px;
                background: #000;
                border-radius: 25px;
                overflow: hidden;
            }
    
            .pantalla img, .pantalla video {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
    
            /* Notch */
            .notch {
                position: absolute;
                top: 12px;
                left: 50%;
                transform: translateX(-50%);
                width: 45px;
                height: 12px;
                background: #000;
                border-radius: 20px 20px 20px 20px;
                z-index: 10;
            }
    
            /* Cara trasera */
            .back {
                background: 
                    linear-gradient(160deg, #2a2a2c 0%, #1a1a1c 50%, #0d0d0e 100%);
                transform: rotateY(180deg) translateZ(10px);
                position: relative;
                overflow: hidden;
                box-shadow: 
                    0 0 30px rgba(0,0,0,0.5),
                    inset 0 0 0 1px rgba(255,255,255,0.03);
            }
            
            /* Efecto de vidrio mate/texturizado */
            .back::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: 
                    radial-gradient(circle at 20% 30%, 
                        rgba(255,255,255,0.02) 0%, 
                        transparent 40%),
                    repeating-linear-gradient(
                        45deg,
                        rgba(255,255,255,0.01) 0px,
                        rgba(255,255,255,0.01) 1px,
                        transparent 1px,
                        transparent 4px);
                z-index: 1;
            }
            
            /* Módulo de cámara mejorado */
            .camera-module {
                position: absolute;
                top: 40px;
                left: 25%;
                transform: translateX(-50%);
                width: 120px;
                height: 120px;
                background: #0a0a0a;
                border-radius: 24px;
                display: flex;
                justify-content: center;
                align-items: center;
                box-shadow: 
                    0 0 0 1px rgba(255,255,255,0.05),
                    inset 0 0 10px rgba(0,0,0,0.8);
                z-index: 2;
            }
            
            /* Lentes de cámara profesionales */
            .camera-lens {
                width: 28px;
                height: 28px;
                background: #050505;
                border-radius: 50%;
                position: relative;
                margin: 0 5px;
                box-shadow: 
                    0 0 0 1px rgba(255,255,255,0.03),
                    inset 0 0 15px rgba(0,0,0,0.9);
            }
            
            /* Lente principal (más grande) */
            .camera-lens.main {
                width: 32px;
                height: 32px;
            }
            
            /* Efecto de cristal en las lentes */
            .camera-lens::after {
                content: '';
                position: absolute;
                top: 2px;
                left: 2px;
                right: 2px;
                bottom: 2px;
                background: radial-gradient(
                    circle at 30% 30%, 
                    rgba(100,100,100,0.3) 0%, 
                    rgba(0,0,0,0.8) 70%);
                border-radius: 50%;
                box-shadow: 
                    inset 0 0 5px rgba(255,255,255,0.1);
            }
            
            /* Flash y sensores */
            .camera-flash {
                position: absolute;
                bottom: 15px;
                right: 15px;
                width: 12px;
                height: 12px;
                background: #1a1a1a;
                border-radius: 50%;
                border: 1px solid rgba(255,255,255,0.05);
                z-index: 2;
            }
            
            /* Texto "iPhone" en la parte inferior */
            .iphone-brand {
                position: absolute;
                bottom: 25px;
                left: 0;
                right: 0;
                text-align: center;
                color: rgba(255,255,255,0.3);
                font-size: 10px;
                font-family: 'SF Pro Display', sans-serif;
                letter-spacing: 1px;
                z-index: 2;
            }
    
            /* Bordes */
            /* Ajustes específicos para los bordes */
            .top, .bottom, .left-side, .right-side {
                /* Reducir ligeramente el tamaño para que no sobresalgan */
                width: calc(10% - 12px);
                height: calc(10% - 12px);
                /* Asegurar que están detrás de las caras principales */
                z-index: -1;
                /* Suavizar transiciones */
                transition: all 0.3s ease;
            }
    
            .top, .bottom {
                width: 72%;
                height: 20px;
                left: 15%;
                transform-origin: center;
            }
    
            .top {
                top: -5px;
                transform: rotateX(90deg);
                border-radius: 10px 10px 0 0;
                background-color: rgb(0, 0, 0);
    
            }
    
            .bottom {
                bottom: -5px;
                transform: rotateX(90deg);
                border-radius: 0 0 10px 10px;
                background-color: rgb(0, 0, 0);
    
            }
    
            .left-side, .right-side {
                width: 15px;
                height: 80%;
                top: 8%;
                transform-origin: center;
                
            }
    
            .left-side {
                left: -0px;
                transform: rotateY(90deg);
                background-color: rgb(0, 0, 0);
    
            }
    
            .right-side {
                right: -0px;
                transform: rotateY(90deg);
                background-color: rgb(0, 0, 0);
            }
            
    
            
            .corner-top-left {
                top: -10px;
                left: -10px;
                transform: rotateY(90deg) rotateX(10deg);
            }
            
            .corner-top-right {
                top: -10px;
                right: -10px;
            }
            
            .corner-bottom-left {
                bottom: -10px;
                left: -10px;
            }
            
            .corner-bottom-right {
                bottom: -10px;
                right: -10px;
            }
    
    
            /* Botones laterales */
            .power-button, .volume-buttons {
                position: absolute;
                background: #ffffff;
                border-radius: 3px;
                box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
            }
    
            .power-button {
                right: -5px;
                top: 100px;
                width: 5px;
                height: 60px;
                transform: rotateY(90deg);
            }
    
            .volume-buttons {
                right: -5px;
                top: 180px;
                width: 5px;
                height: 100px;
                transform: rotateY(90deg);
            }
    
            /* Posiciones laterales */
            .escena.left {
                left: 20%;
            }
            
            .escena.right {
                left: 80%;
            }
    
            .escena.animar-out .iphone-3d {
                animation: flipToBack 0.5s forwards;
            }
            
            .escena.animar-in .iphone-3d {
                animation: flipToFront 0.9s forwards;
            }

            .text5 {
                width: 100%;
                color: var(--secundario); /* Hace que el texto sea visible sobre el video */
                text-align: center;
                font-size: 10px;
            }


            button {
                font-family: "Quicksand", sans-serif;
                font-size: 14px;
                border-radius: 8px;
                margin-top: 10px;
                background: rgba(37, 150, 190, 0.5);
                height: 50px;
                color: #fefefe;
                padding: 10px 20px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                border: 2px solid rgb(37, 150, 190);
                cursor: pointer;
                transition: 0.3s ease all;
                outline: none;
                width: 151px;
                border-radius: 20px;
            }

            .button2{
                width: 151px;
            }
}

