/* ==========================================================================
   ARTÍCULOS CIENTÍFICOS - ESTILO PREMIUM
   ========================================================================== */

/* Variables premium */
:root {
    /* Colores premium */
    --articulos-primary: #0056b3;
    --articulos-primary-dark: #003d82;
    --articulos-secondary: #4d94ff;
    --articulos-accent: #28a745;
    --articulos-accent-light: #20c997;
    --articulos-light: #f8f9fa;
    --articulos-dark: #1a1a1a;
    --articulos-gray: #6c757d;
    --articulos-white: #ffffff;
    
    /* Colores de categorías */
    --cat-nutrition: #43e97b;
    --cat-exercise: #4facfe;
    --cat-biomarkers: #667eea;
    --cat-research: #f093fb;
    --cat-longevity: #ff9a9e;
    --cat-metabolism: #a1c4fd;
    
    /* Gradientes premium */
    --articulos-gradient: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    --articulos-gradient-light: linear-gradient(135deg, #4d94ff 0%, #1a75ff 100%);
    --articulos-gradient-accent: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    
    /* Sombras premium */
    --articulos-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
    --articulos-shadow-hover: 0 25px 50px rgba(0, 86, 179, 0.25);
    --articulos-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    /* Tipografía premium */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--articulos-dark);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* ==========================================================================
   NAVBAR FLOTANTE PREMIUM
   ========================================================================== */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 12px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 95%;
    max-width: 1200px;
    min-width: 300px;
}

.floating-navbar.hidden {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
}

.floating-navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 10px 30px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--articulos-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    height: 35px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--articulos-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--articulos-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 0;
    background: var(--articulos-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-login {
    background: var(--articulos-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
    background: var(--articulos-gradient-light);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--articulos-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   HERO ARTÍCULOS PREMIUM
   ========================================================================== */
.articulos-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 2000px;
    padding: 0 2rem;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    margin-left: 19%;
    margin-top: 9%;
}

.hero-title {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin: 5rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--articulos-secondary);
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 1s both;
}

/* ==========================================================================
   CONTENEDORES POR SECCIÓN
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.consejos-medicos,
.articulos-destacados,
.todos-articulos,
.articulos-filtros {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--articulos-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--articulos-gradient);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 2.2rem;
    color: var(--articulos-primary);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.section-decoration {
    width: 80px;
    height: 3px;
    background: rgba(0, 86, 179, 0.2);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   FILTROS PREMIUM
   ========================================================================== */
.articulos-filtros {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.filtro-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--articulos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
}

.filtro-icon {
    font-size: 3rem;
    color: var(--articulos-primary);
    margin-bottom: 1.5rem;
}

.filtro-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--articulos-dark);
}

