body {
    background-image: url("../../img/yellowshop/yellowshop-background.jpg");
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f3f4f5;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center left;
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
}


/* Contenedor del encabezado */
.header-container, .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;

    /* 🔥 Animación inicial */
    animation: swingIn 1.2s ease-out;
    transform-origin: top center; /* Punto de giro */
}

/* Footer */
.footer-container{
    display: block;
    padding: 0 30px;
}

.footer-container > p {
    font-size: small;
}

.help-content {
    display: none;
    margin: 10px 0;
    padding: 10px;
    background: transparent;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.help-content p {
    margin: 5px 0;
}
/**************/

/* Título */
.header-container > h1 {
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: black;
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Animación de caída con rebote */
@keyframes swingIn {
    0% {
        transform: translateY(-100px) rotateX(30deg);
        opacity: 0;
    }
    40% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
    60% {
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Diseño responsivo */
@media screen and (max-width: 768px) {
    .header-container {
        width: 100%;
        padding: 15px;
    }

    .header-container > h1 {
        font-size: 1.4rem;
        white-space: normal;
    }
}


/* Modal: Aparece siempre debajo del Header */
.modal {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Contenido del Modal */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
    box-sizing: border-box;
}

/* Animación de entrada suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo dentro del modal */
.modal-logo {
    max-width: 65%;
    margin-bottom: 10px;
}

/* Inputs */
input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Diseño responsivo */
@media screen and (max-width: 768px) {
    .header-container {
        width: 90%;
    }

    .modal-content {
        width: 95%;
    }

    .header-container > h1 {
        font-size: 1.4rem;
        white-space: normal;
    }
}


.btn {
    width: 50%;
    outline: none;
    display: flex;
    border-radius: 2rem;
    font-weight: 700;
    cursor: pointer;
    /*border: 2px solid rgb(161, 161, 161);*/
    border: none;
    padding: 0.88rem 1.5rem;
    font-size: 0.875rem;
    gap: 0.5rem;
    background: yellow;
    color: black;
    justify-content: center;
    align-items: center;
    margin: 2% auto;
}

.btn:disabled {
    background-color: grey;
    color: white;
    cursor: not-allowed;
}


.modal-container-btn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}


/* Contenedor de los inputs dentro del modal */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Caja de input con icono */
.input-box {
    position: relative;
    width: 100%;
}

/* Íconos dentro del input */
.input-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}

/* Inputs dentro del modal */
.input-box input {
    width: calc(100% - 45px); /* Asegura que no sobresalga */
    padding: 12px 15px 12px 40px; /* Espacio para el ícono */
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
    background: #fff;
}

/* Animación al hacer foco en el input */
.input-box input:focus {
    border-color: black;
    box-shadow: 0 0 8px black;
    outline: none;
}

/* Efecto flotante en el label */
.input-box label {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    transition: 0.3s ease-in-out;
    pointer-events: none;
}

/* Cuando el input está activo, mueve el label arriba */
.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: 0;
    left: 0;
    font-size: 14px;
    color: black;
    font-weight: bold;
}


.order-details-variant {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    /*background: #f9f9f9;*/
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.order-variant-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
}

.order-label {
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    text-align: left;
}

.order-value {
    color: #222;
    font-weight: 500;
}

.lang-container {
    position: absolute;
    margin-top: 1rem;
}

.select {
    width: 100%; /* Se adapta al contenedor */
    max-width: 300px; /* Ancho máximo */
    padding: 10px;
    font-size: 16px;
    border: 2px solid #4f4f4f33;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.hidden {
    display: none;
}

.buttons-container {
    display: flex;
    flex-direction: row-reverse;
    column-gap: 25px;
    position: sticky;
    bottom: 10px;
}

.btn-pay, .btn-submit {
    text-transform: uppercase;
    background: hsl(204, 77%, 39%);
    color: white;
}

/* Botón Volver */
.btn-back {
    background-color: #6B7280; /* gris medio */
    color: white;
}

.btn-back > svg {
    stroke: white;
}

.btn-next > svg{
    stroke: black;
}

.btn-back:hover {
    background-color: #4B5563;
}

.btn-finalice {
    display: none;
}

.btn-cancel{
    background-color: #F87171;
    color: white;
}

.btn-cancel:hover {
    background-color: #EF4444;
}

.btn-modify {
    background-color: #60A5FA;
    color: white;
}

.btn-modify:hover {
    background-color: #3B82F6;
}
