/* --- PÁGINA SINGLE PROYECTO --- */
.single-proyecto-wrapper {
    background-color: #ffffff;
}

/* 1. HERO CONTENIDO Y CENTRADO DE ALTURA */
.proyecto-hero-section {
    position: relative;
    width: 100%;
    min-height: 480px; /* Altura suficiente para albergar todo el formulario */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px; /* Espacio reservado para la barra inferior de amenities */
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.proyecto-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hero-left-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-project-title {
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 36px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 8px 22px;
    margin: 0;
    line-height: 1.1;
}

.hero-project-status {
    background: #F69C00;
    color: #ffffff;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    padding: 5px 22px;
    margin: 0;
}

/* CAJA Y ESPACIADOS DEL FORMULARIO COMPACTO */
.hero-right-form {
    width: 310px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

/* Reducción estricta de márgenes y paddings de CF7 */
.hero-right-form p,
.hero-right-form .wpcf7-form-control-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.hero-right-form input,
.hero-right-form select,
.hero-right-form textarea {
    width: 100% !important;
    padding: 5px 10px !important;
    margin-bottom: 6px !important; /* Espacio ultra compacto entre filas */
    border: 1px solid #dcdcdc !important;
    font-family: 'Open Sans Condensed', sans-serif !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    height: 36px;
}

.hero-right-form textarea {
    height: 60px !important; /* Textarea compacto para no engordar la tarjeta */
    resize: none !important;
}

.hero-right-form .submit-btn,
.cf7-proyecto-form-fallback .submit-btn {
    width: 100% !important;
    background-color: #F69C00 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: 'Open Sans Condensed', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 8px 0 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    margin-bottom: 0 !important;
    height: auto !important;
}

.hero-right-form .submit-btn:hover,
.cf7-proyecto-form-fallback .submit-btn:hover {
    background-color: #d88300 !important;
}

/* FRANJA INFERIOR DE ÍCONOS / AMENITIES */
.hero-amenities-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
    padding: 6px 0;
    border-bottom: 3px solid #F69C00;
}

.amenities-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    padding: 0 20px;
}

.amenity-item {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 12px;
    text-align: center;
}

.amenity-item i {
    font-size: 16px;
    margin-bottom: 2px;
}

.hero-arrow-down {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #F69C00;
    z-index: 3;
}

/* 2. DATOS PRINCIPALES Y PRECIO */
.proyecto-details-section {
    padding: 40px 20px;
    background-color: #ffffff;
}

.details-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.details-logo img {
    max-width: 200px;
    height: auto;
}

.details-table p {
    margin: 3px 0;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 17px;
    color: #555;
}

.details-table span {
    color: #888;
    text-transform: uppercase;
}

.orange-text {
    color: #F69C00 !important;
}

.details-divider {
    width: 1px;
    height: 110px;
    background-color: #e0e0e0;
}

.details-price {
    text-align: center;
}

.price-label {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 22px;
    color: #444;
    text-decoration: underline;
}

.price-amount {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 38px;
    color: #F69C00;
    margin: 2px 0 0 0;
    font-weight: 300;
}

/* 3. DESCRIPCIÓN Y CARACTERÍSTICAS */
.proyecto-content-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 10px 20px 40px 20px;
}

.section-heading {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #333333;
    text-transform: uppercase;
    border-bottom: 2px solid #F69C00;
    display: inline-block;
    padding-bottom: 3px;
    margin-bottom: 20px;
}

.project-description {
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 30px;
}

.project-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 14px;
    color: #444444;
}

.orange-square {
    width: 10px;
    height: 10px;
    background-color: #F69C00;
    display: inline-block;
}

/* 4. UBICACIÓN Y MAPA MEJORADO */
.proyecto-location-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
}

.location-card-wrapper {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    align-items: stretch;
}

.location-info-card {
    flex: 1;
    background: #fcfcfc;
    border: 1px solid #eaeaea;
    border-left: 4px solid #F69C00;
    padding: 25px;
    display: flex;
    gap: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03);
}

.info-icon {
    font-size: 24px;
    color: #F69C00;
}

.info-text h3 {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 22px;
    margin: 0 0 8px 0;
    color: #333;
}

.info-text p {
    font-family: sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.phone-link {
    font-weight: bold;
    color: #F69C00 !important;
}

.location-map-box {
    flex: 2;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    min-height: 350px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
}

.location-map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

@media (max-width: 850px) {
    .proyecto-hero-section { min-height: auto; padding: 40px 0 60px 0; }
    .proyecto-hero-container,
    .details-container,
    .location-card-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    .hero-right-form { width: 100%; }
    .project-features-grid { grid-template-columns: 1fr; }
    .details-divider { display: none; }
}