/* 
    DERECHOS RESERVADOS: LUMIERES ADS.

    DESARROLLADORES:
        - FULL-STACK: ING. GABRIEL ALEGRÍA.
        - FRONT-END: MTS. ING. RAÚL PORTILLO.

    RECURSO: CONFIGURACIÓN SECCIÓN PORTADA PRINCIPAL, ESTILOS, LETRA, COLORES PARA EL SITIO WEB (HOME).

    PROHÍBIDO LA DISTRIBUCIÓN DE ESTE APLICATIVO O SOLUCIONES CÓDIFICADAS.
*/

/* Main content area */

/* PC & Laptop */
main {
    display: flex;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 120px);
}

.social-media {
    position: absolute;
    top: 50%;
    padding-left: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color-blue);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 1.5em;
    color: var(--primary-color-light);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color-pink);
    color: var(--primary-color-light);
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: inherit;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.content-overlay {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-form-container {
    position: relative;
    background-color: rgba(249, 249, 249, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    box-sizing: border-box;
    margin-right: 0;
}

.quote-tab {
    position: absolute;
    top: 100px;
    left: -30px;
    background-color: var(--primary-color-blue);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    transform: rotate(270deg) translateX(-100%);
    transform-origin: top left;
    font-family: "Montserrat", sans-serif;
    font-weight: medium;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2;
}

.quote-form h2 {
    margin-bottom: 25px;
    color: var(--primary-color-dark);
    font-family: "Montserrat", sans-serif;
    font-weight: medium;
    text-align: center;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.hidden {
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color-dark);
    font-family: "Montserrat", sans-serif;
    font-weight: regular;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
    font-weight: regular;
    font-size: 0.9em;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
}

.submit-button {
    background: #C43C75;
    background: linear-gradient(90deg, rgba(196, 60, 117, 1) 0%, rgba(26, 63, 122, 1) 78%);
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #1A3F7A;
    background: linear-gradient(90deg, rgba(26, 63, 122, 1) 0%, rgba(196, 60, 117, 1) 78%);
    color: white;
}

.whatsapp-button {
    color: white;
}

.email-button {
    color: white;
}

/* NUEVA sección para móvil */
.form-section {
    display: none;
}

.is-invalid {
    border: 1px solid rgb(252, 159, 159) !important;
    background-color: #ffe6e6 !important;
}

/* Responsive Tablet y Smartphone */
@media (max-width: 1023px) {
    main {
        display: block;
        min-height: auto;
    }

    .social-media {
        position: absolute;
        transform: translateY(-50%);
        top: 13%;
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
        margin: 20px 0 10px 0; 
        padding-left: 40px;
        background-color: transparent;
        box-shadow: none;
        gap: 5px;
        z-index: 10;
    }

    .hero-section {
        position: relative;
        width: 100%;
        height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        padding: 0;
    }

    .background-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .content-overlay {
        display: none;
    }

    .form-section {
        display: block;
        background-color: #f0f0f0;
        padding: 20px;
    }

    .quote-form-container {
        background-color: white;
        width: 90%;
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .quote-form {
        padding: 0;
    }

    .quote-tab {
        display: none;
    }

    .form-group-row {
        flex-direction: column;
        gap: 15px;
    }
}

