/**
 * Archivo: assets/css/colabwp-promo.css
 * Descripción: Estilos para el bloque promocional de colaboradores
 */

.colabwp-promo-block {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.colabwp-promo-container {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(208, 18, 97, 0.1);
    border: 1px solid rgba(208, 18, 97, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.colabwp-promo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(208, 18, 97, 0.15);
}

/* Columna de imagen */
.colabwp-promo-image {
    flex: 1 1 450px;
    min-height: 350px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.colabwp-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Overlay con gradiente */
.colabwp-promo-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(208, 18, 97, 0.8), transparent);
    pointer-events: none;
}

/* Badge en la imagen - CAMBIO: Gradiente dorado */
.colabwp-promo-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500); /* Gradiente dorado */
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.colabwp-promo-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Columna de contenido */
.colabwp-promo-content {
    flex: 1 1 450px;
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.colabwp-promo-subtitle {
    color: #d01261;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.colabwp-promo-subtitle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.colabwp-promo-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.colabwp-promo-title span {
    background: linear-gradient(135deg, #d01261, #ff1744);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.colabwp-promo-description {
    font-size: 17px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

/* Botón CTA */
.colabwp-promo-buttons {
    display: flex;
    justify-content: flex-start;
}

.colabwp-promo-buttons-center {
    display: flex;
    justify-content: center;
}

.colabwp-promo-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(208, 18, 97, 0.3);
}

.colabwp-promo-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(208, 18, 97, 0.4);
    color: white;
    text-decoration: none;
}

.colabwp-promo-cta-primary .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
}

/* Estadísticas */
.colabwp-promo-stats {
    display: flex;
    gap: 30px;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #e9ecef;
}

.colabwp-promo-stat {
    text-align: left;
}

.colabwp-promo-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #d01261;
    margin: 0;
    line-height: 1;
}

.colabwp-promo-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .colabwp-promo-content {
        padding: 35px;
    }
    
    .colabwp-promo-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .colabwp-promo-block {
        margin: 30px 0; /* Cambio: margin lateral 0 */
        padding: 0 15px; /* Mantener un poco de padding para no pegar al borde */
    }
    
    /* IMPORTANTE: Mantener bordes redondeados en mobile */
    .colabwp-promo-container {
        flex-direction: column;
        border-radius: 16px; /* Mantener bordes redondeados */
        overflow: hidden; /* Importante para que los bordes redondeados funcionen */
    }
    
    .colabwp-promo-image {
        min-height: 280px;
        width: 100%;
        position: relative;
        /* Los bordes superiores serán redondeados por el overflow: hidden del container */
    }
    
    .colabwp-promo-image img {
        position: relative;
    }
    
    .colabwp-promo-content {
        padding: 30px 25px;
    }
    
    .colabwp-promo-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .colabwp-promo-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .colabwp-promo-buttons {
        justify-content: center;
    }
    
    /* CAMBIO: Texto del botón aún más pequeño en mobile */
    .colabwp-promo-cta-primary {
        width: 100%;
        justify-content: center;
        font-size: 13px; /* Reducido de 14px a 13px */
        padding: 12px 24px; /* Padding más compacto */
        letter-spacing: 0.2px; /* Menos espaciado */
    }
    
    .colabwp-promo-cta-primary .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    .colabwp-promo-stats {
        gap: 20px;
        margin-top: 30px;
        padding-top: 30px;
        justify-content: space-around;
        text-align: center;
    }
    
    .colabwp-promo-stat {
        text-align: center;
    }
    
    .colabwp-promo-stat-number {
        font-size: 28px;
    }
    
    /* Badge más pequeño en mobile */
    .colabwp-promo-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .colabwp-promo-badge .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .colabwp-promo-block {
        padding: 0 10px; /* Menos padding en móviles pequeños */
    }
    
    .colabwp-promo-container {
        border-radius: 12px; /* Bordes ligeramente menos redondeados */
    }
    
    .colabwp-promo-content {
        padding: 25px 20px;
    }
    
    .colabwp-promo-title {
        font-size: 24px;
    }
    
    .colabwp-promo-description {
        font-size: 15px;
    }
    
    .colabwp-promo-badge {
        top: 20px;
        left: 20px;
        font-size: 11px;
        padding: 5px 14px;
    }
    
    /* CAMBIO: Texto aún más pequeño en móviles pequeños */
    .colabwp-promo-cta-primary {
        font-size: 12px; /* Reducido de 13px a 12px */
        padding: 11px 20px; /* Padding aún más compacto */
        letter-spacing: 0.1px;
    }
    
    .colabwp-promo-cta-primary .dashicons {
        font-size: 15px;
        width: 15px;
        height: 15px;
    }
    
    .colabwp-promo-stat-number {
        font-size: 26px;
    }
    
    .colabwp-promo-stat-label {
        font-size: 12px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.colabwp-promo-block {
    animation: fadeInUp 0.8s ease;
}