/* ============================================
   portal.css - Estilos completos del portal
   ============================================ */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #0a0a1a;
    color: #eee;
    min-height: 100vh;
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.portal-header {
    background: #1a1a2e;
    border-bottom: 3px solid #ff6600;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-logo {
    flex-shrink: 0;
}

.header-info {
    flex: 1;
}

.header-info h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-info p {
    color: #aaa;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff6600;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-radio:hover {
    background: #e65500;
}

/* ============================================
   MAIN
   ============================================ */
.portal-main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* ============================================
   CINTILLO BREAKING NEWS
   ============================================ */
.breaking-news {
    background: #1a1a2e;
    border-top: 3px solid #ff3333;
    border-bottom: 1px solid #2a2a4e;
    padding: 0.3rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 0.5rem 0;
    z-index: 5;
    border-radius: 8px 8px 0 0;
}

.breaking-label {
    flex-shrink: 0;
    background: #ff3333;
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0;
    padding-left: 1.2rem;
    position: relative;
    z-index: 6;
    white-space: nowrap;
}

.breaking-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: breakPulse 1s infinite;
    flex-shrink: 0;
}

@keyframes breakPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.breaking-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-left: 0.5rem;
}

.breaking-track {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: scrollBreaking 35s linear infinite;
    min-height: 40px;
    align-items: center;
    will-change: transform;
}

.breaking-track:hover {
    animation-play-state: paused;
}

.breaking-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breaking-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #eee;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.breaking-item a:hover {
    color: #ff6600;
}

.breaking-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.breaking-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.breaking-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

@keyframes scrollBreaking {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SLIDER DE ANUNCIOS
   ============================================ */
.portal-ad-slider {
    margin: 0.3rem 0 1.2rem 0;
    padding: 0;
    width: 100%;
}

.portal-ad-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #0a0a1a;
    border: 1px solid #2a2a4e;
    min-height: 80px;
}

.portal-ad-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.portal-ad-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    box-sizing: border-box;
    position: relative;
}

.portal-ad-slide a {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
}

.portal-ad-slide img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.portal-ad-slide a:hover img {
    transform: scale(1.02);
}

.portal-ad-label {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255, 102, 0, 0.85);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(4px);
}

.portal-ad-empty {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    width: 100%;
    font-weight: 300;
    letter-spacing: 1px;
}

.portal-ad-empty small {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.15);
}

.portal-ad-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-ad-btn:hover {
    background: #ff6600;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.portal-ad-btn.prev {
    left: 0.3rem;
}

.portal-ad-btn.next {
    right: 0.3rem;
}

.portal-ad-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.portal-ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.portal-ad-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.portal-ad-dot.active {
    background: #ff6600;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
}

/* ============================================
   FILTRO DE CATEGORÍAS
   ============================================ */
.categorias-filtro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    border-radius: 12px;
    border: 1px solid #2a2a4e;
    margin: 0 0 1.5rem 0;
}

.filtro-label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.filtro-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filtro-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.filtro-link.active {
    color: #ff6600;
    border-color: #ff6600;
    background: rgba(255, 102, 0, 0.05);
}

.filtro-count {
    color: #555;
    font-size: 0.7rem;
}

.filtro-link.active .filtro-count {
    color: #ff6600;
}

.categoria-titulo {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff6600;
    display: inline-block;
}

/* ============================================
   GRID DE NOTICIAS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a4e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.15);
    border-color: #ff6600;
}

.news-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0a0a1a;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.25rem;
}

.news-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-content h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h2 a:hover {
    color: #ff6600;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.news-separator {
    color: #444;
}

.news-author {
    color: #aaa;
}

.news-date {
    color: #888;
}

.news-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.categoria-tag {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    background: rgba(255, 102, 0, 0.12);
    color: #ff6600;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 102, 0, 0.1);
}

.categoria-tag:hover {
    background: rgba(255, 102, 0, 0.2);
    color: #ff8833;
    border-color: #ff6600;
}

.news-content p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #ff6600;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================
   ARTÍCULO COMPLETO
   ============================================ */
.article-full {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2a2a4e;
}

.article-full h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.meta-separator {
    color: #444;
}

.article-author {
    color: #aaa;
}

.article-date {
    color: #888;
}

.article-views {
    color: #888;
}

.article-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.article-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.article-content {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-back {
    margin-top: 2rem;
}

/* ============================================
   COMPARTIR
   ============================================ */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem 0;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid #2a2a4e;
}

.share-label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    flex-shrink: 0;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: #aaa;
    transition: fill 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    border-color: #ff6600;
}

.share-btn:hover svg {
    fill: #ff6600;
}

