/* =========================================
   NUESTROS ESPACIOS SECTION
   ========================================= */
.cp-espacios-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background-color: #ffffff; /* Blanco puro para resaltar las imágenes */
}

.cp-espacios-container {
    text-align: center;
}

.cp-espacios-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #5f5c5c;
    letter-spacing: 1px;
    margin-bottom: 60px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cp-espacios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.cp-espacio-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cp-espacio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(196, 84, 22, 0.12);
}

.cp-espacio-img-wrapper {
    width: 100%;
    height: 220px; /* Altura fija para uniformidad */
    overflow: hidden;
}

.cp-espacio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cp-espacio-card:hover .cp-espacio-img {
    transform: scale(1.05); /* Zoom suave en la imagen al hacer hover */
}

.cp-espacio-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cp-espacio-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5f5c5c;
    margin: 0 0 10px 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cp-espacio-card-text {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .cp-espacios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cp-espacios-section {
        padding: 70px 0;
    }

    .cp-espacios-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .cp-espacios-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cp-espacio-img-wrapper {
        height: 200px;
    }
}