/* ==========================================================================
   ESTILOS PÁGINA REFIERE Y GANA + CONTACT FORM 7
   ========================================================================== */

.page-refiere-container,
.page-template-page-refiere {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Exo', sans-serif;
}

/* 1. HERO BANNER (A SANGRE SUPERIOR) */
.page-refiere-container .beneficios-hero-banner {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0 !important;
    padding-top: 70px;
    box-sizing: border-box;
}

.page-refiere-container .beneficios-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.page-refiere-container .beneficios-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-refiere-container .beneficios-hero-title {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: #ffffff;
}

.page-refiere-container .beneficios-breadcrumbs {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #e0e0e0;
}

.page-refiere-container .beneficios-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

/* 2. TEXTOS INTRODUCTORIOS */
.page-refiere-container .beneficios-intro-section {
    padding: 60px 20px 40px 20px;
    text-align: center;
    background: #ffffff;
}

.page-refiere-container .beneficios-intro-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-refiere-container .beneficios-main-title {
    font-size: 2.3rem;
    color: #8C1527;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-refiere-container .beneficios-intro-desc {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 3. SECCIÓN FORMULARIO FONDO OSCURO */
.refiere-form-section {
    position: relative;
    width: 100%;
    background-color: #2b2825;
    background-size: cover;
    background-position: center;
    padding: 70px 20px 90px 20px;
    box-sizing: border-box;
}

.refiere-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 40, 37, 0.92);
    z-index: 1;
}

.refiere-form-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

/* 4. ESTILOS INTERNOS DE CONTACT FORM 7 */
.cf7-select-center {
    max-width: 320px;
    margin: 0 auto 40px auto;
}

.cf7-select-center select {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 2px;
    padding: 0 15px;
    font-family: 'Exo', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2b2825;
    text-align-last: center;
    background: #ffffff;
    cursor: pointer;
}

.cf7-refiere-grid {
    display: flex;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 40px;
}

.cf7-col {
    flex: 1;
}

.cf7-col-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.cf7-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.cf7-field {
    flex: 1;
}

.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field select {
    width: 100%;
    height: 42px;
    background: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 0 12px;
    font-family: 'Exo', sans-serif;
    font-size: 0.9rem;
    color: #333333;
    box-sizing: border-box;
}

.cf7-field input::placeholder {
    color: #777777;
}

.cf7-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 45px 0 10px 0;
}

.cf7-bottom-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cf7-submit-wrapper input[type="submit"] {
    background-color: #8C1527;
    color: #ffffff;
    border: none;
    width: 320px;
    height: 48px;
    font-family: 'Exo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cf7-submit-wrapper input[type="submit"]:hover {
    background-color: #6d101e;
}

.cf7-terms {
    color: #ffffff;
    font-size: 0.82rem;
}

.cf7-terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wpcf7-not-valid-tip {
    font-size: 10px;
    color: #ff8a8a;
    margin-top: 2px;
}

.wpcf7-response-output {
    border: 1px solid #8C1527 !important;
    color: #ffffff !important;
    text-align: center;
    margin-top: 20px !important;
    padding: 10px !important;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .cf7-refiere-grid {
        flex-direction: column;
        gap: 20px;
    }
    .cf7-divider {
        display: none;
    }
    .cf7-row {
        flex-direction: column;
        gap: 12px;
    }
    .cf7-submit-wrapper input[type="submit"] {
        width: 100%;
    }
}