@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
    --accent:       #00c2ff;
    --accent-dim:   rgba(0, 194, 255, 0.15);
    --accent-glow:  rgba(0, 194, 255, 0.35);
    --danger:       #d32f2f;
    --danger-dim:   rgba(211, 47, 47, 0.18);
    --bg-deep:      #070b10;
    --bg-card:      #0d1720;
    --bg-mid:       #111d2b;
    --bg-glass:     rgba(13, 23, 32, 0.85);
    --border:       rgba(0, 194, 255, 0.12);
    --border-hot:   rgba(0, 194, 255, 0.40);
    --text-muted:   rgba(255, 255, 255, 0.42);
    --text-soft:    rgba(255, 255, 255, 0.75);
    --radius-card:  14px;
    --radius-sm:    8px;
    --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-deep);
    color: #e8edf2;
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

body::before {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.live-section {
    padding: 28px 0 0;
    position: relative;
}

.live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: stretch;
}

.live-player-col { display: flex; flex-direction: column; min-width: 0; }

.live-player-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,194,255,0.06), 0 12px 48px rgba(0,0,0,0.6);
    animation: fadeSlideUp 0.6s ease both;
    max-width: 100%;
}

.live-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(90deg, rgba(211,47,47,0.18), transparent);
    border-bottom: 1px solid var(--border);
}

.live-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 8px 3px rgba(211,47,47,0.65);
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

.live-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem; letter-spacing: 0.12em;
    color: var(--danger);
}

.live-channel {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem; letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-left: auto;
}

.live-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.live-iframe,
.live-placeholder {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

.live-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, #0d1f35 0%, #070b10 80%);
}

.live-placeholder-inner {
    text-align: center;
    animation: fadeIn 1s ease;
}

.live-placeholder-inner svg {
    animation: glow-pulse 2s ease-in-out infinite;
    margin: 0 auto 14px;
}

.live-placeholder-inner p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem; letter-spacing: 0.12em;
    color: var(--text-muted);
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--accent)); }
    50%       { filter: drop-shadow(0 0 18px var(--accent)); }
}

.ticker-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(90deg, rgba(211,47,47,0.22), rgba(211,47,47,0.05));
    border-top: 1px solid rgba(211,47,47,0.3);
    overflow: hidden;
    height: 38px;
}

.ticker-bar--full {
    border-radius: 10px;
    border: 1px solid rgba(211,47,47,0.3);
    margin: 16px 0 0;
}

.ticker-label {
    flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem; letter-spacing: 0.12em;
    color: #fff;
    background: var(--danger);
    padding: 0 14px;
    height: 100%;
    display: flex; align-items: center;
    white-space: nowrap;
}

.ticker-track-wrap {
    overflow: hidden; flex: 1; height: 100%;
    display: flex; align-items: center;
}

.ticker-track {
    display: inline-flex; gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-soft);
    padding: 0 18px;
    transition: color var(--transition);
}

.ticker-item:hover { color: var(--accent); }

.ticker-sep {
    color: var(--danger); font-size: 0.55rem;
    vertical-align: middle;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.live-side-col {
    display: flex; flex-direction: column; gap: 16px;
    animation: fadeSlideUp 0.7s 0.1s ease both;
    align-self: stretch;
}

.side-carousel-wrap {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 8px 36px rgba(0,0,0,0.5);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* evita colapso en flex */
}

.side-carousel-wrap .carousel,
.side-carousel-wrap .carousel-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 300px;
    min-height: unset;
}

.side-carousel-wrap .carousel-item {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.65s ease !important;
    display: block !important;
}

.side-carousel-wrap .carousel-item.active {
    opacity: 1;
    position: absolute !important;
}

.side-carousel-wrap .carousel-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-carousel-header {
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(0,194,255,0.12), transparent);
    border-bottom: 1px solid var(--border);
}

.side-carousel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem; letter-spacing: 0.12em;
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 8px;
}

.side-carousel-inner { border-radius: 0; flex: 1; }

.side-carousel-img {
    width: 100%; height: 100%; min-height: 280px; object-fit: cover;
    flex: 1; display: block;
}

.side-carousel-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(5,12,22,0.97));
}

