{% scope_css %}
/* ==========================================================================
   SECCIÓN HERO CIMA (INTRO)
   ========================================================================== */

.cima-intro-section {
    position: relative;
    width: 100%;
    background: #F0F0F0;
    padding: 160px 0 0; 
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}
.cima-community-section,
.cima-intro-section {
    display: block;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    /* La altura debe ser explícita o contenida por elementos estáticos, nunca solo absolutos */
}

/* --- Vectores de Fondo --- */
.cima-vector {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}
.vector-top-right {
    top: -50px;
    right: -100px;
    width: 1200px; 
    max-width: 100%;
}
.vector-bottom-left {
    bottom: 50px; 
    left: -100px;
    width: 1200px;
    max-width: 100%;
    transform: scaleX(-1) rotate(180deg); 
}

/* --- Cabecera Hero --- */
.cima-hero-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px; 
    padding: 0 20px;
}

.cima-main-logo {
    max-width: 600px; 
    width: 100%;
    height: auto;
    margin: 0 auto 24px; 
    display: block;
}

.cima-hero-subtitle {
    color: #132B3F; 
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 500; 
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
}

/* --- Contenedor del Grid --- */
.cima-cards-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1340px; 
    margin: 0 auto;
    padding: 0 30px;
}

/* Grid de 5 columnas perfecto */
.cima-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    justify-content: center;
}

.cima-card {
    width: 100%;
    height: 251px; 
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cima-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(19, 43, 63, 0.15); 
}

/* Tarjeta de Texto */
.text-card {
    display: flex;
    padding: 30px 40px;
    align-items: center;
    box-sizing: border-box;
}

.card-content p {
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.image-card {
    display: block;
    border-radius: 6px; 
}

.image-card .card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bg-azul-oscuro { background: #132B3F; }
.bg-azul-claro  { background: #8095A4; }
.bg-aguamarina  { background: #005C69; }
.bg-amarillo    { background: #DA8D09; }
.bg-barro       { background: #E47E5B; }
.bg-verde       { background: #2A5A42; }

.cima-wave-divider {
    position: relative;  
    width: 100%;
    line-height: 0;
    z-index: 2;
    margin-top: 80px; 
    overflow: hidden;   
}

.wave-svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 1440px; 
    margin-left: 50%;
    transform: translateX(-50%);
} 

/* ==========================================================================
   RESPONSIVE (Ajustes profesionales)
   ========================================================================== */

@media (max-width: 1280px) {
    .cima-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
    
    .cima-card:nth-child(10) {
        grid-column: span 3;
    }
}

@media (max-width: 991px) {
    .cima-intro-section {
        padding: 60px 0 0;
    }
    
    .cima-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .cima-card:nth-child(10) {
        grid-column: span 1;
    }

    .cima-hero-subtitle {
        font-size: 24px;
        padding: 0 10px;
    }

    .cima-card {
        height: 220px;
    }

    .text-card {
        padding: 24px;
    }

    .card-content p {
        font-size: 16px;
    }
}

/* MÓVIL */
@media (max-width: 767px) {
    .cima-cards-wrapper {
        padding: 0 16px;
    }

    .cima-cards-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }

    .cima-card {
        height: 180px; 
        border-radius: 12px;
    }

    .text-card {
        padding: 20px;
    }

    .card-content p {
        font-size: 14px;
        line-height: 1.3;
    }

    .vector-top-right,
    .vector-bottom-left {
        width: 600px; 
        opacity: 0.1; 
    }

    .cima-wave-divider {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .cima-cards-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
    }
    .cima-card {
        height: 160px;
    }
    .text-card {
        padding: 16px;
    }
    .card-content p {
        font-size: 13px;
    }
}
{% end_scope_css %}