/* ==========================================================================
   ESTILOS DE LA SECCIÓN PROMO: REFIERE Y GANA (PROPORCIONES AJUSTADAS)
   ========================================================================== */

.section-refiere-gana {
    width: 100%;
    background-color: #8C1527; /* Guinda institucional */
    position: relative;
    overflow: hidden;
    padding: 80px 0 0 0; /* Pies al ras de abajo */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Capa de Parallax */
.refiere-confetti-layer {
    position: absolute;
    top: -10%; 
    left: 0;
    width: 100%;
    height: 120%; 
    
    background-image: url('../images/confeti-patron.webp'); 
    background-repeat: no-repeat; 
    background-position: center center;
    background-size: cover; 
    
    pointer-events: none;
    z-index: 1;
    will-change: background-position;
}

/* Contenedor Principal */
.refiere-container {
    width: 100%;
    max-width: 1200px; /* Recuperamos el ancho de 1200px para dar más espacio a las personas */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    position: relative;
    z-index: 2; 
}

/* Columna Izquierda: Información */
.refiere-content {
    flex: 1;
    max-width: 500px;
    color: #ffffff;
    padding: 20px 0 90px 0; 
}

.refiere-title {
    font-family: 'Exo', sans-serif;
    font-size: 3.5rem; 
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.refiere-subtitle {
    font-family: 'Exo', sans-serif;
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Botón Interactivo */
.refiere-btn {
    display: inline-block;
    background-color: #2C2825; 
    color: #ffffff;
    font-family: 'Exo', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 48px;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.refiere-btn:hover {
    background-color: #1a1715; 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Columna Derecha: Imagen de Personas (PUNTO MEDIO PERFECTO) */
.refiere-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end; 
    position: relative;
    line-height: 0;
}

.refiere-image-wrapper img {
    /* CORRECCIÓN: Subimos a 520px para que recuperen su tamaño ideal sin verse exageradas */
    max-width: 520px; 
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
    
    transform-origin: bottom right; 
    transform: scale(1); 
    
    filter: drop-shadow(0 -5px 15px rgba(0, 0, 0, 0.12));
}

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */
@media screen and (max-width: 992px) {
    .refiere-title {
        font-size: 2.8rem;
    }
    .refiere-subtitle {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .refiere-content {
        padding-bottom: 70px; 
    }
    .refiere-image-wrapper img {
        max-width: 420px; /* Escalado ideal para pantallas de laptops */
    }
}

@media screen and (max-width: 768px) {
    .section-refiere-gana {
        padding: 60px 0 0 0; 
    }

    .refiere-container {
        flex-direction: column;
        text-align: center;
        align-items: center; 
    }

    .refiere-content {
        max-width: 100%;
        padding: 0 0 35px 0; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .refiere-title {
        font-size: 2.5rem;
    }

    .refiere-subtitle {
        font-size: 1.5rem;
    }

    .refiere-image-wrapper {
        width: 100%;
        justify-content: center;
    }

    .refiere-image-wrapper img {
        transform-origin: bottom center; 
        max-width: 350px; /* Excelente tamaño para pantallas de celular */
    }
}