/* Estilos generales */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.top-bar a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #007bff !important;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo h1 {
    font-weight: 700;
    color: #333;
    font-size: 1.8rem;
}

.ad-space {
    height: 90px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #adb5bd;
    overflow: hidden;
    border-radius: 4px;
}

.ad-space img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.ad-space a {
    display: block;
    text-decoration: none;
}

.ad-placeholder {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

/* Breaking News */
.breaking-news {
    font-size: 0.9rem;
}

.breaking-news .text-danger {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: ticker 20s linear infinite;
}

.ticker li {
    display: inline-block;
    padding-right: 2rem;
}

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

/* Featured News */
.featured-news {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-news:hover {
    transform: translateY(-5px);
}

.featured-news .card-img-top {
    height: 400px;
    object-fit: cover;
}

.featured-news .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.meta-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-info i {
    width: 16px;
    text-align: center;
}

/* Latest News Grid */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

.latest-news-grid .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.latest-news-grid .card:hover {
    transform: translateY(-3px);
}

.latest-news-grid .card-img-top {
    height: 200px;
    object-fit: cover;
}

.latest-news-grid .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar .card-header {
    border-radius: 0;
    padding: 1rem;
}

.sidebar .list-group-item {
    border: none;
    padding: 0.75rem 1rem;
}

.sidebar .list-group-item:hover {
    background-color: #f8f9fa;
}

.popular-post img {
    border-radius: 4px;
}

.popular-post h6 {
    font-size: 0.9rem;
    line-height: 1.4;
}

.popular-post a {
    color: #333;
    transition: color 0.3s ease;
}

.popular-post a:hover {
    color: #007bff;
}

/* Newsletter */
.newsletter .card-header {
    border-radius: 0;
    padding: 1rem;
}

.newsletter .form-control {
    border-radius: 0;
    padding: 0.75rem;
}

.newsletter .btn {
    border-radius: 0;
    padding: 0.75rem;
}

/* Footer */
.footer {
    background-color: #343a40;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer a:hover {
    color: #007bff;
}

.footer .social-links a {
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Pagination */
.pagination .page-link {
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    color: #333;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-news .card-img-top {
        height: 300px;
    }
    
    .featured-news .card-title {
        font-size: 1.5rem;
    }
    
    .latest-news-grid .card-img-top {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .top-bar-left {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .top-bar-right {
        text-align: center;
    }

    .ad-space {
        margin-top: 1rem;
    }
}

/* Toast Styles */
.toast-container {
    z-index: 1050;
}

.toast {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.toast.bg-success {
    background-color: rgba(40, 167, 69, 0.9) !important;
}

.toast.bg-danger {
    background-color: rgba(220, 53, 69, 0.9) !important;
}

.toast.bg-warning {
    background-color: rgba(255, 193, 7, 0.9) !important;
}

.toast.bg-info {
    background-color: rgba(23, 162, 184, 0.9) !important;
}

.toast-body {
    padding: 0.75rem 1rem;
}

/* Hero Section */
.hero-section {
    margin-top: 2rem;
}

/* Sidebar Ads */
.sidebar-ads .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.sidebar-ads .card:hover {
    transform: translateY(-3px);
}

.sidebar-ads img {
    width: 100%;
    height: auto;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.newsletter-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-section .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section .form-control {
    border: none;
    padding: 0.8rem;
}

.newsletter-section .btn-light {
    padding: 0.8rem 2rem;
    font-weight: 600;
}

/* Footer Ads */
.footer-ads {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-ads img {
    max-height: 80px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.footer-ads a:hover img {
    transform: scale(1.05);
}

/* Ad Container Styles */
.ad-container {
    margin-bottom: 1rem;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Header Ads */
.header-ads {
    margin-bottom: 2rem;
}

/* Sidebar Ads */
.sidebar-ads .card {
    margin-bottom: 1rem;
} 