/* =========================================================
   ASOCLIMACR – INDEX.CSS (Versión Final Auditada)
   ---------------------------------------------------------
   Estructura:
   1) Hero / Parallax
   2) Bloque 3: Intro & Surface (Color #ebf5ec)
   3) Bloque 4: Certificaciones (Color #ebf5ec)
   4) Bloque 5: Servicios (Transición suave)
   5) Bloque 6: Calculadora + Mapa CO2
   6) Bloque 7: Participantes (Marquee)
   7) Bloque 8: Socios Estratégicos
   8) Componentes Globales & Responsividad
   ========================================================= */

/* 1) HERO / PARALLAX ------------------------------------- */
.parallax {
    background-image: url("../img/volcan.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* 2) BLOQUE 3: INTRODUCCIÓN ------------------------------- */
.section-intro {
    background-color: #ebf5ec; /* Verde claro unificado */
    /* AÑADIDO: Espacio superior para separar de la imagen */
    padding-top: 80px;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

.intro-surface {
    max-width: 900px;
    background: #ffffff;
    border-radius: 40px;
    padding: 0.6rem 3rem;
    /* La tarjeta sube para conectar con la imagen superior */
    margin-top: -150px; 
    box-shadow: 0 30px 60px -20px rgba(46, 125, 50, 0.15);
    position: relative;
}

.eyebrow-text {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 1rem;
}

.intro-body p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* 3) BLOQUE 4: CERTIFICACIONES ---------------------------- */
.section-certificaciones {
    background-color: #ebf5ec;
    padding-top: 40px;
    padding-bottom: 50px;
}

.premium-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    border: none !important;
    /* CAMBIO: El tercer valor (1.5rem) controla la parte inferior */
    /* Antes tenías 3.5rem o 3rem, bajándolo a 1.5rem se reduce el espacio */
    padding: 1.2rem 1.5rem 1rem 1.5rem; 
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.premium-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.1) !important;
}


/* Reduce el espacio entre el título y las tarjetas de certificación */
.section-certificaciones .titulo-proyectos {
    margin-bottom: 2rem !important;
}

.circular-image-wrapper {
    width: 120px;
    height: 120px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin: 0 auto 1.5rem;
    background-color: #f0f7f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.premium-card:hover .circular-image-wrapper {
    background-color: #ebf5ec;
}

/* 4) BLOQUE 5: SERVICIOS ---------------------------------- */
.section-services-gradient {
    background: #ebf5ec;
    /* Ajuste de altura para que suba igual que certificaciones */
    padding-top: 40px; 
    padding-bottom: 40px;
}

/* Acercamos las tarjetas de servicios al título */
.section-services-gradient .titulo-proyectos {
    margin-bottom: 2rem !important;
}

/* Reutilizamos el estilo de círculo para asegurar uniformidad */
.section-services-gradient .circular-image-wrapper {
    background-color: #ffffff; 
}

.section-services-gradient .premium-card:hover .circular-image-wrapper {
    background-color: #ebf5ec;
}

/* 5) BLOQUE 6: CALCULADORA + MAPA CO2 --------------------- */
.calculadora-seccion {
    background: #ffffff;
    padding: 60px 20px;
    border-radius: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calculadora-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.btn-calcular {
    background-color: var(--brand-green);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-calcular:hover {
    background-color: var(--brand-green-dark);
    transform: translateY(-3px);
    color: white;
}


/* 6) ==========
   BLOQUE 7 Y 8
   ============= */
.logo-marquee-section {
    padding: 40px 0;
    overflow: hidden;
    background: transparent;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    /* La duración la controla el JS para velocidad constante */
    animation-name: scrollInfinite;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* OPTIMIZACIÓN GPU: Fundamental para fluidez sin sombras */
    will-change: transform;
}

@keyframes scrollInfinite {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.participant-card {
    background: #ffffff !important;
    border-radius: 20px;
    width: 240px; 
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
    
    /* CERO SOMBRAS para máximo rendimiento */
    box-shadow: none !important;
    /* Borde sutil para que no se pierda en fondos claros */
    border: 1px solid #e5e7eb; 
}

.participant-card img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}


/* 8) COMPONENTES GLOBALES & RESPONSIVIDAD ----------------- */
.titulo-proyectos {
    font-family: "Poppins", sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
}

.titulo-proyectos::after {
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background: var(--brand-green);
    margin: 1rem auto 0;
    border-radius: 10px;
}

.card-title-premium {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 0.8rem;
}

.descripcion-premium {
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0 !important; 
}

@media (max-width: 991px) {
    .titulo-proyectos { font-size: 2.2rem; }
    .intro-surface { margin-top: 0; padding: 2.5rem 2rem; }
    .section-intro { padding-top: 60px; }
}

@media (max-width: 767px) {
    .premium-card { padding: 2.5rem 1.2rem; }
}