/* Variables de Color */
:root {
    --color-red: #D32F2F;
    --color-black: #121212;
    --color-white: #F5F5F5;
    --color-gray: #333;
    --color-gray-light: #555;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-black);
    color: var(--color-white);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(211, 47, 47, 0.03) 2px,
            rgba(211, 47, 47, 0.03) 4px
        );
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: var(--color-black) !important;
    border-bottom: 3px solid var(--color-red);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--color-white) !important;
    text-decoration: none;
    letter-spacing: 2px;
}

.alert-badge {
    color: var(--color-red);
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

.navbar-nav .nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-red) !important;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form input {
    background-color: var(--color-gray);
    border: 1px solid var(--color-gray-light);
    color: var(--color-white);
    min-width: 200px;
}

.search-form input::placeholder {
    color: rgba(245, 245, 245, 0.6);
}

.search-form input:focus {
    background-color: var(--color-gray);
    border-color: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.btn-outline-secondary {
    border-color: var(--color-gray-light);
    color: var(--color-white);
}

.btn-outline-secondary:hover {
    background-color: var(--color-gray-light);
    border-color: var(--color-gray-light);
    color: var(--color-white);
}

.btn-outline-danger {
    border-color: var(--color-red);
    color: var(--color-red);
}

.btn-outline-danger:hover {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

/* Hero Section */
.hero-section {
    margin-top: 0;
}

.main-news {
    position: relative;
    height: 500px;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    border-radius: 0;
}

@media (min-width: 768px) {
    .main-news {
        border-radius: 8px;
        margin: 1rem;
    }
}

.main-news-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-news-image img,
.main-news-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-news-image img {
    filter: brightness(0.7);
}

.main-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), transparent);
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-news-overlay:hover {
    transform: translateY(-5px);
}

.main-news-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 1rem;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.3s;
}

.main-news-title:hover {
    color: var(--color-red);
}

.main-news-summary {
    color: rgba(245, 245, 245, 0.9);
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-badge {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Headlines Carousel */
.headlines-carousel {
    background-color: var(--color-gray);
    min-height: auto;
    max-height: 450px;
    padding: 1rem;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--color-gray-light);
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.headlines-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: var(--color-red);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-red);
}

.carousel-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.carousel-item:hover {
    background-color: rgba(211, 47, 47, 0.15);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.carousel-item h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-item .headline-category {
    font-size: 0.65rem;
    color: var(--color-red);
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    margin-bottom: 0.2rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.4;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 0.5rem;
}

.carousel-control-next {
    right: 0.5rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
    background-color: rgba(211, 47, 47, 0.5);
}

/* News Section */
.news-section {
    padding: 3rem 0;
    background-color: var(--color-black);
}

#newsGrid {
    margin-left: -1rem;
    margin-right: -1rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--color-red);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out;
}

.section-subtitle {
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.no-results {
    padding: 3rem 1rem;
}

.no-results i {
    opacity: 0.5;
}

/* News Cards */
.news-card {
    background-color: var(--color-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    border: 1px solid var(--color-gray-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#newsGrid > div {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-bottom: 1.5rem;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(211, 47, 47, 0.4);
    border-color: var(--color-red);
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.3s, transform 0.3s;
}

.news-card-video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--color-black);
}

.news-card:hover .news-card-image,
.news-card:hover .news-card-video {
    filter: brightness(1);
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    font-size: 0.7rem;
    color: var(--color-red);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 4px;
}

.news-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-summary {
    color: rgba(245, 245, 245, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* Modal */
.modal-content {
    background-color: var(--color-gray);
    color: var(--color-white);
    border: 2px solid var(--color-red);
}

.modal-header {
    border-bottom: 1px solid var(--color-gray-light);
}

.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--color-white);
    letter-spacing: 1px;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.modal-image-wrapper img,
.modal-image-wrapper video {
    border-radius: 8px;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: var(--color-black);
}

.modal-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.modal-content-wrapper {
    margin-top: 1.5rem;
}

.modal-content-wrapper p {
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 245, 0.9);
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Share Buttons */
.share-buttons {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-light);
}

.share-label {
    margin: 0 0 1rem 0;
    font-weight: bold;
    color: var(--color-white);
    font-size: 1.1rem;
}

.share-label i {
    margin-right: 0.5rem;
    color: var(--color-red);
}

.share-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-social {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-social.facebook {
    background-color: #1877F2;
    color: white;
}

.btn-social.whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-social.twitter {
    background-color: #000000;
    color: white;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    border-top: 3px solid var(--color-red);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--color-red);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-text {
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.6;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-red);
}

.footer-divider {
    border-color: var(--color-gray-light);
    margin: 2rem 0;
}

.disclaimer {
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.copyright {
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .main-news-title {
        font-size: 2rem;
    }
    
    .headlines-carousel {
        min-height: auto;
        max-height: 300px;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .headlines-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }
    
    .carousel-item h4 {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .main-news {
        height: 350px;
    }
    
    .main-news-title {
        font-size: 1.5rem;
    }
    
    .main-news-summary {
        font-size: 0.95rem;
    }
    
    .news-card-title {
        font-size: 1.1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .share-buttons-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-social {
        width: 100%;
        justify-content: center;
    }
    
    .search-form input {
        min-width: 150px;
    }
    
    .search-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .main-news-overlay {
        padding: 1rem;
    }
    
    .main-news-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}

