#marcos-list .marco-preview {
    width: 80px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

#marcos-list .marco-preview:hover {
    transform: scale(1.1);
}

/* Bandera seleccionada */
.marco-preview.selected {
    border: 3px solid #fff;
    /* Borde blanco o del color que prefieras */
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    z-index: 2;
}

#marcos-list .marco-preview span {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: white;
    font-family: 'espiritu-condensed', sans-serif;
    font-size: 1.5rem;
}

.red-social {
    text-decoration: none;
    color: white;
}

.red-social:hover {
    text-decoration: underline;
}

/* #marco-superpuesto {
    pointer-events: none;
} */

#marco-superpuesto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#photo-wrapper {
    position: relative;
    width: 100%;
    /* max-width: 500px; */
    aspect-ratio: 4 / 5;
    /* Relación vertical */
    margin: auto;
    background: #000;
    overflow: hidden;
}

#photo-wrapper::before {
    content: "";
    display: block;
    padding-top: 125%;
    /* 1080 / 1350 = 0.8 → 1 / 0.8 = 125% */
}


#photo-wrapper video,
#photo-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#photo-wrapper #user-photo,
#photo-wrapper #video {
    z-index: 1;
}

#photo-wrapper #marco-superpuesto {
    z-index: 2;
    pointer-events: none;
}

canvas {
    display: none;
}

input.form-control {
    background-color: #000;
    /* Fondo negro */
    color: #fff;
    /* Texto blanco */
    border-radius: 2rem;
    /* Bordes muy redondeados */
    border: 1px solid #444;
    /* Borde gris oscuro */
    padding: 0.75rem 1.25rem;
    font-size: 1.5rem;
    font-family: 'adapt-variable', sans-serif;
    font-weight: 100;
}

/* Placeholder claro */
input.form-control::placeholder {
    color: #ccc;
    opacity: 1;
    /* Para Safari */
}

/* Quitar azul de foco en algunos navegadores */
input.form-control:focus {
    box-shadow: none;
    outline: none;
    border-color: #888;
}

#foto-alfa h2 {
    font-size: 3rem;
}

.zoom-slow {
    animation: zoomSlow 5s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.fade-in {
    animation: fadeIn 1.2s ease-in-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marco-preview {
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

#retry-button button:hover {
    color: black !important;
    background-color: white !important;
    border-color: black !important;
}


@media (max-width: 576px) {

    #foto-alfa h2 {
        font-size: 1.5rem;
    }

    .rrss {
        font-size: 1rem;
    }

    .arcoiris {
        background: url('../img/boton-bg.png') center / auto no-repeat;
        border-radius: 5rem;
    }

    #marcos-list .marco-preview {
        margin-top: 3rem;
    }

    .lixt {
        font-size: 2rem !important;
    }
}