/* =========================================================
   SECCIÓN COTIZAR - DISEÑO PASTEL PREMIUM
   ========================================================= */
   #cotizar {
    background-image: 
        linear-gradient(rgba(93, 92, 92, 0.9), rgba(5, 15, 132, 0.822)), 
        url('/SPP/Public/Resources/fondoCotizar.png');
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#cotizar::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(179, 193, 205, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: floating 8s infinite;
}

@keyframes floating {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(100px, 50px); }
    50% { transform: translate(-50px, 100px); }
    75% { transform: translate(80px, -30px); }
}

/* Contenedor para la imagen y el formulario */
#cotizar .cotizar-container {
    display: flex;
    align-items: center; /* Alinea verticalmente la imagen y el formulario */
    justify-content: space-between;
    gap: 2rem; /* Espacio entre la imagen y el formulario */
}

#cotizar .cotizar-image {
    width: 600px; /* Ancho fijo del contenedor */
    height: 1020px; /* Alto fijo del contenedor (ajústalo según necesites) */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Evita que la imagen se salga */
    border-radius: 10px;
    background: #f0f0f0; /* Opcional: color de fondo para evitar espacios vacíos */
}

#cotizar .cotizar-image img {
    width: 100%; /* La imagen ocupa todo el ancho del contenedor */
    height: 100%; /* La imagen ocupa todo el alto del contenedor */
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformarse */
    border-radius: 10px;
}

.cotizar-image img {
    transition: opacity 0.5s ease-in-out;
    max-width: 100%; 
}

/* Formulario */
/* Ajustar el contenedor del formulario y título */
.cotizar-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 50%; /* Ajusta el tamaño para que se alinee con el formulario */
}

/* Ajustar el título */
.cotizar-form-container .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

#cotizar .cotizar-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(240, 240, 48, 0.15), 0 0 20px rgba(255, 241, 52, 0.8);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 241, 52, 0.929);
}

#cotizar .section-title {
    font-family: 'Poppins', sans-serif;
    text-align: left;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(42, 123, 189, 0.1);
    margin-left: 30px;
    font-weight: 700;
}

#cotizar form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(240, 240, 48, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(224, 243, 16, 0.3);
}

#cotizar .input-container {
    position: relative;
    margin-bottom: 2rem;
}

#cotizar input,
#cotizar textarea {
    width: 100%;
    padding: 1.2rem;
    font-size: 1rem;
    border: 1px solid #d1d1d1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s;
    text-align: left;
}

#cotizar input:focus,
#cotizar textarea:focus {
    outline: none;
    border-color: #f5f90b;
    background: #fff;
}

#cotizar input::placeholder,
#cotizar textarea::placeholder {
    color: #aaa;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

#cotizar textarea {
    height: 140px;
    resize: none;
}

#cotizar button [type="submit"] {
    background: linear-gradient(135deg, #ebf30f 0%, #ffffff 100%);
    color: rgb(36, 28, 28);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 8px 20px rgba(142, 197, 252, 0.3);
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.botonEnviar {
    background: linear-gradient(135deg, #ebf30f 0%, #ffffff 100%);
    color: rgb(36, 28, 28);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 8px 20px rgba(142, 197, 252, 0.3);
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#cotizar button[type="submit"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 20%, 
        rgba(30, 26, 26, 0.4) 50%, 
        transparent 80%);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    from { transform: rotate(0deg) translateX(-50%); }
    to { transform: rotate(360deg) translateX(50%); }
}

#cotizar button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(142, 197, 252, 0.4);
}

/* ========== RESPONSIVE ========== */

/* Pantallas hasta 768px:
   - Reordenamos para que aparezca primero el título,
     luego la imagen y finalmente el formulario. */
@media (max-width: 768px) {
    #cotizar {
        padding: 4rem 2rem;
    }

    /* Hacemos que .cotizar-container permita flex-wrap */
    .cotizar-container {
        display: flex;
        flex-wrap: wrap;
    }

    .cotizar-form-container {
        display: contents;
    }

    /* Orden deseado:
       1) Título
       2) Imagen
       3) Formulario
    */
    .section-title {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cotizar-image {
        order: 2;
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .cotizar-form {
        order: 3;
        width: 100%;
    }

    #cotizar form {
        padding: 2rem;
    }

    #cotizar .section-title {
        font-size: 2rem;
        margin-left: 0;
    }

    #cotizar input,
    #cotizar textarea {
        font-size: 0.9rem;
    }

    .botonEnviar {
        padding: 1rem 2rem;
        font-size: 16px;
    }
}

/* Pantallas hasta 480px */
@media (max-width: 480px) {
    #cotizar {
        padding: 3rem 1rem;
    }
    #cotizar form {
        padding: 1.5rem;
    }
    #cotizar .section-title {
        font-size: 1.8rem;
    }
    #cotizar input,
    #cotizar textarea {
        padding: 1rem;
        font-size: 0.85rem;
    }
    .botonEnviar {
        padding: 0.8rem 1.5rem;
        font-size: 15px;
    }
}

/* Pantallas hasta 320px */
@media (max-width: 320px) {
    #cotizar {
        padding: 2rem 0.5rem;
    }
    #cotizar .section-title {
        font-size: 1.6rem;
    }
    #cotizar input,
    #cotizar textarea {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    .botonEnviar {
        padding: 0.8rem 1.2rem;
        font-size: 14px;
    }
}
