
/**
 * ===================================================
 * © 2025 YUYAY Ltda. - yuyay.fin.ec
 * Sistema: Pagína Web
 * Versión: 2.5
 * Desarrollador: [Leonardo Verdugo Crespo - Sistemas]
 * Última modificación: 24/06/2024
 * ===================================================
 */
body {
    background: url('../../../assets/images/Contactanos/FondoNw.jpg') no-repeat center center/cover; /* Fondo azul */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}


.formulario{
    width: 40%;
    padding: 15px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: rgb(255, 255, 255);
    position: static;
    margin-left: 800px;
    animation: fadeInUp 1s ease-out;
    
}
.titulo-formulario {
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffffff55; /* línea decorativa */
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInTop 1s ease-out forwards;
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Capa de fondo semi-transparente para mejor legibilidad */
    padding: 20px;
    border-radius: 10px;
}

/* Agrupar cédula y agencia en una fila */
.fila-doble {
    display: flex;
    justify-content: space-between;
    width: 80%;
    gap: 20px;
    margin-top: 20px;
}

.fila-doble .grupo {
    flex: 1;
    display: flex;
    flex-direction: column;
}

select {
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    width: 100%;
    background-color: #fff;
    font-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilo visual para los labels */
label {
    font-size: 28px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #ffffff;
    /*margin-left: 50px;*/
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Profundidad */
    width: 100%;
}
/* Estilo para el label del mensaje para que ocupe todo el ancho */
.label-mensaje {

    width: 80%;
    margin-top: 20px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;

}





input, textarea {
    
    width: 80%;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
}

/* Unificar estilo visual para input, textarea y select */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.7);
    transition: box-shadow 0.3s ease;
}

input[type="submit"] {
    background-color: #0056b3;
    color: white;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    padding: 10px 20px;
}

input[type="submit"]:hover {
    background-color: #003f7f;
}

/* Tarjeta de la izquierda*/
.tarjeta-izquierda {
    position: absolute;
    top: 53%;
    left: 15%;
    transform: translateY(-50%);
    width: 20%;
    height: 50vh;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenido-tarjeta {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: acercamiento 4s infinite ease-in-out;
    animation: fadeInLeft 1.2s ease-out;
}

.imagen-cuerpo {
    flex-grow: 1;
    overflow: hidden;
}

.imagen-cuerpo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.texto-pie {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px;
    text-align: center;
    background-color: #fff;
}

.h2{
    background: rgba(59, 124, 209, 0.1);
    color: #fff;
}


@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 20px;
        height: auto;
        justify-content: flex-start;
    }

    .formulario {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .fila-doble {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .label-mensaje,
    label {
        width: 100%;
        font-size: 22px;
    }

    textarea, input, select {
        width: 100%;
    }

    .tarjeta-izquierda {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }

    .contenido-tarjeta {
        height: auto;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
#mensaje-confirmacion {
    margin-top: 20px;
    padding: 15px;
    background-color: #28a745;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    animation: fadeInScale 0.5s ease forwards;
    display: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Animación de aparición */
@keyframes fadeInTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de desaparición (se activa con clase fade-out) */
.fade-out {
    animation: fadeOut 0.8s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}