* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8fafc;
            color: #2c3e50;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: #1e3c72;
            padding: 2rem 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            border-bottom: 1px solid #e2e8f0;
        }

        .header-content {
            text-align: center;
        }

        .header-content .page-title h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .header-content .page-title p {
            font-size: 1.1rem;
            opacity: 0.7;
            color: #64748b;
        }

        /* Main Content */
        .main-content {
            padding: 3rem 0;
        }

        .page-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .page-title h1 {
            font-size: 3rem;
            font-weight: 700;
            color: #1e3c72;
            margin-bottom: 1rem;
        }

        .page-title p {
            font-size: 1.2rem;
            color: #64748b;
            max-width: 600px;
            margin: 0 auto;
        }

        /* News Grid */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
            overflow: visible;
        }

        /* News Cards */
        .news-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
        }

        /* Hover mejorado para tarjetas destacadas */
        .news-card.featured:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
        }

        .news-card.featured {
            position: relative;
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            min-height: 300px;
            background: white;
            border: 4px solid #667eea;
            animation: border-color-change 4s ease infinite;
        }

        @keyframes border-color-change {
            0% { border-color: #667eea; }
            25% { border-color: #764ba2; }
            50% { border-color: #f093fb; }
            75% { border-color: #4facfe; }
            100% { border-color: #667eea; }
        }

        .card-image {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }

        .news-card.featured .card-image {
            height: 100%;
        }

        .card-content {
            padding: 1.5rem;
        }

        .card-category {
            display: inline-block;
            background: #3498db;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .card-category.update {
            background: #27ae60;
        }

        .card-category.feature {
            background: #9b59b6;
        }

        .card-category.arca {
            background: #000000;
        }

        .card-category.maintenance {
            background: #e67e22;
        }

        .card-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #1e3c72;
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .news-card.featured .card-title {
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }

        .card-description {
            color: #64748b;
            margin-bottom: 1rem;
            font-size: 0.95rem;
            white-space: pre-line;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid #e2e8f0;
        }

        .card-date {
            color: #94a3b8;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .card-link {
            color: #3498db;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: color 0.3s ease;
        }

        .card-link:hover {
            color: #2980b9;
        }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 3rem 0;
            text-align: center;
            border-radius: 12px;
            margin: 3rem 0;
        }

        .cta-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .cta-description {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            display: inline-block;
            background: #3498db;
            color: white;
            padding: 1rem 2rem;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .cta-button:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }

        /* Footer */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 2rem 0;
            text-align: center;
        }

        .footer p {
            opacity: 0.8;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content .page-title h1 {
                font-size: 2rem;
            }

            .news-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .news-card.featured {
                grid-template-columns: 1fr;
            }

            .news-card.featured .card-image {
                height: 200px;
            }

            .container {
                padding: 0 15px;
            }
        }

        /* Loading Animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loading-container {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            text-align: center;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }

        .loading-container p {
            color: #64748b;
            font-size: 1.1rem;
        }

        .error-container {
            grid-column: 1 / -1;
            background: #fee2e2;
            border: 1px solid #fca5a5;
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
        }

        .error-container h3 {
            color: #dc2626;
            margin-bottom: 1rem;
        }

        .error-container p {
            color: #7f1d1d;
            margin-bottom: 1rem;
        }

        .retry-button {
            background: #3498db;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.3s ease;
        }

        .retry-button:hover {
            background: #2980b9;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Animaciones para tarjetas destacadas */
        @keyframes featured-entrance {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes gradient-rotate {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes pulse-badge {
            0%, 100% {
                transform: scale(1) rotate(-2deg);
                box-shadow: 0 8px 25px rgba(255, 107, 107, 0.8);
            }
            50% {
                transform: scale(1.15) rotate(2deg);
                box-shadow: 0 12px 40px rgba(255, 107, 107, 1);
            }
        }

        @keyframes shadow-pulse {
            0%, 100% {
                box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
            }
            50% {
                box-shadow: 0 30px 80px rgba(102, 126, 234, 0.7);
            }
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }
            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }

        @keyframes glow-pulse {
            0%, 100% {
                opacity: 0.6;
                filter: blur(8px);
            }
            50% {
                opacity: 0.9;
                filter: blur(12px);
            }
        }


        /* Agregar estas reglas a tu CSS existente */

/* Agregar estas reglas a tu CSS existente */

/* Hacer que las cards usen flexbox sin altura fija */
.news-card {
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Altura mínima en lugar de fija */
}

/* El contenido de la card debe ocupar todo el espacio disponible */
.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

/* Categoría más compacta */
.card-category {
    display: inline-block;
    width: fit-content; /* Solo el ancho necesario */
    align-self: flex-start; /* Se alinea al inicio, no se estira */
}

/* La descripción debe crecer para ocupar espacio disponible */
.card-description {
    flex-grow: 1; /* Crece para ocupar el espacio disponible */
    margin-bottom: 1rem;
}

/* El footer (meta) siempre al final */
.card-meta {
    margin-top: auto; /* Se posiciona al final */
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.card-likes {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
