* {
    box-sizing: border-box;
}
:root {
    --morado-banner: #633082; 
    --negro-banner: #1a1a1a;
    --gris-fondo-form: #999999; 
    --gris-input: #cfcfcf;      
    --blanco: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.contact-container {
    width: 95%; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0; 
}

.banner-purple {
    background-image: url('../img/pregunta.webp');
    background-repeat: repeat;
    color: var(--blanco);
    padding: 60px 0;
}

.top-question {
    font-size: 2.45rem;
    font-weight: 300;
    margin-bottom: -15px;
}

.banner-purple h1 {
    font-size: 3.84rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.sub-text {
    font-size: 1.6rem;
    font-weight: 300;
    max-width: 1500px;
    line-height: 30px;
}

.sub-text strong{
    font-weight: 900;
}
.banner-black {
    background-image: url('../img/compromiso.webp');
    background-repeat: repeat;
    color: var(--blanco);
    padding: 50px 0;
}

.flex-compromiso {
    display: flex;
    align-items: center;
    gap: 40px;
}

.compromiso-left {
    text-align: right;
    line-height: 1;
    
}

.small-title {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    text-align: left;
}

.compromiso-left h2 {
    font-size: 3.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.compromiso-divider {
    width: 18px;
    height: 120px;
    margin-left: 25px;
    background-color: #ccc;
}

.compromiso-right p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 600px;
    letter-spacing: 1px;
    text-align: justify;
}

.form-section {
    background-color: var(--gris-fondo-form); 
    padding: 60px 7%;
    color: var(--blanco);
}

.form-group-block {
    margin-bottom: 40px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 5px;
    display: inline-block;
}

.form-row {
    display: flex;
    gap: 120px;
    margin-bottom: 20px;
}

.input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-box label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.input-box input, 
.input-box textarea {
    background-color: var(--gris-input);
    border: none;
    height: 45px;
    width: 100%; 
    padding: 0 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
}

.input-box textarea {
    height: 120px; 
    padding-top: 10px;
    resize: none;
}

.input-box input:focus, 
.input-box textarea:focus {
    outline: 2px solid var(--morado-banner);
}

.full-width {
    width: 100%;
}

.file-input-container {
    background-color: var(--gris-input);
    height: 45px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden; 
}

.file-input-container input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10; 
    left: 0;
    top: 0;
}

.file-name-text {
    flex-grow: 1; 
    padding-left: 15px; 
    padding-right: 10px;
    color: #666; 
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    z-index: 1;
}

.browse-btn {
    height: 100%;
    background-color: #adadad;
    color: #333;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    z-index: 1;
    position: relative; 
}

.form-footer {
    display: flex;
    justify-content: flex-end; 
    margin-top: 20px;
}

.btn-submit {
    background-color: #1a1a1a; /* Negro */
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 5%;
    }
    
    .banner-purple {
        padding: 20px 0;
    }
    .top-question {
        font-size: 0.73rem; 
        margin-bottom: -3px;
    }
    .banner-purple h1 {
        font-size: 1.04rem; 
        line-height: 1.1;
        margin-bottom: 7px;
    }
    .sub-text {
        font-size: 0.62em; 
        line-height: 1.2;
        text-align: justify;
    }

    .banner-black {
        padding: 30px 0;
    }
    .flex-compromiso {
        flex-direction: row; 
        align-items: center;
        justify-content: center;
        gap: 15px; 
    }
    .compromiso-left {
        text-align: right;
        flex: 0 0 auto;
    }
    .small-title {
        font-size: 0.75rem; 
        font-weight: 500;
    }
    .compromiso-left h2 {
        font-size: 0.75rem; 
        letter-spacing: 1px;
    }
    .compromiso-divider {
        width: 24px;
        height: 55px; 
        margin-left: 0;
    }
    .compromiso-right p {
        font-size: 0.5rem; 
        line-height: 1.5;
        text-align: justify;
    }

    .form-section {
        padding: 40px 5%;
    }
    .form-row {
        flex-direction: column; 
        gap: 15px;
    }
    
    .form-section-title {
        font-size: 0.95rem;
    }

    .input-box input, 
    .input-box textarea,
    .form-select,
    .file-input-container {
        font-size: 0.85rem;
    }

    .form-footer {
        justify-content: center; 
        margin-right: 0;
        padding-right: 0; 
        width: 100%;
    }
    
    .btn-submit {
        padding: 12px 35px;
        font-size: 1rem;
    }
}

.form-select {
    background-color: var(--gris-input);
    border: none;
    height: 45px;
    width: 100%;
    padding: 0 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.form-select:focus {
    outline: 2px solid var(--morado-banner);
}

::placeholder {
    color: #666;
    opacity: 0.8;
    font-weight: 300;
    font-size: 0.9rem;
}