/* --- PÁGINA DE CONTACTO --- */
.contacto-page-wrapper {
    background-color: #ffffff;
    font-family: sans-serif;
    color: #444444;
}

/* 1. HERO BANNER */
.contacto-hero-section {
    position: relative;
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}

.contacto-hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contacto-hero-title {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 42px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 10px 24px;
    margin: 0;
    letter-spacing: 1px;
}

.contacto-hero-subtitle {
    background-color: #F69C00;
    color: #ffffff;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 22px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 8px 24px;
    margin: 0;
    line-height: 1.2;
}

.contacto-hero-notch {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #F69C00;
    z-index: 3;
}

/* 2. CUERPO DE CONTACTO (2 COLUMNAS) */
.contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 70px 20px;
}

.contacto-grid-main {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Columna Izquierda: Oficina e Info */
.contacto-info-col {
    flex: 1;
    position: relative;
    padding-right: 30px;
}

.contacto-info-col::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #e0e0e0;
}

.contacto-office-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #333333;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.contacto-office-address {
    font-size: 14px;
    line-height: 1.6;
    color: #777777;
    margin-bottom: 25px;
}

/* Caja Naranja Venta de Terrenos */
.contacto-terrenos-box {
    background-color: #ed6726;
    color: #ffffff;
    padding: 22px 20px;
    max-width: 300px;
    box-sizing: border-box;
}

.contacto-terrenos-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 26px;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: #F69C00;
    letter-spacing: 0.5px;
}

.contacto-terrenos-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #ffffff;
}

.contacto-terrenos-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

/* Columna Derecha: Formulario CF7 */
.contacto-form-col {
    flex: 1.8;
}

/* Neutralización de etiquetas automáticas de CF7 */
.contacto-form-col p,
.cf7-contacto-grid p,
.wpcf7-form-control-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}

.cf7-contacto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 15px; /* 12px entre filas, 15px entre columnas */
}

.cf7-field-col {
    width: calc(50% - 7.5px);
    display: flex;
    flex-direction: column;
}

.cf7-field-full {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.cf7-input,
.cf7-contacto-grid select,
.cf7-textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #cccccc !important;
    font-family: 'Open Sans Condensed', sans-serif !important;
    font-size: 16px !important;
    color: #555555 !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    height: 42px;
}

.cf7-textarea {
    height: 140px !important;
    resize: vertical !important;
}

.cf7-privacy-row {
    margin-top: 5px !important;
    font-size: 13px;
    color: #666666;
    display: block !important;
}

.cf7-privacy-row a {
    color: #0073aa;
    text-decoration: underline;
}

/* FILA DE BOTONES: LIMPIAR a la izquierda, ENVIAR a la derecha */
.cf7-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 15px !important;
}

.cf7-btn-reset {
    background-color: #555555;
    color: #ffffff;
    border: none;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 45px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cf7-btn-reset:hover {
    background-color: #333333;
}

.cf7-btn-submit {
    background-color: #F69C00 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'Open Sans Condensed', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 10px 55px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    margin: 0 !important;
}

.cf7-btn-submit:hover {
    background-color: #d88300 !important;
}

@media (max-width: 850px) {
    .contacto-grid-main {
        flex-direction: column;
        gap: 30px;
    }
    .contacto-info-col {
        padding-right: 0;
    }
    .contacto-info-col::after {
        display: none;
    }
    .cf7-field-col {
        width: 100%;
    }
}