.filtro-select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(0, 86, 179, 0.2);
    border-radius: 10px;
    font-size: 1.4rem;
    font-family: var(--font-primary);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-select:focus {
    outline: none;
    border-color: var(--articulos-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.search-box-premium {
    display: flex;
    gap: 0;
}

.search-input-premium {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(0, 86, 179, 0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.search-input-premium:focus {
    outline: none;
    border-color: var(--articulos-primary);
}

.search-btn-premium {
    background: var(--articulos-gradient);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.search-btn-premium:hover {
    background: var(--articulos-gradient-light);
}

/* ==========================================================================
   CONSEJOS MÉDICOS PREMIUM
   ========================================================================== */
.consejos-medicos {
    background: white;
}

.doctores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.doctor-card-premium {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--articulos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.doctor-card-premium.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.doctor-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--articulos-shadow-hover);
    border-color: var(--articulos-primary);
}

.doctor-card-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--articulos-dark);
    margin-bottom: 0.5rem;
}

.doctor-position {
    font-size: 1.3rem;
    color: var(--articulos-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.doctor-tag {
    background: rgba(0, 86, 179, 0.1);
    color: var(--articulos-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.doctor-card-body {
    padding: 2rem;
}

.advice-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--articulos-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.advice-text {
    font-size: 1.4rem;
    color: var(--articulos-gray);
    line-height: 1.6;
    font-style: italic;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--articulos-accent);
}

.doctor-card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 86, 179, 0.1);
    background: #f8f9fa;
}

.advice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.advice-category {
    background: var(--articulos-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.advice-read-time {
    font-size: 1.2rem;
    color: var(--articulos-gray);
}

/* ==========================================================================
   ARTÍCULOS DESTACADOS
   ========================================================================== */
.articulos-destacados {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 4rem;
}

.articulo-destacado-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--articulos-shadow);
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.articulo-destacado-card.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.articulo-destacado-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--articulos-shadow-hover);
}

.destacado-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--articulos-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.articulo-imagen {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.articulo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.articulo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.articulo-destacado-card:hover .articulo-imagen img {
    transform: scale(1.05);
}

.articulo-contenido {
    padding: 3rem;
}

/* Categorías */
.articulo-categoria {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    color: white;
}

.articulo-categoria.nutri {
    background: linear-gradient(135deg, var(--cat-nutrition), #38f9d7);
}

.articulo-categoria.longev {
    background: linear-gradient(135deg, var(--cat-longevity), #fad0c4);
}

.articulo-categoria.ejerc {
    background: linear-gradient(135deg, var(--cat-exercise), #00f2fe);
}

.articulo-categoria.biomarc {
    background: linear-gradient(135deg, var(--cat-biomarkers), #764ba2);
}

.articulo-categoria.investig {
    background: linear-gradient(135deg, var(--cat-research), #f5576c);
}

.articulo-categoria.metabol {
    background: linear-gradient(135deg, var(--cat-metabolism), #c2e9fb);
}

.articulo-titulo {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--articulos-dark);
    line-height: 1.3;
}

.articulo-resumen {
    font-size: 1.6rem;
    color: var(--articulos-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.articulo-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    color: var(--articulos-gray);
}

.meta-item i {
    color: var(--articulos-primary);
}

/* ==========================================================================
   TODOS LOS ARTÍCULOS
   ========================================================================== */
.todos-articulos {
    background: white;
}

.articulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.articulo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--articulos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.articulo-card.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.articulo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--articulos-shadow);
    border-color: var(--articulos-primary);
}

.articulo-card .articulo-imagen {
    height: 200px;
}

.articulo-card .articulo-contenido {
    padding: 2rem;
}

.articulo-card .articulo-titulo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.articulo-card .articulo-resumen {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.articulo-card .articulo-meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    gap: 2rem;
}

/* ==========================================================================
   BOTONES PREMIUM
   ========================================================================== */
.btn-destacado {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--articulos-gradient);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-destacado:hover {
    background: var(--articulos-gradient-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
    border-color: white;
}


.btn-articulo-completo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--articulos-gradient);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-articulo-completo:hover {
    background: var(--articulos-gradient-light);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.3);
}

.btn-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--articulos-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.btn-leer-mas:hover {
    color: var(--articulos-primary-dark);
    transform: translateX(5px);
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--articulos-gradient);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background: var(--articulos-gradient-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

.ver-mas-container {
    text-align: center;
    margin-top: 4rem;
}

/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */
.footer {
    background: var(--articulos-dark);
    color: white;
}

.footer .section-container {
    max-width: 1400px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    font-size: 2.4rem;
    font-weight: 900;
    color: white;
}

.footer-section p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--articulos-primary);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a.active {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   EFECTOS ESPECIALES DE ANIMACIÓN
   ========================================================================== */
.doctor-card-premium:nth-child(1) { animation-delay: 0.1s; }
.doctor-card-premium:nth-child(2) { animation-delay: 0.2s; }
.doctor-card-premium:nth-child(3) { animation-delay: 0.3s; }
.doctor-card-premium:nth-child(4) { animation-delay: 0.4s; }

.articulo-destacado-card:nth-child(1) { animation-delay: 0.1s; }
.articulo-destacado-card:nth-child(2) { animation-delay: 0.2s; }

.articulo-card:nth-child(1) { animation-delay: 0.1s; }
.articulo-card:nth-child(2) { animation-delay: 0.2s; }
.articulo-card:nth-child(3) { animation-delay: 0.3s; }
.articulo-card:nth-child(4) { animation-delay: 0.4s; }
.articulo-card:nth-child(5) { animation-delay: 0.5s; }
.articulo-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5.5rem;
    }
    
    .destacados-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .consejos-medicos,
    .articulos-destacados,
    .todos-articulos,
    .articulos-filtros {
        padding: 8rem 0;
    }
    
    .section-title {
        font-size: 3.8rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-content {
        margin-left: 5%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Navbar responsive */
    .floating-navbar {
        padding: 10px 20px;
        width: 90%;
        border-radius: 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 85%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 20px;
        padding: 25px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 12px 0;
        text-align: center;
        width: 100%;
        display: block;
    }

    .hamburger-btn {
        display: flex;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero responsive */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .articulos-grid {
        grid-template-columns: 1fr;
    }
    
    .doctores-grid {
        grid-template-columns: 1fr;
    }
    
    .articulos-hero {
        height: auto;
        min-height: 600px;
        text-align: center;
    }
    
    .hero-content {
        margin-left: 0;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .btn-destacado,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .consejos-medicos,
    .articulos-destacados,
    .todos-articulos,
    .articulos-filtros {
        padding: 6rem 0;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-description {
        font-size: 1.6rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .email-input,
    .btn-suscribir {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .floating-navbar {
        padding: 8px 15px;
        width: 92%;
        border-radius: 12px;
        top: 15px;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .btn-login {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        top: 65px;
        width: 90%;
        padding: 20px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    body {
        padding-top: 65px;
    }
    
    .articulos-hero {
        margin-top: -65px;
        padding-top: 65px;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .doctor-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .doctor-tags {
        justify-content: center;
    }
    
    .destacados-grid {
        grid-template-columns: 1fr;
    }
    
    .articulo-destacado-card {
        min-width: 100%;
    }
    
    .articulo-titulo {
        font-size: 2rem;
    }
    
    .articulo-resumen {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    .floating-navbar {
        padding: 6px 12px;
    }
    
    .nav-logo span {
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .nav-logo {
        gap: 8px;
    }
}

/* Para pantallas muy pequeñas, ocultar texto del logo */
@media (max-width: 320px) {
    .nav-logo span {
        display: none;
    }
    
    .floating-navbar {
        padding: 8px 15px;
    }
}

/* Asegurar que el navbar sea visible en dispositivos con notch */
@media (max-width: 768px) and (orientation: portrait) {
    .floating-navbar {
        top: max(15px, env(safe-area-inset-top));
    }
}

/* Mejorar visibilidad en modo oscuro */
@media (prefers-color-scheme: dark) {
    .floating-navbar {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        color: #ecf0f1;
    }
    
    .nav-logo {
        color: #ecf0f1;
    }
    
    .hamburger-btn span {
        background-color: #ecf0f1;
    }
}

/* Mejorar accesibilidad para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .floating-navbar,
    .nav-menu a,
    .btn-login,
    .doctor-card-premium,
    .articulo-destacado-card,
    .articulo-card {
        transition: none;
    }
    
    .hamburger-btn span {
        transition: none;
    }
    
    .doctor-card-premium,
    .articulo-destacado-card,
    .articulo-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-stats,
    .hero-buttons {
        animation: none;
    }
}