/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(25px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(118, 75, 162, 0.05) 50%, 
        rgba(240, 147, 251, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover::before {
    opacity: 1;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.3) 20%, 
        rgba(102, 126, 234, 0.6) 50%, 
        rgba(102, 126, 234, 0.3) 80%, 
        transparent 100%);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: all 0.4s ease;
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 12px 20px;
    border-radius: 25px;
    overflow: hidden;
}

.nav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-list a:hover::before {
    opacity: 1;
}

.nav-list a:hover::after {
    width: 80%;
}

.nav-list a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #667eea 50%, #764ba2 75%, #f093fb 100%);
    background-size: 400% 400%;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="80" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1.2" fill="rgba(255,255,255,0.2)"/><circle cx="10" cy="60" r="0.6" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="10" r="1.8" fill="rgba(255,255,255,0.12)"/><circle cx="30" cy="50" r="0.9" fill="rgba(255,255,255,0.18)"/></svg>');
    animation: sparkle 12s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-10px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.5; }
    75% { transform: translateY(-10px) rotate(270deg); opacity: 0.7; }
    100% { transform: translateY(0px) rotate(360deg); opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* Elementos flotantes */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatElement 20s linear infinite;
}

.floating-element:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

@keyframes floatElement {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.5s forwards, textShine 3s ease-in-out infinite 2s;
    opacity: 0;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #667eea;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

/* Main Content */
.main {
    padding: 80px 0 120px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1f2937;
}

/* Articles Grid */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 100px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 40px 20px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .articles-grid {
        gap: 30px;
        max-width: 1300px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1300px;
    }
    
    .articles-grid {
        gap: 25px;
        max-width: 1200px;
    }
}

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, height 0.5s ease, margin 0.5s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 400px;
}

.article-card.expanded {
    overflow: visible;
    height: auto;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.article-card.featured {
    height: 400px;
}

.article-card .article-image {
    height: 100%;
    min-height: 100%;
}

.article-card .article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    height: 100%;
}

.article-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-width: 100%;
    object-fit: cover;
}

.article-card.featured .article-image {
    height: 100%;
    object-fit: cover;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.article-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex-shrink: 0;
}

.article-card.featured .article-content h3 {
    font-size: 24px;
}

.article-content h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #667eea;
}

.article-content p {
    color: #6b7280;
    margin-bottom: auto;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
    margin-top: auto;
    padding: 20px 25px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.article-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.2) 20%, 
        rgba(59, 130, 246, 0.4) 50%, 
        rgba(59, 130, 246, 0.2) 80%, 
        transparent 100%);
}

.article-meta .author {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta .author::before {
    content: '👤';
    font-size: 16px;
}

.article-meta .date {
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta .date::before {
    content: '📅';
    font-size: 16px;
}

/* Services Section */
.services-section {
    background: #f9fafb;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
}

.about-content p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    background: #f9fafb;
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #1f2937;
}

.contact-info p {
    margin-bottom: 15px;
    color: #6b7280;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form button {
    background: #667eea;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #5a67d8;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
}

/* Separadores decorativos para secciones */
.section-divider {
    width: 100%;
    height: 2px;
    margin: 80px 0;
    position: relative;
    background: transparent;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.1) 20%, 
        rgba(59, 130, 246, 0.3) 50%, 
        rgba(59, 130, 246, 0.1) 80%, 
        transparent 100%);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Separador más sutil para subsecciones */
.subsection-divider {
    width: 100%;
    height: 1px;
    margin: 40px 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.05) 30%, 
        rgba(59, 130, 246, 0.15) 50%, 
        rgba(59, 130, 246, 0.05) 70%, 
        transparent 100%);
}

/* Filtros por Categoría */
.category-filters {
    margin: 40px 0 60px 0;
    text-align: center;
}

.category-filters h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    position: relative;
}

.category-filters h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Asegurar que los artículos filtrados se mantengan ocultos */
.article-card[style*="display: none"] {
    display: none !important;
}

/* Clase para artículos filtrados */
.article-card.filtered-out {
    opacity: 0;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: scale(0);
}