.side-carousel-caption .s-badge {
    display: inline-block;
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent); color: #000;
    margin-bottom: 6px;
}

.side-carousel-caption h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem; letter-spacing: 0.04em;
    line-height: 1.2; color: #fff;
}

.side-carousel-indicators {
    bottom: 56px !important;
    gap: 4px;
}

.side-carousel-indicators button {
    width: 6px !important; height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.35) !important;
    border: none !important;
    transition: background var(--transition) !important;
}

.side-carousel-indicators button.active {
    background: var(--accent) !important;
    width: 18px !important; border-radius: 3px !important;
}

.side-ad-banner {
    border-radius: var(--radius-card);
    border: 1px dashed rgba(0,194,255,0.2);
    background: var(--bg-mid);
    height: 90px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition);
}

.side-ad-banner:hover { border-color: var(--accent-glow); }

.ad-inner {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
}

.ad-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.18);
}

.ad-size {
    font-size: 0.68rem; color: rgba(255,255,255,0.1);
}

.section-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px;
}

.sh-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.sh-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem; letter-spacing: 0.14em;
    color: var(--accent);
    white-space: nowrap;
}

.notes-section {
    padding: 40px 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.note-card--featured {
    grid-column: 1 / -1;
}

.note-card--featured .note-img-wrap {
    height: 340px;
}

.note-card--featured .note-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(7,11,16,0.96) 100%);
}

.note-card--featured .note-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    z-index: 2; padding: 24px 22px;
}

.note-card--featured .note-title {
    font-size: 1.25rem;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    animation: fadeSlideUp 0.5s ease both;
}

.note-card:nth-child(1) { animation-delay: 0.05s; }
.note-card:nth-child(2) { animation-delay: 0.10s; }
.note-card:nth-child(3) { animation-delay: 0.15s; }
.note-card:nth-child(4) { animation-delay: 0.20s; }
.note-card:nth-child(5) { animation-delay: 0.25s; }
.note-card:nth-child(6) { animation-delay: 0.30s; }

.note-card:hover {
    border-color: var(--border-hot);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,194,255,0.10), 0 4px 12px rgba(0,0,0,0.5);
}

.note-card-link { display: flex; flex-direction: column; height: 100%; }

.note-img-wrap {
    position: relative; overflow: hidden;
    flex-shrink: 0;
}

.note-card:not(.note-card--featured) .note-img-wrap { height: 170px; }

.note-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s ease;
}

.note-card:hover .note-img { transform: scale(1.04); }

.note-cat {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
    padding: 3px 9px; border-radius: 4px;
    background: var(--accent); color: #000;
}

.note-body {
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}

.note-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 800; font-size: 0.88rem;
    line-height: 1.35; color: #e8edf2;
    transition: color var(--transition);
}

.note-card:hover .note-title { color: #fff; }

.note-time {
    font-size: 0.70rem; color: var(--text-muted);
    margin-top: auto;
}

.ads-section {
    padding: 0 0 40px;
}

.ads-row {
    display: flex; gap: 18px;
}

.ad-block {
    border-radius: var(--radius-card);
    border: 1px dashed rgba(0,194,255,0.18);
    background: var(--bg-mid);
    display: flex; align-items: center; justify-content: center;
    min-height: 160px;
    transition: border-color var(--transition);
    position: relative; overflow: hidden;
}

.ad-block::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,194,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.ad-block:hover { border-color: var(--accent-glow); }

.ad-block--half { flex: 1; }

.cats-section {
    padding: 0 0 60px;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cat-col-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem; letter-spacing: 0.08em;
    color: #fff;
    border-left: 4px solid var(--danger);
    padding-left: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cat-col-title a { color: inherit; }
.cat-col-title a:hover { color: var(--accent); }

.cat-carousel-inner { border-radius: var(--radius-sm); overflow: hidden; }

.cat-carousel-img { height: 160px; width: 100%; object-fit: cover; }

.cat-carousel-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(5,12,22,0.93));
    padding: 10px 12px;
}

.cat-carousel-caption h6 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700; font-size: 0.76rem;
    color: #fff; line-height: 1.3;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}