/* --------- Contenedor principal --------- */
.bolsa-container {
    max-width: 1100px;
    margin: 60px auto 100px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    padding: 60px 70px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.bolsa-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #8e2038 0%, #d12127 100%);
}

/* --------- Títulos --------- */
.bolsa-container h1.bolsa-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #8e2038;
    text-align: center;
    margin-bottom: 46px;
    position: relative;
    padding-bottom: 15px;
}

.bolsa-container h1.bolsa-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8e2038 0%, #d12127 100%);
    border-radius: 2px;
}

.bolsa-container h2.bolsa-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 38px 0 20px;
    border-left: 4px solid #8e2038;
    padding-left: 12px;
}

/* --------- Formulario con Iconos --------- */
.bolsa-container .bolsa-form .form-group {
    position: relative;
}

.bolsa-container .bolsa-form .form-control,
.bolsa-container .bolsa-form .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px 14px 12px 40px;
    font-size: 1rem;
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.bolsa-container .bolsa-form .form-control#nombre {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238e2038"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.bolsa-container .bolsa-form .form-control#whatsapp {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238e2038"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/></svg>');
}

.bolsa-container .bolsa-form .form-control#correo {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238e2038"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.bolsa-container .bolsa-form .form-control#titulo_obtenido {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238e2038"><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/></svg>');
}

.bolsa-container .bolsa-form .form-select#zona {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238e2038"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    padding-left: 40px;
    min-width: 280px;
}

.bolsa-container .bolsa-form .form-control:focus,
.bolsa-container .bolsa-form .form-select:focus {
    border-color: #8e2038;
    box-shadow: 0 0 0 .15rem rgba(142, 32, 56, .25);
}

.bolsa-container .bolsa-form .form-check-input {
    accent-color: #8e2038;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15em;
}

.bolsa-container .bolsa-form .form-check-label {
    margin-left: 0.5em;
}

/* Agrupación Visual */
.bolsa-container fieldset {
    border: 1px solid #e4e4e4;
    padding: 28px 24px;
    border-radius: 10px;
    margin-bottom: 34px;
}

.bolsa-container legend {
    width: auto;
    font-weight: 600;
    color: #8e2038;
    padding: 0 8px;
    font-size: 1.05rem;
}

/* --------- reCAPTCHA --------- */
.bolsa-container .g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* --------- Boton Enviar --------- */
.bolsa-container .btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    margin: 40px auto 0;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    background: #05964a;
    color: #fff;
    font-weight: 700;
    letter-spacing: .6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bolsa-container .btn-submit::before {
    content: none;
    display: none;
}

.bolsa-container .btn-submit:hover {
    background: #047d3e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 150, 74, 0.3);
}

.bolsa-container .btn-submit i {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.bolsa-container .btn-submit:hover i {
    transform: translateX(5px);
}

.bolsa-container .form-check-inline {
    margin-right: 1.5rem;
    min-width: 120px;
}

/* --------- Responsivo --------- */
@media (max-width: 768px) {
    .bolsa-container {
        padding: 40px 28px;
        margin: 40px 20px;
        max-width: calc(100% - 40px);
    }

    .bolsa-container h1.bolsa-title {
        font-size: 1.8rem;
    }

    .bolsa-container .form-control,
    .bolsa-container .form-select {
        padding-left: 40px;
    }

    .bolsa-container .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .bolsa-container #zona {
        width: 100%;
    }
}