/* Estilos para la sección del blog - La Pluma de Alex Corzo */

:root {
    --blog-primary: #1E1E1E;
    --blog-secondary: #F5F5F5;
    --blog-accent: #FF6B00;
    --blog-text: #333333;
    --blog-substack: #FF6B00;
    --blog-subscribe: #1A1A1A;
    --blog-gradient: linear-gradient(135deg, var(--blog-primary), #444444);
    --blog-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    --blog-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Sección principal */
.blog-section {
    padding: 70px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    background-image: url('../img/recursos/pngtree-vintage-book-cover-s-aged-fabric-texture-image_13871737.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(245, 245, 220, 0.92));
    z-index: 0;
}

.blog-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
    z-index: 1;
    pointer-events: none;
}

.blog-section .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    padding: 0 30px;
}

/* Contenido del blog */
.blog-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--blog-shadow);
    overflow: hidden;
    transition: var(--blog-transition);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Contenedor de la imagen */
.blog-image-container {
    flex: 1;
    max-width: 40%;
    min-height: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

/* Carrusel de imágenes */
.blog-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.blog-slide.active {
    opacity: 1;
    z-index: 2;
}

.blog-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blog-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.blog-slider-dots {
    display: flex;
    gap: 10px;
}

.blog-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-slider-dot.active {
    background-color: var(--blog-accent);
    transform: scale(1.2);
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--blog-transition);
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
    padding: 20px;
}

.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%);
    z-index: 2;
}

.blog-image-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: var(--blog-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--blog-transition);
    transform: rotate(-15deg);
}

.blog-image-badge i {
    font-size: 2rem;
    color: white;
}

.blog-content:hover .blog-image-badge {
    transform: rotate(0deg) scale(1.1);
}

.blog-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0));
    z-index: 1;
    pointer-events: none;
}

.blog-image-container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.blog-content:hover .blog-image-container::after {
    opacity: 1;
    transform: scale(1);
}

.blog-content:hover .blog-image {
    transform: scale(1.08);
}

/* Texto del blog */
.blog-text {
    flex: 1;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(250,250,250,1) 100%);
}

.blog-title {
    font-family: var(--font-primary);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--blog-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.blog-title::before {
    content: '"';
    position: absolute;
    left: -25px;
    top: -15px;
    font-size: 4rem;
    color: var(--blog-accent);
    opacity: 0.2;
    font-family: serif;
}

.blog-title::after {
    content: '"';
    position: absolute;
    right: -25px;
    bottom: -15px;
    font-size: 4rem;
    color: var(--blog-accent);
    opacity: 0.2;
    font-family: serif;
}

.blog-divider {
    width: 100px;
    height: 3px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.blog-divider span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--blog-accent);
    position: relative;
}

.blog-divider span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.blog-description {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--blog-text);
    margin-bottom: 50px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--blog-accent);
    opacity: 0.9;
}

/* Botones CTA */
.blog-cta {
    display: flex;
    gap: 20px;
    margin-top: auto;
    position: relative;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--blog-accent);
    opacity: 0.5;
}

.btn-substack,
.btn-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--blog-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-substack::before,
.btn-subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-substack:hover::before,
.btn-subscribe:hover::before {
    left: 100%;
}

.btn-substack {
    background-color: var(--blog-substack);
    color: white;
}

.btn-substack:hover {
    background-color: #E05F00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.btn-subscribe {
    background-color: var(--blog-subscribe);
    color: white;
}

.btn-subscribe:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-substack i,
.btn-subscribe i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Estilos responsivos */
@media screen and (max-width: 1200px) {
    .blog-content {
        gap: 40px;
    }
    
    .blog-text {
        padding: 40px;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 992px) {
    .blog-content {
        flex-direction: column;
    }
    
    .blog-image-container {
        max-width: 100%;
        height: 350px;
    }
    
    .blog-text {
        padding: 40px;
    }
}

@media screen and (max-width: 768px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-image-container {
        height: 280px;
    }
    
    .blog-image {
        padding: 30px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-description {
        font-size: 1rem;
    }
    
    .blog-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-substack,
    .btn-subscribe {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .blog-text {
        padding: 30px 20px;
    }
    
    .blog-image-container {
        height: 220px;
    }
    
    .blog-image {
        padding: 25px;
        object-fit: contain;
    }
    
    .blog-image-badge {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .blog-image-badge i {
        font-size: 1.5rem;
    }
}

/* Estilos para los banners de Substack */
.blog-banners-section {
    padding: 50px 0;
    background-color: #f9f9f9;
    position: relative;
}

.blog-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-banner-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: var(--blog-transition);
    position: relative;
    height: 300px;
}

.blog-banner-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.blog-banner-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.blog-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--blog-transition);
}

.blog-banner-item:hover .blog-banner-image {
    transform: scale(1.05);
}

.blog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    box-sizing: border-box;
    transition: var(--blog-transition);
}

.blog-banner-item:hover .blog-banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

.blog-banner-content {
    width: 100%;
}

.blog-banner-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.blog-banner-description {
    font-family: var(--font-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.blog-banner-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blog-accent);
    transition: var(--blog-transition);
}

.blog-banner-button i {
    margin-right: 8px;
    transition: var(--blog-transition);
}

.blog-banner-item:hover .blog-banner-button {
    color: white;
}

.blog-banner-item:hover .blog-banner-button i {
    transform: translateX(5px);
}

/* Responsive para los banners */
@media screen and (max-width: 992px) {
    .blog-banners {
        gap: 20px;
    }
    
    .blog-banner-item {
        height: 250px;
    }
    
    .blog-banner-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-banners-section {
        padding: 60px 0;
    }
    
    .blog-banners {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }
    
    .blog-banner-item {
        height: 200px;
    }
}

@media screen and (max-width: 576px) {
    .blog-banner-overlay {
        padding: 20px;
    }
    
    .blog-banner-title {
        font-size: 1.3rem;
    }
    
    .blog-banner-description {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}
