/* ===== FILTROS ===== */
.filtros {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filtros-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    max-width:220px;
}

.filtro-grupo label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filtro-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.85rem;
    min-width: 140px;
}

/* ===== TÍTULO DE PÁGINA ===== */
.titulo-pagina {
    padding: 1.5rem 0;
    text-align: center;
}

.titulo-pagina h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.stats-resumen {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-numero {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
}

/* ===== RANKING MENSUAL ===== */
.ranking-mensual {
    padding: 1.5rem 0;
}

.ranking-mensual h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.6rem;
}

.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.canal-card {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 6px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.canal-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Estilos especiales para los primeros puestos */
/*
.canal-card.ranking-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.canal-card.ranking-1 .canal-ranking {
    background: #000;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}


.canal-card.ranking-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    border-color: #c0c0c0;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.canal-card.ranking-2 .canal-ranking {
    background: #000;
    color: #c0c0c0;
    font-weight: bold;
}

.canal-card.ranking-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    border-color: #cd7f32;
    box-shadow: 0 3px 12px rgba(205, 127, 50, 0.3);
}

.canal-card.ranking-3 .canal-ranking {
    background: #000;
    color: #cd7f32;
    font-weight: bold;
}
*/


.canal-imagen {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.card-header {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    position: sticky;
    top: 160px;
    z-index: 10;
}
.card-header  .canal-imagen {
    border:none;
    width:auto;
    height:auto;
        width: 70px;
}
.canal-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.canal-info {
    flex: 1;
    margin-right: 1rem;
}
.canal-info2 {
    flex: 1;
    margin-right: 1rem;
    text-align:left;
}

.canal-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.canal-canal {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-style: italic;
}

.canal-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.canal-pais,
.canal-categoria {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.canal-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    min-width: 100px;
}

.canal-visualizaciones {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.canal-variacion {
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    width: fit-content;
}

.canal-variacion.positiva {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success-color);
}

.canal-variacion.negativa {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
}

.canal-variacion.neutral {
    background: rgba(128, 128, 128, 0.2);
    color: var(--text-muted);
}

/* Deltas de posición */
.canal-pos-delta {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.canal-pos-delta.positiva { /* subió posiciones */
    background: rgba(0, 200, 83, 0.2);
    color: var(--success-color);
}

.canal-pos-delta.negativa { /* bajó posiciones */
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
}

.canal-pos-delta.neutral {
    background: rgba(128, 128, 128, 0.2);
    color: var(--text-muted);
}

.canal-pos-global {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.canal-pos-global .pill {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.canal-pos-global .delta {
    padding: 0.15rem 0.45rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.canal-pos-global .delta.positiva {
    background: rgba(0, 200, 83, 0.2);
    color: var(--success-color);
}

.canal-pos-global .delta.negativa {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
}

/* Tooltips genéricos */
.has-tooltip {
    position: relative;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.has-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.has-tooltip:hover::after,
.has-tooltip:focus::after,
.has-tooltip:active::after,
.has-tooltip:hover::before,
.has-tooltip:focus::before,
.has-tooltip:active::before {
    opacity: 1;
}

/* Desactivar pseudo-tooltips si el modo mejorado está activo */
body.tooltips-enhanced .has-tooltip::after,
body.tooltips-enhanced .has-tooltip::before,
body.tooltips-enhanced .has-tooltip:hover::after,
body.tooltips-enhanced .has-tooltip:hover::before,
body.tooltips-enhanced .has-tooltip:focus::after,
body.tooltips-enhanced .has-tooltip:focus::before,
body.tooltips-enhanced .has-tooltip:active::after,
body.tooltips-enhanced .has-tooltip:active::before {
    content: none !important;
    opacity: 0 !important;
}

/* Tooltip mejorado renderizado en body */
.yt-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateZ(0);
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.yt-tooltip.is-visible {
    opacity: 1;
}

.yt-tooltip__content {
    background: #FFF;
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    max-width: 280px;
}

.yt-tooltip__arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
}

/* Colocaciones */
.yt-tooltip--top .yt-tooltip__arrow {
    border-top-color: #FFF;
    bottom: -14px;
    transform: translateX(-50%);
}

.yt-tooltip--bottom .yt-tooltip__arrow {
    border-bottom-color: #FFF;
    top: -14px;
    transform: translateX(-50%);
}

.yt-tooltip--left .yt-tooltip__arrow {
    border-left-color:  #FFF;
    right: -14px;
    transform: translateY(-50%);
}

.yt-tooltip--right .yt-tooltip__arrow {
    border-right-color:  #FFF;
    left: -14px;
    transform: translateY(-50%);
}

/* ===== RANKING EN TIEMPO REAL ===== */
.ranking-tiempo-real {
    padding: 1.5rem 0;
    background: var(--bg-secondary);
}

.ranking-tiempo-real h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.6rem;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.live-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.live-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.live-card:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Indicador visual de que es clickeable */
.live-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.live-card:hover::after {
    transform: translateX(100%);
}

/* Estilos especiales para los primeros puestos */
.live-card.ranking-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    transform: scale(1.01);
}

.live-card.ranking-1 .live-ranking {
    background: #000;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.live-card.ranking-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    border-color: #c0c0c0;
    box-shadow: 0 6px 20px rgba(192, 192, 192, 0.3);
    transform: scale(1.005);
}

.live-card.ranking-2 .live-ranking {
    background: #000;
    color: #c0c0c0;
    font-weight: bold;
}

.live-card.ranking-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    border-color: #cd7f32;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
    transform: scale(1.002);
}

.live-card.ranking-3 .live-ranking {
    background: #000;
    color: #cd7f32;
    font-weight: bold;
}

.live-ranking {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    z-index: 3;
    border: 2px solid var(--bg-primary);
}

.live-imagen {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.live-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-card:hover .live-imagen img {
    transform: scale(1.03);
}

.live-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #ff0000;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.live-info {
    padding: 1rem;
}

.live-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-canal {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 0.6rem;
}

.canal-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.live-canal span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.live-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.live-pais,
.live-categoria {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.live-viewers {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin: 0 1rem 1rem;
}

.live-viewers .numero {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.viewers-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 0.2rem;
}

/* ===== BOTONES DE COMPARTIR ===== */
.compartir {
    padding: 1.5rem 0;
    text-align: center;
}

.compartir h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.botones-compartir {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-compartir {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-compartir.twitter {
    background: #1da1f2;
    color: white;
}

.btn-compartir.facebook {
    background: #1877f2;
    color: white;
}

.btn-compartir.whatsapp {
    background: #25d366;
    color: white;
}

.btn-compartir:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .filtros {
        padding: 0.8rem 0;
    }
    
    .filtros-grid {
        gap: 0.8rem;
    }
    
    .filtro-select {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .titulo-pagina {
        padding: 1rem 0;
    }
    
    .titulo-pagina h1 {
        font-size: 1.4rem;
    }
    
    .stats-resumen {
        gap: 1.5rem;
    }
    
    .stat-numero {
        font-size: 1.2rem;
    }
    
    .ranking-mensual,
    .ranking-tiempo-real {
        padding: 1rem 0;
    }
    
    .ranking-mensual h2,
    .ranking-tiempo-real h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
   
    .canal-card {
        padding: 0.8rem;
    }
    
    .canal-imagen {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }
    
    .canal-nombre {
        font-size: 1rem;
    }
    
    .canal-canal {
        font-size: 0.8rem;
    }
    
    .canal-visualizaciones {
        font-size: 1.1rem;
    }
    
    .live-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .live-imagen {
        height: 140px;
    }
    
    .live-info {
        padding: 0.8rem;
    }
    
    .live-titulo {
        font-size: 0.9rem;
    }
    
    .live-canal span {
        font-size: 0.8rem;
    }
    
    .live-viewers {
        margin: 0 0.8rem 0.8rem;
        padding: 0.6rem;
    }
    
    .live-viewers .numero {
        font-size: 1.2rem;
    }
    
    .botones-compartir {
        gap: 0.6rem;
    }
    
    .btn-compartir {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Efecto ripple para las tarjetas */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animación de entrada para las tarjetas */
.canal-card,
.live-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.canal-card.animate-in,
.live-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para las animaciones */
.canal-card:nth-child(1) { transition-delay: 0.1s; }
.canal-card:nth-child(2) { transition-delay: 0.2s; }
.canal-card:nth-child(3) { transition-delay: 0.3s; }
.canal-card:nth-child(4) { transition-delay: 0.4s; }
.canal-card:nth-child(5) { transition-delay: 0.5s; }

.live-card:nth-child(1) { transition-delay: 0.1s; }
.live-card:nth-child(2) { transition-delay: 0.2s; }
.live-card:nth-child(3) { transition-delay: 0.3s; }
.live-card:nth-child(4) { transition-delay: 0.4s; }
.live-card:nth-child(5) { transition-delay: 0.5s; }

/* ===== PÁGINA DE BIENVENIDA ===== */
.welcome-page {
    min-height: 100vh;
}

.welcome-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: 3rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.country-selection {
    padding: 2rem 0;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.country-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(226, 34, 0, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.country-card:hover::before {
    transform: translateX(100%);
}

.country-flag {
    margin-bottom: 1rem;
    position: relative;
}

.country-flag img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.country-card:hover .country-flag img {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.flag-global {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.flag-global svg {
    width: 40px;
    height: 40px;
    color: white;
}

.country-card:hover .flag-global {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.flag-fallback {
    width: 80px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid var(--border-color);
}

.flag-emoji {
    font-size: 2rem;
}

.country-info {
    margin-bottom: 1rem;
}

.country-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.country-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.country-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.country-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.country-card:hover .country-arrow {
    opacity: 1;
    transform: translateX(0);
}

.features {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-radius: 20px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.no-countries {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}
.share_top_buttons {
    margin-left: auto; 
}
/* Responsive para la página de bienvenida */
@media (max-width: 1024px) {
    .share_top_buttons, .header-logo-livedata {
        display:none;
    }
    .header-logo-main {
        text-align:left;
    }
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .welcome-hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-main {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .country-card {
        padding: 1.2rem;
    }
    
    .country-flag img,
    .flag-global,
    .flag-fallback {
        width: 60px;
        height: 45px;
    }
    
    .flag-global svg {
        width: 30px;
        height: 30px;
    }
    
    .country-name {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .features {
        margin-top: 2rem;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-main {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
