/* ========================================
   BLOG PAGE STYLES
   Studio Nola Atelier
   ======================================== */

/* Variables de color - Estilo Studio Nola */
:root {
    --blog-bg: #000000;
    --blog-card-bg: rgba(255, 255, 255, 0.12);
    --blog-text: #000000;
    --blog-text-muted: #bcbcc6;
    --blog-accent: #7c3aed;
    --blog-hover: rgba(124, 58, 237, 0.12);
    --blog-border: rgba(255, 255, 255, 0.25);
    --blog-radius: 18px;
    --blog-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Reset y base */
.body {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0), transparent 30%);
    color: var(--blog-text);
    min-height: 100vh;
    cursor: none;
    font-family: "Bebas Neue", sans-serif;
}

/* Cursor personalizado */
#cursor2 {
    pointer-events: none;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

.blog-header {
    padding: 2rem 5%;
    max-width: 1100px;
    margin: 0 auto;
}

#title2 {
    font-size: clamp(28px, 4vw, 62px);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.div_back {
    font-size: 1rem;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 3px solid var(--blog-accent);
    border-radius: 14px;
    color: var(--blog-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.18s ease;
    font-size: clamp(18px, 2vw, 22px);
}

.back:hover {
    border-color: #21d63f;
    border-width: 3px;
    transform: translateX(-5px);
}

.back .svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

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

/* ========================================
   CATEGORÍAS / FILTROS
   ======================================== */

.blog-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: transparent;
    color: var(--blog-text);
    font-size: 1.2em;
    font-weight: 100;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
}

.category-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.35);
}

.category-btn.active {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.5);
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 3rem;
}

@media (min-width: 720px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CARDS DE ARTÍCULOS - GLASSMORPHISM
   ======================================== */

.blog-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    outline: 1.5px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
}

/* Imagen del artículo */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* Badge de categoría */
.blog-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 6px 10px;
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #000000;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    font-family: "monospace", sans-serif;
}

/* Contenido del card */
.blog-card-content {
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 14px;
    color: var(--blog-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
    font-family: monospace;
}

.blog-card-title {
    font-size: clamp(18px, 2.6vw, 20px);
    font-weight: 100;
    line-height: 1.3;
    margin: 10px 0 2px;
    color: var(--blog-text);
    transition: color 0.3s ease;
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
}

.blog-card:hover .blog-card-title {
    color: var(--blog-accent);
}

.blog-card-excerpt {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
    color: var(--blog-text);
    margin: 0 0 12px;
    flex-grow: 1;
    font-family: monospace;
}

/* Link de "Leer artículo" - Estilo botón servicios */
.blog-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 90%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 3px solid var(--blog-accent);
    background: rgba(124, 58, 237, 0.15);
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(18px, 2vw, 22px);
    transition: transform 0.18s ease, border-color 0.18s ease;
    align-self: center;
    margin: 12px 0 20px;
    font-family: "Bebas Neue", sans-serif;
}

.blog-card-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.blog-card-link:hover {
    border-color: #21d63f;
    border-width: 3px;
}

.blog-card-link:hover svg {
    transform: translateX(5px);
}

/* Link deshabilitado (próximamente) */
.blog-card-link--disabled {
    color: var(--blog-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.blog-card-link--disabled:hover {
    gap: 0.5rem;
    color: var(--blog-text-muted);
}

/* ========================================
   ESTADO VACÍO
   ======================================== */

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--blog-text-muted);
    font-size: 1.25rem;
}

/* ========================================
   CTA FOOTER - GLASSMORPHISM
   ======================================== */

.blog-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    margin: 4rem 5% 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 1rem;
    color: var(--blog-text);
    font-family: "Bebas Neue", sans-serif;
    text-transform: uppercase;
}

.blog-cta p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--blog-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: monospace;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 2.5rem;
    border-radius: 14px;
    border: 3px solid var(--blog-accent);
    background: rgba(124, 58, 237, 0.15);
    color: #000000;
    font-weight: 600;
    font-size: clamp(24px, 2vw, 28px);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
    font-family: "Bebas Neue", sans-serif;
}

.cta-button:hover {
    border-color: #21d63f;
    border-width: 3px;
}

/* ========================================
   ANIMACIONES DE FILTRO
   ======================================== */

.blog-card.filtered-out {
    display: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    #title2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 1.5rem 4%;
    }
    
    #title2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-title {
        font-size: 1.3rem;
    }
    
    .blog-cta {
        padding: 3rem 1.5rem;
        margin: 3rem 4% 2rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 1rem 3%;
    }
    
    .blog-container {
        padding: 0 3% 3rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .back {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   CURSOR PERSONALIZADO
   ======================================== */

#cursor2 {
    pointer-events: none;
}

/* ========================================
   REVEAL ANIMATIONS - ESTILO SERVICIOS
   ======================================== */

.reveal-up {
    opacity: 0;
    transform: translateY(14px);
    will-change: transform, opacity;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s ease, transform 0.9s ease;
    transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ========================================
   SMOOTH SCROLL
   ======================================== */

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 84px;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #7c3aed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    border-color: #21d63f;
    color: #21d63f;
    transform: translateY(-5px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   CLICKEABLE TITLES & IMAGES
   ======================================== */

.blog-card-image {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.blog-card-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.blog-card-title-link:hover .blog-card-title {
    color: #7c3aed;
}