.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.facebook:hover svg { fill: #fff; }

.share-btn.twitter:hover { background: #000; border-color: #000; }
.share-btn.twitter:hover svg { fill: #fff; }

.share-btn.instagram:hover {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
}
.share-btn.instagram:hover svg { fill: #fff; }

.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-btn.whatsapp:hover svg { fill: #fff; }

.share-btn.telegram:hover { background: #0088cc; border-color: #0088cc; }
.share-btn.telegram:hover svg { fill: #fff; }

.share-btn.email:hover { background: #ea4335; border-color: #ea4335; }
.share-btn.email:hover svg { fill: #fff; }

.share-btn.copy-link:hover { background: #ff6600; border-color: #ff6600; }
.share-btn.copy-link:hover svg { fill: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.portal-footer {
    background: #1a1a2e;
    border-top: 1px solid #2a2a4e;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ff6600;
}

.footer-copy {
    color: #555;
    font-size: 0.8rem;
}

.footer-copy a {
    color: #888;
    text-decoration: none;
}

.footer-copy a:hover {
    color: #ff6600;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .header-info h1 {
        font-size: 1.2rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .article-full {
        padding: 1rem;
    }
    .article-full h1 {
        font-size: 1.5rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .breaking-news {
        flex-direction: row;
        align-items: center;
        padding: 0.2rem 0;
        margin: 0 0 0.3rem 0;
        border-radius: 6px 6px 0 0;
        gap: 0;
    }
    .breaking-label {
        font-size: 0.55rem;
        padding: 0.2rem 0.6rem;
        padding-left: 1rem;
        border-radius: 0 12px 12px 0;
        flex-shrink: 0;
    }
    .breaking-dot {
        width: 6px;
        height: 6px;
    }
    .breaking-track-wrapper {
        padding-left: 0.3rem;
    }
    .breaking-track {
        animation-duration: 28s;
        min-height: 34px;
        gap: 1.5rem;
    }
    .breaking-item a {
        font-size: 0.75rem;
    }
    .breaking-item img {
        width: 24px;
        height: 24px;
    }
    .breaking-title {
        max-width: 180px;
    }
    .portal-ad-slide img {
        max-height: 80px;
    }
    .portal-ad-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .portal-ad-btn.prev {
        left: 0.2rem;
    }
    .portal-ad-btn.next {
        right: 0.2rem;
    }
    .portal-ad-dot {
        width: 6px;
        height: 6px;
    }
    .portal-ad-label {
        font-size: 0.45rem;
        padding: 1px 8px;
        top: 4px;
        right: 8px;
    }
    .portal-ad-container {
        min-height: 60px;
    }
    .portal-ad-slider {
        margin: 0.2rem 0 0.8rem 0;
    }
    .categorias-filtro {
        gap: 0.3rem;
        padding: 0.5rem 0.75rem;
    }
    .filtro-label {
        font-size: 0.75rem;
        width: 100%;
    }
    .filtro-link {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    .news-meta {
        font-size: 0.7rem;
    }
    .categoria-tag {
        font-size: 0.6rem;
        padding: 0.05rem 0.4rem;
    }
    .categoria-titulo {
        font-size: 1.1rem;
        margin: 0 0 1rem 0;
    }
    .share-buttons {
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        justify-content: center;
    }
    .share-btn {
        width: 36px;
        height: 36px;
    }
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    .share-label {
        font-size: 0.7rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.15rem;
    }
    .article-meta {
        font-size: 0.75rem;
    }
    .categoria-tag {
        font-size: 0.6rem;
        padding: 0.05rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .breaking-label {
        font-size: 0.45rem;
        padding: 0.15rem 0.4rem;
        padding-left: 0.8rem;
        gap: 0.2rem;
    }
    .breaking-dot {
        width: 5px;
        height: 5px;
    }
    .breaking-track-wrapper {
        padding-left: 0.2rem;
    }
    .breaking-track {
        animation-duration: 22s;
        gap: 1rem;
        min-height: 30px;
    }
    .breaking-item a {
        font-size: 0.65rem;
    }
    .breaking-item img {
        width: 20px;
        height: 20px;
    }
    .breaking-title {
        max-width: 120px;
    }
    .share-btn {
        width: 32px;
        height: 32px;
    }
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
    .share-buttons {
        gap: 0.35rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .portal-ad-slide img {
        max-height: 100px;
    }
}

/* ============================================
   VISTAS EN "LO MÁS LEÍDO"
   ============================================ */
.news-views {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #ff6600;
    font-weight: 700;
}

/* Estilos para los botones de páginas en el header */
.header-actions .btn-radio[style*="border: 2px solid #555"] {
    background: transparent !important;
    border: 2px solid #555 !important;
    color: #aaa !important;
    font-size: 0.8rem !important;
    padding: 0.4rem 1rem !important;
    transition: all 0.3s ease !important;
}

.header-actions .btn-radio[style*="border: 2px solid #555"]:hover {
    border-color: #ff6600 !important;
    color: #fff !important;
}