/* Form */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    height: auto;
}

/* Contact section */
.contact {
    flex: 1;
    display: block;
    background-image: url("../assets/img/contactanos_fondo.png");
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    min-height: 88vh;
    align-items: center;
    padding: 30px 0;
}

.contact h1 {
    font-size: 2em;
    color: #022a80;
    padding: 15px;
    margin-top: 3rem;
}

.contact h2 {
    font-size: 1.5em;
    color: #022a80;
    font-weight: 600;
}

.contact select {
    padding: 5px;
    color: white;
    margin: 5px 0;
    width: 100%;
}

form span {
    color: red;
    font-size: 20px;
    font-weight: 800;
}

.contact p,
form label {
    color: black;
    font-size: 1em;
}

.contact input,
.contact select,
.contact textarea {
    border: solid 3px #000000;
    background-color: white;
    color: black;
}

#detalles-agente {
    display: none;
    margin-top: 20px;
}

.contact .btn-primary {
    width: 100px;
    background: #065da6;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    border: 15px;
    padding: 0;
    border-radius: 10px;
}

.contact .btn-primary:hover {
    background: #022a80;
}

.contact #espacio {
    padding-top: 50px;
}

.contact .informacion {
    color: #065da6;
    font-size: 1em;
    text-decoration: none;
}

/* Custom select */
.custom-select {
    width: 600px;
    height: 100%;
    color: #8b8888;
    background-color: #022a80;
}

.select-box {
    display: flex;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    justify-content: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 1000;
    background-color: #022a80;
}

.option {
    padding: 0 10px;
    cursor: pointer;
    color: #ffffff;
}

.option:hover {
    background-color: #065da6;
}

input[type="file"] {
    margin-bottom: 20px;
}

.form-container {
    display: none;
}

/* Mercado Libre y Amazon */
#mensaje-redirect {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 9999;
    overflow: hidden;
    opacity: 0; 
    animation: fadeIn 1s ease-out forwards; 
}

#mensaje-redirect div {
    background-color: #b3d8f6;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 80%;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px); 
    z-index: 1;
    display: flex;
    flex-direction: column; 
    align-items: center;  
}

#mensaje-redirect h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #065da6;
    z-index: 2;
}

#mensaje-redirect .imagenes-container {
    display: flex;
    justify-content: center;  
    gap: 20px;                
    align-items: center;     
    flex-wrap: wrap;          
}

#mensaje-redirect img {
    cursor: pointer;
    width: 350px;
    transition: transform 0.3s ease;
    background: none;
    text-align: center;
    display: inline-block;
    position: relative;
    z-index: 2; 
}

#mensaje-redirect button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#mensaje-redirect button:hover {
    transform: scale(1.8);
    color: red;  
}

#mensaje-redirect img:hover {
    transform: scale(1.1);
}

/* Animación de aparición del mensaje */
@keyframes fadeIn {
    0% {
        opacity: 0; 
        transform: translateY(-30px); 
    }
    100% {
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    #mensaje-redirect div {
        padding: 20px;
        width: 90%;
        max-width: 90%;
        font-size: 0.9em; 
    }

    #mensaje-redirect h3 {
        font-size: 1.2em; 
    }

    #mensaje-redirect .imagenes-container {
        flex-direction: column;  
    }

    #mensaje-redirect img {
        width: 120px; 
    }

    #mensaje-redirect button {
        font-size: 28px; 
    }
}

/* Media Query para pantallas más pequeñas (hasta 480px) */
@media (max-width: 480px) {
    #mensaje-redirect div {
        padding: 15px;
        width: 95%;
        max-width: 95%;
        font-size: 0.8em; 
    }

    #mensaje-redirect h3 {
        font-size: 1.1em; 
    }

    #mensaje-redirect img {
        width: 100px;  /* Ajusta aún más el tamaño de las imágenes para pantallas pequeñas */
    }

    #mensaje-redirect button {
        font-size: 24px;
    }
}

/* Media Query para pantallas más grandes (escritorio) */
@media (min-width: 769px) {
    #mensaje-redirect .imagenes-container {
        flex-direction: column; /* Las imágenes estarán una debajo de la otra en pantallas grandes */
    }

    #mensaje-redirect img {
        width: 350px;  /* Tamaño grande de las imágenes en escritorio */
    }
}

