:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* TOP TICKER */
.top-ticker {
    background: #0f172a;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.ticker-badge {
    background: var(--accent-red);
    color: #fff;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-marquee {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #cbd5e1;
}

.ticker-date {
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* MAIN HEADER */
.main-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999999;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.badge-24 {
    background: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    overflow: visible;
}

.nav-item {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    background: #eff6ff;
    color: var(--primary);
}

.highlight-btn {
    background: #059669 !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25) !important;
}

.highlight-btn:hover {
    background: #047857 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.live-red-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #ef4444;
    animation: liveDotPulse 1.5s infinite;
    margin-left: 2px;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #ef4444; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* ========================================================== */
/* BOTÓN ESPACIO TECH CON EFECTO DE LUZ NEÓN / FLASHING LLAMATIVO */
/* ========================================================== */
.btn-tech-glow {
    background: linear-gradient(135deg, #7c3aed, #2563eb, #06b6d4) !important;
    background-size: 200% 200% !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    border: 1.5px solid #a78bfa !important;
    position: relative !important;
    overflow: visible !important;
    animation: techNeonLight 1.4s infinite alternate, techGradientShift 4s ease infinite !important;
}

@keyframes techNeonLight {
    0% {
        box-shadow: 0 0 4px #7c3aed, 0 0 8px rgba(124, 58, 237, 0.4), inset 0 0 4px rgba(255, 255, 255, 0.3);
        border-color: #c4b5fd;
    }
    45% {
        box-shadow: 0 0 18px #06b6d4, 0 0 30px rgba(6, 182, 212, 0.85), 0 0 45px rgba(124, 58, 237, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.7);
        border-color: #67e8f9;
        transform: scale(1.03);
    }
    70% {
        box-shadow: 0 0 6px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.5);
        border-color: #93c5fd;
    }
    100% {
        box-shadow: 0 0 22px #a855f7, 0 0 38px rgba(168, 85, 247, 0.95), 0 0 55px rgba(6, 182, 212, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.9);
        border-color: #e9d5ff;
        transform: scale(1.04);
    }
}

@keyframes techGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-tech-glow:hover {
    background: linear-gradient(135deg, #6d28d9, #1d4ed8, #0891b2) !important;
    box-shadow: 0 0 28px #06b6d4, 0 0 45px #7c3aed !important;
    transform: scale(1.06) !important;
}

.btn-tech-glow i {
    color: #fde047 !important;
    animation: flashBlink 0.9s infinite alternate;
}

.tech-flash-badge {
    background: #facc15;
    color: #713f12;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    animation: flashBlink 0.9s infinite alternate;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px #facc15;
}

@keyframes flashBlink {
    0% { opacity: 0.35; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 12px #facc15; }
}

/* NAVBAR DROPDOWNS ROBUSTO */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 330px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 8px 0;
    z-index: 99999999;
}

/* Open when hovered OR when is-active class is present */
.nav-dropdown.is-active .dropdown-content,
.nav-dropdown:hover .dropdown-content {
    display: block !important;
}

.nav-dropdown.is-active .dropbtn,
.nav-dropdown:hover .dropbtn,
.dropbtn.btn-active {
    background: #eff6ff !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

.dropdown-content a {
    color: #1e293b;
    padding: 12px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid #f8fafc;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #eff6ff;
    color: var(--primary);
}

.dropdown-content a i {
    font-size: 1.2rem;
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero-section {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
}

.hero-main-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-amber), var(--primary));
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tag-urgent {
    background: #fee2e2;
    color: #b91c1c;
}

.hero-main-card h1 {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #0f172a;
}

.hero-summary {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-primary-smartlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
}

.btn-primary-smartlink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

/* SIDE WIDGET */
.hero-side-widget {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.trending-item:hover {
    background: #f1f5f9;
}

.rank-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #cbd5e1;
    line-height: 1;
}

.trending-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.item-badge {
    font-size: 0.72rem;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* PORTALES DE EMPLEO / BOLSAS */
.job-portals-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.portal-box {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portal-brand-head {
    padding: 16px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-brand-head i {
    font-size: 1.4rem;
}

.portal-brand-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.computrabajo-bg {
    background: linear-gradient(135deg, #ff6b00, #e65100);
}

.bumeran-bg {
    background: linear-gradient(135deg, #0070ba, #005088);
}

.indeed-bg {
    background: linear-gradient(135deg, #2164f3, #083896);
}

.estado-bg {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.portal-box-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portal-box-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex: 1;
}

.portal-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 18px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.portal-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portal-stats i {
    color: var(--accent-green);
}

.portal-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.2s;
}

.portal-link-btn:hover {
    opacity: 0.92;
    transform: scale(1.02);
}

.btn-ct { background: #ff6b00; }
.btn-bum { background: #0070ba; }
.btn-ind { background: #2164f3; }
.btn-est { background: #dc2626; }

/* ADSTERRA NATIVE CONTAINER */
.ad-native-container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    text-align: center;
}

.ad-tag {
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* TOOLS SECTION */
.tools-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
}

.tool-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.icon-green {
    background: #ecfdf5;
    color: var(--accent-green);
}

.tool-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.tool-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.btn-calculate {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-calculate:hover {
    background: var(--primary-dark);
}

.btn-green {
    background: var(--accent-green);
}

.btn-green:hover {
    background: #059669;
}

.tool-result-box {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
    border-left: 4px solid var(--primary);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.result-row:last-child {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px solid #e2e8f0;
}

.tool-smartlink-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.tool-smartlink-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.exchange-rates-badge {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.rate-box {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.rate-box strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-green);
}

/* NEWS FEED */
.news-feed-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-thumb {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.badge-blue { background: var(--primary); }
.badge-orange { background: var(--accent-amber); }
.badge-green { background: var(--accent-green); }

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #0f172a;
}

.news-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex: 1;
}

.news-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
}

.news-read-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* FOOTER */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 60px;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand .logo-text {
    color: #fff;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.85rem;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    padding-top: 20px;
}

/* DIRECTORY & TRAMITES SECTION */
.directory-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.bg-alt-section {
    background: #f1f5f9;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
}

.search-tramite-box {
    position: relative;
    max-width: 580px;
    margin: 20px auto 0;
}

.search-tramite-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #94a3b8;
}

.search-tramite-box input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-tramite-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.tramites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tramite-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.tramite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.tramite-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.bg-blue-subtle { background: #eff6ff; color: #2563eb; }
.bg-purple-subtle { background: #f3e8ff; color: #9333ea; }
.bg-red-subtle { background: #fee2e2; color: #dc2626; }
.bg-green-subtle { background: #ecfdf5; color: #059669; }
.bg-cyan-subtle { background: #ecfeff; color: #0891b2; }
.bg-amber-subtle { background: #fef3c7; color: #d97706; }

.tramite-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.badge-purple { background: #f3e8ff; color: #9333ea; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-cyan { background: #ecfeff; color: #0891b2; }
.badge-amber { background: #fef3c7; color: #d97706; }
.badge-pnp { background: #eff6ff; color: #2563eb; }
.badge-pj { background: #f3e8ff; color: #9333ea; }
.badge-reniec { background: #ecfeff; color: #0891b2; }

.tramite-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #0f172a;
}

.tramite-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.45;
}

.tramite-requisitos {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 16px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.tramite-requisitos span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tramite-requisitos i {
    color: var(--accent-green);
}

.btn-tramite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin-top: auto;
}

.btn-tramite:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.btn-destacado {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-destacado:hover {
    background: #047857;
}

/* =================================================== */
/* 1. LIVE RADIO STREAMING BAR                         */
/* =================================================== */
.radio-stream-bar {
    background: linear-gradient(135deg, #090d16, #111827);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.radio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.radio-status {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-play-radio {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-play-radio:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

.radio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-pill {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.red-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.radio-info h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Equalizer Waves */
.radio-sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.radio-sound-wave span {
    width: 3px;
    height: 4px;
    background: #ef4444;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.radio-sound-wave.playing span {
    animation: soundWaveAnim 1.2s infinite ease-in-out;
}

.radio-sound-wave.playing span:nth-child(2) { animation-delay: 0.2s; }
.radio-sound-wave.playing span:nth-child(3) { animation-delay: 0.4s; }
.radio-sound-wave.playing span:nth-child(4) { animation-delay: 0.1s; }
.radio-sound-wave.playing span:nth-child(5) { animation-delay: 0.3s; }

@keyframes soundWaveAnim {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

.radio-stations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.station-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.station-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.station-chip.active {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.pulse-live-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.4s infinite;
}

/* =================================================== */
/* 2. SOCIAL TRENDS SECTION (TIKTOK / FB / IG)         */
/* =================================================== */
.social-trends-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-tabs-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 25px;
}

.social-tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 12px 0 12px;
    gap: 8px;
    overflow-x: auto;
}

.social-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.social-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.social-tab-btn.active {
    color: #0f172a;
    background: #ffffff;
    border-bottom: 3px solid #ef4444;
}

.social-panel {
    display: none;
    padding: 24px;
}

.social-panel.active {
    display: block;
    animation: fadeInDropdown 0.25s ease-in-out;
}

.viral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.viral-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.viral-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.viral-badge {
    align-self: flex-start;
    background: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fb-badge {
    background: #1877f2 !important;
}

.ig-badge {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
}

.viral-meta-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
}

.viral-card h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.viral-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.btn-view-trend {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    transition: color 0.15s;
}

.btn-view-trend:hover {
    color: #2563eb;
}

/* =================================================== */
/* 3. TECH SHOWCASE SECTION (ECOSISTEMA PROPIO)        */
/* =================================================== */
.tech-showcase-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.tech-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.tech-card-featured {
    border: 2px solid #3b82f6;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.tech-card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.badge-b2b {
    background: linear-gradient(135deg, #0891b2, #0e7490) !important;
    box-shadow: 0 4px 10px rgba(8, 145, 178, 0.3) !important;
}

.badge-pro {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3) !important;
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

.bg-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.tech-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.tech-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.tech-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.tech-features i {
    color: #10b981;
}

.btn-tech-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s, background 0.2s;
}

.btn-tech-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.btn-tech-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: transform 0.2s, background 0.2s;
}

.btn-tech-secondary:hover {
    transform: translateY(-2px);
    background: #1e293b;
}

/* =================================================== */
/* 4. HERO FARÁNDULA STYLES                            */
/* =================================================== */
.hero-farandula-card {
    border-top: 4px solid #db2777;
    background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
}

.farandula-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fdf2f8;
    color: #db2777;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #fbcfe8;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.btn-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #db2777;
}

/* =================================================== */
/* 5. HERO 3-CARD TRIO GRID (FARÁNDULA, ENLACES, DEPORTES) */
/* =================================================== */
.hero-trio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .hero-trio-grid {
        grid-template-columns: 1fr;
    }
}

.trio-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

/* RECUADRO 1: FARÁNDULA (ROSADO) */
.card-farandula {
    border-color: #f472b6;
    background: linear-gradient(180deg, #fff5f8 0%, #ffffff 35%);
}

.tag-pink {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fbcfe8;
}

.badge-pink-live {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.btn-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(219, 39, 119, 0.3);
}

.btn-pink:hover {
    background: linear-gradient(135deg, #db2777, #be185d);
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.45);
}

/* RECUADRO 2: ENLACES DE INTERÉS (GRIS SERIO) */
.card-enlaces {
    border-color: #94a3b8;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%);
}

.tag-grey {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.badge-grey-live {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-grey {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.3);
}

.btn-grey:hover {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.45);
}

/* RECUADRO 3: DEPORTES (AZUL CLARO) */
.card-deportes {
    border-color: #38bdf8;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 35%);
}

.tag-blue {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.badge-blue-live {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.btn-blue {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

/* COMUNES DE LAS TARJETAS TRIO */
.trio-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 12px;
}

.trio-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
    width: fit-content;
}

.blue-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 6px #0284c7;
    display: inline-block;
}

.trio-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
}

.trio-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
}

.trio-meta {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 20px;
}

.trio-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-trio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.btn-trio:hover {
    transform: translateY(-2px);
}

/* LISTA DE ENLACES RÁPIDOS EN CARD GRIS */
.enlaces-rapidos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.enlace-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.enlace-quick-item i {
    color: #2563eb;
    font-size: 1.05rem;
}

.enlace-quick-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateX(3px);
}

/* LISTA DE DEPORTES EN CARD AZUL */
.deportes-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.deporte-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

.deporte-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.deporte-liga {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0369a1;
}

.deporte-tag-live {
    font-size: 0.65rem;
    font-weight: 800;
    background: #ef4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

.deporte-tag-date, .deporte-tag-int {
    font-size: 0.65rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
}

.deporte-item p {
    margin: 0;
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.4;
}