/**
 * Blog CTA Components - Professional & Compact
 * Sistema de clases CSS para CTAs del blog - Diseño sutil y profesional
 */

/* ==========================================================================
   Container Principal
   ========================================================================== */

.blog-cta {
    position: relative;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Wrapper con gradiente sutil */
.blog-cta__wrapper {
    position: relative;
    background: linear-gradient(135deg, #4E8AFF 0%, #3B5BA5 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(46, 77, 147, 0.15);
    transition: all 0.3s ease;
}

.blog-cta__wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(46, 77, 147, 0.2);
}

/* Pattern de fondo decorativo */
.blog-cta__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 20px 20px, white 2px, transparent 0),
        radial-gradient(circle at 60px 60px, white 1px, transparent 0);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Overlay para profundidad */
.blog-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.blog-cta__content {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .blog-cta__content {
        padding: 2.25rem 2rem;
    }
}

@media (min-width: 768px) {
    .blog-cta__content {
        padding: 2.5rem 3rem;
    }
}

/* ==========================================================================
   Icon Badge - Oculto por defecto, se puede mostrar si se desea
   ========================================================================== */

.blog-cta__icon {
    display: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.blog-cta__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .blog-cta__title {
        font-size: 1.625rem;
    }
}

@media (min-width: 768px) {
    .blog-cta__title {
        font-size: 1.875rem;
    }
}

.blog-cta__subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
    .blog-cta__subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .blog-cta__subtitle {
        font-size: 1.0625rem;
    }
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.blog-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: #FFFFFF;
    color: #2D4373;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-cta__button:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.blog-cta__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.blog-cta__button:active {
    transform: translateY(0);
}

.blog-cta__button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.blog-cta__button:hover svg {
    transform: translateX(3px);
}

@media (min-width: 640px) {
    .blog-cta__button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Trust Indicators - Más compactos
   ========================================================================== */

.blog-cta__trust {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-cta__trust-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
    .blog-cta__trust-list {
        gap: 1.25rem;
        font-size: 0.875rem;
    }
}

.blog-cta__trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-cta__trust-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.blog-cta__trust-separator {
    display: none;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
    .blog-cta__trust-separator {
        display: block;
    }
}

/* Rating stars */
.blog-cta__stars {
    display: flex;
    gap: 2px;
    margin-right: 0.25rem;
}

.blog-cta__stars svg {
    width: 14px;
    height: 14px;
    color: #FCD34D;
    fill: currentColor;
}

/* ==========================================================================
   Dark Mode Support (opcional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .blog-cta__wrapper {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .blog-cta__wrapper:hover {
        box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .blog-cta {
        page-break-inside: avoid;
    }

    .blog-cta__wrapper {
        box-shadow: none;
        border: 2px solid #4E8AFF;
    }

    .blog-cta__pattern,
    .blog-cta__overlay {
        display: none;
    }
}
