
        /* ======================================
               CONFIGURACIÓN GENERAL & VARIABLES
            ====================================== */
        :root {
            --primary-color: #71b13d;
            --primary-hover: #5a962a;
            --text-dark: #111827;
            --text-gray: #6b7280;
            --bg-card: #ffffff;
            --radius: 16px;
            --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
            --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.08);
        }

        /* =========================================
               🚨 COMPATIBILIDAD CON EDITOR QUILL (FIX)
               Estos estilos hacen que el centrado y 
               las tablas se vean bien en la web pública
            ========================================= */
        .ql-align-center {
            text-align: center;
            display: block;
        }

        .ql-align-right {
            text-align: right;
            display: block;
        }

        .ql-align-justify {
            text-align: justify;
            display: block;
        }

        blockquote {
            border-left: 4px solid #ccc;
            margin: 10px 0;
            padding-left: 15px;
            font-style: italic;
            color: #555;
        }

        /* Asegura que las imágenes del contenido no se salgan */
        .blog-content img {
            max-width: 100%;
            height: auto;
        }

        /* ======================================
               LAYOUT
            ====================================== */
        .page-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: clamp(20px, 5vw, 60px);
            padding-bottom: -10px;
        }

        /* ======================================
               HERO (Encabezado Fluido)
            ====================================== */
        .blog-hero {
            text-align: center;
            margin-bottom: clamp(30px, 5vw, 60px);
        }

        .blog-hero h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 800;
            color: var(--text-dark);
            margin-bottom: 15px;
            letter-spacing: -0.03em;
            line-height: 1.1;
        }

        .blog-hero p {
            color: var(--text-gray);
            font-size: clamp(1rem, 2vw, 1.25rem);
            max-width: 650px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* ======================================
               BUSCADOR ESTILIZADO
            ====================================== */
        .search-container {
            max-width: 500px;
            margin: 0 auto clamp(40px, 5vw, 60px);
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 16px 25px;
            padding-right: 130px;
            border-radius: 50px;
            border: 1px solid #e5e7eb;
            background: #fff;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
            font-size: 1rem;
            transition: all 0.3s ease;
            outline: none;
        }

        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 4px 25px rgba(113, 177, 61, 0.2);
        }

        .search-btn {
            position: absolute;
            right: 6px;
            top: 6px;
            bottom: 6px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 0 25px;
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .search-btn:hover {
            background: var(--primary-hover);
        }

        /* ======================================
               GRID RESPONSIVE AVANZADO
            ====================================== */
        .blog-gallery {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            width: 100%;
        }

        /* ======================================
               TARJETA (CARD)
            ====================================== */
        .blog-card {
            background: var(--bg-card);
            border: 1px solid #f3f4f6;
            border-radius: var(--radius);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: var(--shadow-sm);
            height: 100%;
            position: relative;
        }

        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            border-color: transparent;
        }

        .card-image-wrapper {
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
            background: #f9fafb;
            position: relative;
        }

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

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

        .card-content {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .blog-date {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .blog-title {
            font-size: clamp(1.1rem, 1.5vw, 1.3rem);
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 12px;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .blog-excerpt {
            font-size: 0.95rem;
            color: var(--text-gray);
            line-height: 1.6;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
        }

        .card-footer {
            border-top: 1px solid #f3f4f6;
            padding-top: 15px;
            margin-top: auto;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 6px;
            transition: gap 0.2s ease;
        }

        .blog-card:hover .card-footer {
            gap: 10px;
        }

        .badge-new {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(17, 24, 39, 0.9);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 800;
            padding: 5px 12px;
            border-radius: 30px;
            z-index: 10;
            backdrop-filter: blur(4px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        /* ======================================
               MEDIA QUERIES
            ====================================== */
        @media (max-width: 1400px) {
            .blog-gallery {
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
        }

        @media (max-width: 992px) {
            .blog-gallery {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .card-content {
                padding: 20px;
            }
        }

        @media (max-width: 640px) {
            .blog-gallery {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .search-input {
                padding: 14px 20px;
                font-size: 0.95rem;
            }

            .search-btn {
                padding: 0 20px;
            }
        }

        @media (max-width: 991px) {
            .page-main {
                padding-bottom: 0px;
            }
        }

        /* ======================================
               PAGINACIÓN ESTILIZADA (FIX)
               Corrige los SVGs gigantes de Laravel y
               da un diseño premium, limpio y responsivo.
            ====================================== */
        .pagination-wrapper nav {
            background: transparent;
            box-shadow: none;
            width: 100%;
        }

        /* Ocultar bloque móvil duplicado de Tailwind para mantener consistencia */
        .pagination-wrapper .flex.justify-between.flex-1 {
            display: none !important;
        }

        /* Hacer que el bloque principal de paginación sea responsivo y moderno */
        .pagination-wrapper div:last-child {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 15px !important;
            width: 100% !important;
        }

        /* Estilo del texto de resultados (ej: Del 1 al 12 de 15 resultados) */
        .pagination-wrapper div:last-child p {
            font-size: 0.95rem !important;
            color: var(--text-gray) !important;
            margin: 0 !important;
        }

        /* Estilo del contenedor de los botones de números [1, 2...] */
        .pagination-wrapper span.relative.z-0.inline-flex {
            display: inline-flex !important;
            gap: 6px !important;
            box-shadow: none !important;
            border-radius: 0 !important;
        }

        /* Ajuste del tamaño de los SVG (las flechas enormes < y >) */
        .pagination-wrapper svg {
            width: 18px !important;
            height: 18px !important;
            display: inline-block !important;
            vertical-align: middle !important;
        }

        /* Limpiar el span intermedio para evitar doble recuadro */
        .pagination-wrapper span.relative.z-0.inline-flex>span {
            border: none !important;
            background: transparent !important;
            padding: 0 !important;
            margin: 0 !important;
            display: inline-block !important;
            box-shadow: none !important;
        }

        /* Estilo base para todos los botones de la paginación (enlaces y spans activos/deshabilitados) */
        .pagination-wrapper span.relative.z-0.inline-flex>a,
        .pagination-wrapper span.relative.z-0.inline-flex>span>span {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 44px !important;
            height: 44px !important;
            padding: 0 14px !important;
            border-radius: 10px !important;
            border: 1px solid #e5e7eb !important;
            background-color: #ffffff !important;
            color: var(--text-dark) !important;
            font-weight: 700 !important;
            font-size: 1.15rem !important;
            /* Más grande como solicita el usuario */
            text-decoration: none !important;
            transition: all 0.2s ease !important;
            cursor: pointer !important;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
        }

        .pagination-wrapper span.relative.z-0.inline-flex>a:hover {
            border-color: var(--primary-color) !important;
            background-color: var(--primary-color) !important;
            color: #ffffff !important;
        }

        /* Estilo para la página activa */
        .pagination-wrapper span[aria-current="page"]>span {
            background-color: var(--primary-color) !important;
            border-color: var(--primary-color) !important;
            color: #ffffff !important;
            cursor: default !important;
        }

        /* Estilo para botones deshabilitados (ej: flechas deshabilitadas) */
        .pagination-wrapper span[aria-disabled="true"]>span {
            background-color: #f9fafb !important;
            color: #d1d5db !important;
            cursor: not-allowed !important;
            border-color: #e5e7eb !important;
        }
    