/* =========================================
   SOPA DE LETRAS (BLOG) POP-ART REDESIGN
   Style: Sunburst Pop + Compact Layout
   Target: .home-sopa
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Fredoka+One&family=Luckiest+Guy&display=swap');

/* 1. SECCIÓN PRINCIPAL (.home-sopa) */
.home-sopa {
    background-color: #F2F0E9 !important;
    /* Cream base Reference */
    position: relative;
    /* Reducción espacio vertical (Antes 5rem/6rem) */
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
    overflow: hidden !important;
    z-index: 1;
    border-bottom: 8px solid #1a1a1a !important;
}

/* 2. CAPA SUNBURST (RAYOS RADIALES) - ::before */
.home-sopa::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200vmax;

    /* Sunburst Pattern Sutil */
    background: repeating-conic-gradient(from 0deg at 50% 50%,
            #F2F0E9 0deg 3deg,
            #dbeafe 3deg 6deg
            /* Azul muy pálido para no competir con texto, referencia #127FE5 muy bajado */
        );

    opacity: 0.4;
    /* Visible pero suave */
    z-index: -2;
    pointer-events: none;
}

/* 3. CAPA TEXTURA DOTS (Halftone) - ::after */
.home-sopa::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    /* 10% visible */

    /* Halftone Dots */
    background-image: radial-gradient(#111 2px, transparent 2px);
    background-size: 20px 20px;
}

/* 4. HEADER SECCIÓN */

/* Título Sopa */
.home-sopa h2 {
    font-family: 'Bangers', cursive !important;
    text-shadow: 3px 3px 0 #111 !important;
    transform: rotate(-1deg);
    color: #fff !important;
    position: relative;
    z-index: 2;
    margin-bottom: 0 !important;
    /* Reducir margen */
}

/* Contenedor Flex Header (ajuste márgenes) */
.home-sopa .flex.justify-between {
    margin-bottom: 3rem !important;
    /* Antes mb-24 (~6rem) */
    align-items: center !important;
}

/* Botón "Ver Todo" (Header) */
.home-sopa .ver-todo-btn {
    background-color: #111 !important;
    color: #F0E588 !important;
    /* Amarillo */
    font-family: 'Bangers', cursive !important;
    font-size: 1.2rem !important;
    padding: 0.5rem 1.5rem !important;
    border: 3px solid #F0E588 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
}

/* 5. TARJETAS (CARDS) */
.home-sopa article {
    background-color: #ffffff !important;
    border: 3px solid #111 !important;
    box-shadow: 6px 6px 0 0 #111 !important;
    padding: 1.5rem !important;
    /* Padding interno reducido */
    gap: 1rem !important;
    position: relative;
    z-index: 2;
}

.home-sopa article:hover {
    transform: translate(-3px, -3px) !important;
    box-shadow: 9px 9px 0 0 #ED1A24 !important;
    /* Sombra Roja al hover */
}

/* Badge Categoría */
.home-sopa article span.bg-pop-black {
    background-color: #127FE5 !important;
    /* Azul */
    color: #fff !important;
    border: 2px solid #111 !important;
    box-shadow: 2px 2px 0 0 #111 !important;
    font-family: 'Fredoka One', cursive !important;
    font-size: 0.7rem !important;
}

/* Fecha */
.home-sopa article span.font-pop {
    font-size: 0.8rem !important;
    color: #666 !important;
}

/* Título Post */
.home-sopa article h3 {
    font-family: 'Luckiest Guy', cursive !important;
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    color: #111 !important;
    margin-bottom: 0.5rem !important;
}

/* Excerpt (Snippet) Reducido */
.home-sopa article .text-stone-600 {
    font-family: 'Fredoka One', cursive !important;
    font-size: 16px !important;
    /* ~1rem reduced */
    line-height: 1.4 !important;
    color: #444 !important;
    margin-bottom: 1.5rem !important;
}

/* BOTÓN "LEER MÁS" (COMIC STYLE) */
/* Selector asume que es un span o link al final */
.home-sopa article .border-t-4 {
    border: none !important;
    padding: 0 !important;
}

.home-sopa article span.text-3xl {
    display: inline-block !important;
    background-color: #F39314 !important;
    /* Naranja */
    color: #111 !important;
    font-family: 'Bangers', cursive !important;
    font-size: 1.2rem !important;
    /* Ajustado */
    padding: 0.6rem 1.5rem !important;
    border: 3px solid #111 !important;
    box-shadow: 4px 4px 0 0 #111 !important;
    /* Sombra dura */
    text-transform: uppercase !important;
    letter-spacing: 1px;
    width: auto !important;
    /* No full width */
    text-align: center;
    transition: all 0.2s !important;
}

/* Hover Botón Leer Más */
.home-sopa article:hover span.text-3xl,
.home-sopa article span.text-3xl:hover {
    background-color: #ED1A24 !important;
    /* Rojo */
    color: #fff !important;
    transform: translate(2px, 2px) !important;
    /* Movimiento físico */
    box-shadow: 2px 2px 0 0 #111 !important;
    /* Sombra se reduce al clickar/hover */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .home-sopa {
        padding: 3rem 1rem !important;
    }
}