.article-card.filtered-out .article-full-content {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.article-card.filtered-in {
    opacity: 1;
    height: auto;
    margin: 0 0 40px 0;
    padding: initial;
    transition: all 0.5s ease;
    transform: scale(1);
}

.article-card.filtered-in .article-full-content {
    display: block;
    height: auto;
    margin: initial;
    padding: initial;
}

/* Responsive Design */
@media (max-width: 520px) and (min-width: 480px) {
    .header-container {
        height: 75px;
        padding: 0 12px;
    }
    
    .logo h1 {
        font-size: 22px;
        line-height: 1.1;
    }
    
    .menu-toggle {
        width: 30px;
        height: 30px;
        padding: 5px;
    }
    
    .hero {
        padding: 85px 0 65px 0;
    }
    
    .hero-container {
        padding: 0 18px;
    }
    
    .hero-content h2 {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 18px;
        padding: 0 8px;
    }
    
    .hero-content p {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 28px;
        padding: 0 8px;
    }
    
    .main {
        padding: 35px 0 65px 0;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
    
    .article-content {
        padding: 18px;
    }
    
    .article-content h3 {
        font-size: 19px;
        line-height: 1.3;
    }
    
    .article-content h4 {
        font-size: 17px;
        margin: 22px 0 12px 0;
    }
    
    .article-content p {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .article-tags {
        margin: 18px 0;
    }
    
    .article-tags .tag {
        font-size: 12px;
        padding: 5px 10px;
        margin: 3px;
    }
    
    .article-meta {
        padding: 18px;
        font-size: 13px;
    }
    
    .cta-button {
        padding: 13px 26px;
        font-size: 15px;
    }
    
    .nav {
        top: 75px;
    }
    
    .nav-list a {
        padding: 16px 22px;
        font-size: 15px;
    }
    
    .article-card {
        margin-bottom: 25px;
    }
    
    .article-image {
        height: 160px !important;
    }
    
    .article-image img {
        height: 160px !important;
    }
    
    .mobile-read-more {
        padding: 9px 18px;
        font-size: 13px;
        margin-top: 10px;
        display: block;
    }
    
    .article-card {
        min-height: auto;
        padding-bottom: 20px;
    }
    
    .article-meta {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .article-card:not(.expanded) .mobile-read-more {
        display: flex !important;
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        padding: 9px 18px !important;
        border-radius: 25px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
        z-index: 10 !important;
        width: fit-content !important;
        min-width: 120px !important;
    }
}

@media (max-width: 360px) {
    .header-container {
        height: 60px;
        padding: 0 8px;
    }
    
    .logo h1 {
        font-size: 18px;
        line-height: 1.0;
    }
    
    .menu-toggle {
        width: 24px;
        height: 24px;
        padding: 3px;
    }
    
    .hero {
        padding: 70px 0 50px 0;
    }
    
    .hero-content h2 {
        font-size: 20px;
        line-height: 1.1;
        margin-bottom: 12px;
    }
    
    .hero-content p {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .main {
        padding: 25px 0 50px 0;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .article-content {
        padding: 12px;
    }
    
    .article-content h3 {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .article-content h4 {
        font-size: 14px;
        margin: 15px 0 8px 0;
    }
    
    .article-content p {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .article-tags .tag {
        font-size: 10px;
        padding: 3px 6px;
        margin: 1px;
    }
    
    .article-meta {
        padding: 12px;
        font-size: 11px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .nav {
        top: 60px;
    }
    
    .nav-list a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .article-image {
        height: 120px !important;
    }
    
    .article-image img {
        height: 120px !important;
    }
    
    .mobile-read-more {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .header-container {
        height: 70px;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 20px;
        line-height: 1.1;
    }
    
    .menu-toggle {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .hero {
        padding: 80px 0 60px 0;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .main {
        padding: 30px 0 60px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .article-content {
        padding: 15px;
    }
    
    .article-content h3 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .article-content h4 {
        font-size: 16px;
        margin: 20px 0 10px 0;
    }
    
    .article-content p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .article-tags {
        margin: 15px 0;
    }
    
    .article-tags .tag {
        font-size: 11px;
        padding: 4px 8px;
        margin: 2px;
    }
    
    .article-meta {
        padding: 15px;
        font-size: 12px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .nav {
        top: 70px;
    }
    
    .nav-list a {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .article-card {
        margin-bottom: 20px;
    }
    
    .article-image {
        height: 140px !important;
    }
    
    .article-image img {
        height: 140px !important;
    }
    
    .mobile-read-more {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        height: 80px;
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .menu-toggle {
        display: flex;
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    /* Fijar dimensiones de imágenes en móvil para consistencia estética */
    .article-image {
        width: 100% !important;
        height: 160px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        max-width: 100% !important;
        max-height: 160px !important;
        overflow: hidden !important;
    }
    
    .article-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    
    /* Estilos específicos para el primer artículo en móvil */
    .article-card.featured.expanded {
        display: block !important;
        height: auto !important;
    }
    
    .article-card.featured.expanded .article-image {
        width: 100% !important;
        height: 200px !important;
        grid-column: none !important;
    }
    
    .article-card.featured.expanded .article-content {
        display: block !important;
        padding: 20px !important;
    }
    
    .article-card.featured.expanded .article-full-content {
        display: block !important;
        margin-top: 15px !important;
        padding: 20px !important;
        grid-column: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Estilos para cuando el primer artículo NO está expandido en móvil */
    .article-card.featured:not(.expanded) {
        display: block !important;
        height: auto !important;
        margin-bottom: 30px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    .article-card.featured:not(.expanded) .article-image {
        width: 100% !important;
        height: 200px !important;
        grid-column: none !important;
    }
    
    .article-card.featured:not(.expanded) .article-content {
        display: block !important;
        padding: 25px !important;
    }
    
    .article-card.featured:not(.expanded) .article-full-content {
        display: none !important;
    }
    
    .article-card.featured:not(.expanded) .article-preview {
        display: block !important;
        margin-bottom: 20px !important;
        line-height: 1.5 !important;
        font-size: 14px !important;
    }
    
    .article-card.featured:not(.expanded) .article-content h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        word-break: break-word !important;
    }
    
    /* Ocultar el botón "Leer más" original en móvil */
    .article-card:not(.expanded) .article-meta .read-more {
        display: none !important;
    }
    
    /* Crear un nuevo botón específico para móvil */
    .article-card:not(.expanded) .article-content {
        position: relative !important;
        padding-bottom: 80px !important;
    }
    
    /* Botón móvil específico - solo visible en móvil */
    .mobile-read-more {
        display: none !important;
    }
    
    .article-card:not(.expanded) .mobile-read-more {
        display: flex !important;
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
        border: 1px solid rgba(102, 126, 234, 0.3) !important;
        color: #667eea !important;
        padding: 12px 24px !important;
        border-radius: 25px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .article-card:not(.expanded) .mobile-read-more:hover {
        transform: translateX(-50%) translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25) !important;
    }
    
    .mobile-read-more .arrow {
        font-size: 12px !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Estilos específicos para cuando el primer artículo está filtrado en móvil */
    .article-card.featured.filtered-out {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
    }
    
    .article-card.featured.filtered-out .article-image {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .article-card.featured.filtered-out .article-content {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .article-card.featured.filtered-out .article-full-content {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .read-more {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 13px !important;
        padding: 10px 16px !important;
        white-space: nowrap;
        min-width: fit-content;
        position: relative !important;
        z-index: 10 !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
        border: 1px solid rgba(102, 126, 234, 0.3) !important;
        color: #667eea !important;
        font-weight: 600 !important;
    }
    
    .article-meta .read-more {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* Responsive para filtros */
    .category-filters h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .filter-buttons {
        gap: 10px;
        margin-top: 20px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(229, 231, 235, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-list li {
        position: relative;
    }
    
    .nav-list li::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(59, 130, 246, 0.1) 20%, 
            rgba(59, 130, 246, 0.2) 50%, 
            rgba(59, 130, 246, 0.1) 80%, 
            transparent 100%);
    }

    .nav-list li:last-child::after {
        display: none;
    }

    .nav-list a {
        display: block;
        padding: 20px 30px;
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        transition: all 0.3s ease;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list a:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateX(10px);
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .article-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .article-card .article-image {
        height: 250px;
    }

    .article-card .article-content {
        padding: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Fijar dimensiones de imágenes en móvil pequeño para consistencia estética */
    .article-image {
        width: 100% !important;
        height: 140px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        max-width: 100% !important;
        max-height: 140px !important;
        overflow: hidden !important;
    }
    
    .article-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    .hero {
        padding: 100px 0 80px 0;
    }

    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .main {
        padding: 40px 0 80px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .article-content {
        padding: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .article-card .article-content h3 {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        min-height: 50px;
        display: flex;
        align-items: flex-start;
        padding-top: 5px;
        max-height: 65px;
        overflow: hidden;
    }

    .article-card .article-content p {
        font-size: 13px;
        line-height: 1.4;
    }

    .article-card.featured .article-content h3 {
        font-size: 16px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-height: 50px;
        display: flex;
        align-items: flex-start;
        padding-top: 5px;
    }

    .article-full-content h4 {
        font-size: 15px;
    }

    .article-full-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .article-card {
        min-height: auto;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .article-card .article-image {
        height: 200px;
        flex-shrink: 0;
    }

    .article-card .article-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .article-card .article-content h3 {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .article-card .article-content h3 a {
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 400px) {
    /* Fijar dimensiones de imágenes en móvil muy pequeño para consistencia estética */
    .article-image {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        max-width: 100% !important;
        max-height: 120px !important;
        overflow: hidden !important;
    }
    
    .article-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }

    .article-card .article-content h3 {
        font-size: 13px;
        line-height: 1.2;
        min-height: 50px;
        display: flex;
        align-items: flex-start;
        padding-top: 5px;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .article-card.featured .article-content h3 {
        font-size: 14px;
        line-height: 1.1;
        min-height: 55px;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .article-card .article-content h3 a {
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-start;
        padding-top: 5px;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .article-card .article-content p {
        font-size: 12px;
        line-height: 1.4;
    }

    .article-content {
        padding: 15px;
        min-height: 120px;
    }

    .logo h1 {
        font-size: 18px;
        white-space: nowrap;
    }

    .article-card {
        margin-bottom: 20px;
        min-height: 320px;
    }

    .article-card .article-image {
        height: 180px;
    }

    .article-meta {
        margin-top: auto;
        padding-top: 10px;
    }
}

.read-more {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: fit-content;
    visibility: visible !important;
    opacity: 1 !important;
}

.read-more::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: left 0.5s ease;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    color: #5a67d8;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.read-more .arrow {
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: bold;
}

.read-more:hover .arrow {
    transform: scale(1.3) rotate(5deg);
}


.article-full-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.article-full-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 25px 0 15px 0;
}

.article-full-content h4:first-child {
    margin-top: 0;
}

.article-full-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Estilos para artículos expandidos */
.article-card.expanded {
    min-height: auto;
    height: auto;
}

.article-card:not(.expanded) .article-content h3 {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-card.featured:not(.expanded) .article-content h3 {
    max-height: 70px;
}

.article-card.expanded .article-content {
    min-height: auto;
}

/* Contenido expandido dentro de la tarjeta pero debajo de la imagen */
.article-card.expanded .article-full-content {
    display: block !important;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    padding: 30px;
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 10;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    grid-column: 1 / -1;
    margin-left: 0;
    margin-right: 0;
}

/* Layout para tarjetas expandidas */
.article-card.expanded {
    position: relative;
    overflow: visible;
}

.article-card.expanded .article-content {
    overflow: visible;
    display: flex;
    flex-direction: column;
}

/* Cuando está expandido, la imagen debe ocupar todo el ancho superior */
.article-card.expanded .article-image {
    width: 100%;
    height: 280px;
    max-height: 280px;
    grid-column: 1 / -1;
    object-fit: cover;
}

/* El contenido básico (título, preview, meta) debe estar en una fila */
.article-card.expanded .article-content {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

/* El botón de categoría debe ocupar todo el ancho */
.article-card.expanded .article-category {
    align-self: flex-start;
    margin-bottom: 15px;
}

.article-card.expanded .article-preview {
    display: none !important;
}

/* Limitar texto del preview para evitar deformación */
.article-preview {
    max-height: 4.8em; /* Aproximadamente 3 líneas */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    line-height: 1.6;
}

/* Asegurar que el primer artículo esté expandido por defecto */
.article-card.featured.expanded .article-full-content {
    display: block !important;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    padding: 30px;
    position: relative;
    z-index: 10;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    grid-column: 1 / -1;
    margin-left: 0;
    margin-right: 0;
}

.article-card.featured.expanded {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    height: auto;
}

.article-card.featured.expanded .article-content {
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

/* El botón de categoría del artículo destacado debe ocupar todo el ancho */
.article-card.featured.expanded .article-category {
    align-self: flex-start;
    margin-bottom: 15px;
}

.article-card.featured.expanded .article-image {
    width: 100%;
    height: 280px;
    max-height: 280px;
    grid-column: 1 / -1;
    object-fit: cover;
}

.article-card.featured.expanded .article-preview {
    display: none !important;
}

/* Layout de múltiples columnas para el contenido expandido */
@media (min-width: 769px) {
    .article-card.expanded .article-full-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        align-items: start;
        padding: 40px;
    }
    
    .article-card.expanded .article-full-content h4 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    /* Ocultar botón móvil en escritorio */
    .mobile-read-more {
        display: none !important;
    }
    
    .article-card.expanded .article-full-content p {
        margin-bottom: 18px;
        line-height: 1.7;
        font-size: 15px;
        text-align: justify;
        hyphens: auto;
    }
    
    /* Tags al final ocupando todo el ancho */
    .article-card.expanded .article-tags {
        grid-column: 1 / -1;
        margin-top: 30px;
        padding-top: 25px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .article-card.expanded .article-tags .tag {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: transform 0.2s ease;
    }
    
    .article-card.expanded .article-tags .tag:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
}

/* Para pantallas más grandes, usar más columnas */
@media (min-width: 1200px) {
    .article-card {
        height: 350px;
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
    
    .article-card.featured {
        height: 350px;
    }
    
    .article-card .article-content {
        padding: 20px;
    }
    
    .article-card .article-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .article-card .article-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .article-card.expanded .article-full-content {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 35px;
        padding: 50px;
    }
    
    .article-card.expanded .article-full-content h4 {
        font-size: 20px;
    }
    
    .article-card.expanded .article-full-content p {
        font-size: 16px;
        line-height: 1.8;
    }
}

/* Para pantallas muy grandes, hacer las tarjetas aún más compactas */
@media (min-width: 1440px) {
    .article-card {
        height: 320px;
        border-radius: 12px;
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    }
    
    .article-card.featured {
        height: 320px;
    }
    
    .article-card .article-content {
        padding: 18px;
    }
    
    .article-card .article-content h3 {
        font-size: 19px;
        margin-bottom: 10px;
    }
    
    .article-card .article-content p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .article-meta {
        padding: 12px 18px;
        margin-top: 15px;
    }
    
    .article-meta .author,
    .article-meta .date {
        font-size: 12px;
    }
    
    .read-more {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Animación de deslizamiento hacia abajo */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-tags {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estadísticas */
.stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Testimonios */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.author-info span {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Servicios expandidos */
.service-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-features li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.service-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Equipo */
.team {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #667eea;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.member-position {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.member-info p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: #5a67d8;
}

/* Estilos para páginas legales */
.legal-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.legal-content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.legal-content h2 {
    color: #334155;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.legal-content h3 {
    color: #475569;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.legal-content p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 1rem;
}

.legal-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-content li {
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-content strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
    .legal-section {
        padding: 80px 0 60px;
    }
    
    .legal-content {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
    }
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card,
    .service-card,
    .team-member {
        padding: 20px;
    }

    .article-card .article-content h3 a {
        text-decoration: none;
        color: inherit;
        word-break: break-word;
        hyphens: auto;
    }

    .article-preview {
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .article-meta {
        font-size: 11px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px 20px;
        margin-top: 20px;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        border-radius: 10px;
        border: 1px solid rgba(226, 232, 240, 0.8);
    }
    
    .read-more {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 10px;
        padding: 6px 12px;
        white-space: nowrap;
        min-width: fit-content;
        position: relative !important;
        z-index: 10 !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
        border: 1px solid rgba(102, 126, 234, 0.3) !important;
        border-radius: 20px !important;
        color: #667eea !important;
    }
    
    .article-meta .read-more {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    .article-meta .author,
    .article-meta .date {
        font-size: 10px;
        color: #666;
    }

    .read-more {
        font-size: 11px;
        font-weight: 600;
        padding: 8px 16px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        border: 1px solid rgba(102, 126, 234, 0.3);
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        color: #667eea !important;
    }
    
    .article-meta .read-more {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }
    
    /* Filtros en móvil pequeño */
    .category-filters h3 {
        font-size: 18px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .article-card .article-content h3 {
        font-size: 12px;
        line-height: 1.3;
        min-height: 60px;
        padding-top: 8px;
    }

    .article-card.featured .article-content h3 {
        font-size: 13px;
        line-height: 1.2;
        min-height: 65px;
        padding-top: 8px;
    }

    .article-card .article-content h3 a {
        padding-top: 8px;
        line-height: 1.3;
    }

    .article-content {
        padding: 12px;
        min-height: 140px;
    }

    .article-card {
        min-height: 350px;
    }
}

/* Recursos */
.resources {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.resource-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.resource-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.resource-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.resource-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive para recursos */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resource-card {
        padding: 30px 20px;
    }
}