.info-popup-descripcion {
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 32px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    pointer-events: none;
    display: none;
}

.info-popup-descripcion.visible {
    display: block;
    opacity: 1;
}


/* =================================================================
   SALIDAS PROFESIONALES - Fix grid en tablet
   ================================================================= */


/* Forzar filas automáticas en móvil y tablet para que colapsen al ocultar elementos */

@media (max-width: 1024px) {
    #salidas-profesionales {
        --e-con-grid-template-rows: auto !important;
        grid-template-rows: auto !important;
        grid-auto-rows: auto !important;
    }
}


/* ===================================================
   ESTILOS BASE CF7 - COMPARTIDOS
   =================================================== */


/* Ocultar br de CF7 */

.cf7-form-wrapper br,
.cf7-modal-wrapper br,
.cf7-field br {
    display: none;
}


/* ===== CONTENEDORES ===== */

.cf7-form-wrapper {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.cf7-modal-wrapper {
    width: 100%;
    padding: 32px;
}


/* ===== TÍTULOS ===== */

.cf7-form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0 0 12px 0;
    line-height: 28px;
}


/* ===== HEADER MODAL (icono + título) ===== */

.cf7-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.cf7-modal-icon {
    width: 48px;
    height: 48px;
    background: var(--e-global-color-secondary);
    border: 2px solid var(--e-global-color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cf7-modal-icon p {
    margin: 0;
}

.cf7-modal-icon img {
    width: 24px;
    height: 24px;
}

.cf7-modal-title-wrap {
    flex: 1;
}

.cf7-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.cf7-modal-subtitle {
    font-size: 14px;
    color: var(--e-global-color-text);
    opacity: 0.7;
    margin: 0;
    line-height: 1.4;
}


/* ===== CAMPOS ===== */

.cf7-field {
    margin-bottom: 10px;
}

.cf7-modal-wrapper .cf7-field {
    margin-bottom: 16px;
}

.cf7-field p {
    margin: 4px;
}


/* ===== LABELS ===== */

.cf7-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--e-global-color-text);
    margin-bottom: 4px;
    line-height: 20px;
}

.cf7-field .required {
    color: #fb2c36;
}


/* ===== INPUTS Y SELECTS ===== */

.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field select,
.cf7-field .wpcf7-form-control-wrap input,
.cf7-field .wpcf7-form-control-wrap select {
    width: 100%;
    height: 38px;
    padding: 12px 13px;
    font-size: 14px;
    line-height: 14px;
    color: var(--e-global-color-text);
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.cf7-modal-wrapper .cf7-field input[type="text"],
.cf7-modal-wrapper .cf7-field input[type="email"],
.cf7-modal-wrapper .cf7-field input[type="tel"],
.cf7-modal-wrapper .cf7-field select,
.cf7-modal-wrapper .cf7-field .wpcf7-form-control-wrap input,
.cf7-modal-wrapper .cf7-field .wpcf7-form-control-wrap select {
    height: 44px;
    border-radius: 8px;
}

.cf7-field input::placeholder {
    color: var(--e-global-color-text);
    opacity: 0.6;
}

.cf7-field input:focus,
.cf7-field select:focus {
    outline: none;
    border-color: var(--e-global-color-secondary);
}

.cf7-modal-wrapper .cf7-field input:focus,
.cf7-modal-wrapper .cf7-field select:focus {
    box-shadow: 0 0 0 3px rgba(61, 217, 196, 0.15);
}


/* Select con flecha personalizada */

.cf7-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 36px;
    cursor: pointer;
}


/* ===== TELÉFONO (PREFIJO + NÚMERO) ===== */

.phone-wrapper p {
    display: flex;
    gap: 8px;
}

.phone-wrapper .wpcf7-form-control-wrap:first-child,
.phone-wrapper select:first-of-type {
    width: 80px;
    flex-shrink: 0;
}

.cf7-modal-wrapper .phone-wrapper .wpcf7-form-control-wrap:first-child,
.cf7-modal-wrapper .phone-wrapper select:first-of-type {
    width: 100px;
}

.phone-wrapper .wpcf7-form-control-wrap:first-child select {
    width: 100%;
    text-align: center;
    background-position: right 8px center;
    padding-right: 24px;
}

.phone-wrapper .wpcf7-form-control-wrap:last-child,
.phone-wrapper input[type="tel"] {
    flex: 1;
}


/* ===== CHECKBOX PRIVACIDAD ===== */

.cf7-checkbox {
    margin-top: 16px;
    margin-bottom: 0;
}

.cf7-checkbox .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--e-global-color-primary);
}

.cf7-checkbox .wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 2px 0 0 0;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
    border-radius: 2px;
    accent-color: var(--e-global-color-secondary);
    cursor: pointer;
}

.cf7-checkbox .wpcf7-acceptance a {
    color: var(--e-global-color-secondary);
    text-decoration: underline;
}

.cf7-checkbox .wpcf7-acceptance a:hover {
    filter: brightness(0.85);
}


/* ===== BOTÓN SUBMIT ===== */

.cf7-submit {
    margin-top: 20px;
}

.cf7-modal-wrapper .cf7-submit {
    margin-top: 24px;
}

.cf7-submit input[type="submit"],
.cf7-submit .wpcf7-submit {
    width: 100%;
    height: 54px !important;
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cf7-submit input[type="submit"]:hover,
.cf7-submit .wpcf7-submit:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.cf7-submit input[type="submit"]:active,
.cf7-submit .wpcf7-submit:active {
    transform: translateY(0);
}


/* ===== SPINNER Y MENSAJES ===== */

.wpcf7-spinner {
    display: none;
}

.wpcf7-not-valid-tip {
    color: #fb2c36;
    font-size: 12px;
    margin-top: 4px;
}

.wpcf7-not-valid {
    border-color: #fb2c36 !important;
}

.wpcf7-response-output {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}


/* ===== RESPONSIVE ===== */

@media screen and (max-width: 800px) {
    .cf7-form-wrapper {
        padding: 9px;
    }
    .cf7-modal-wrapper {
        padding: 24px 20px;
        border-radius: 12px;
    }
    .cf7-modal-header {
        gap: 12px;
    }
    .cf7-modal-icon {
        width: 40px;
        height: 40px;
    }
    .cf7-modal-icon img {
        width: 20px;
        height: 20px;
    }
    .cf7-modal-title {
        font-size: 18px;
    }
    .cf7-modal-wrapper .phone-wrapper .wpcf7-form-control-wrap:first-child,
    .cf7-modal-wrapper .phone-wrapper select:first-of-type {
        width: 85px;
    }
    .premium-modal-box-modal .premium-modal-box-modal-dialog {
        max-width: 90%;
    }
}