/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    background-color: #f9f5f0;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

a {
    text-decoration: none;
    color: #4a6bff;
}

a:hover {
    color:  #2a4bd8;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #4a6bff;
}

.logo span {
    color: #00c9a7;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

/* Hero Section */
.hero {
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
    position: relative;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: #4a6bff;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2a4bd8;
    color: white;
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Articles */
.articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.news{
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}
/* Article Cards */
.article-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

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



.article-content {
    padding: 20px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}
.article-category {
    background-color: #4a6bff;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}
/* Sidebar */
.sidebar {
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    color: #00c9a7;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.popular-posts li {
    margin-left: 10%;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts a {
    display: block;
    font-weight: 500;
}

.popular-posts span {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #5a52d6;
}

.categories-list li {
    margin-left: 10%;
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
}

.categories-list span {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* AdSense Ad Units */
.ad-unit {
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #4a6bff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    display: flex !important;
}

.cookie-banner p {
    margin-right: 20px;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #4a6bff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
}

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 10px;
    transition: opacity 0.3s;
}

.cookie-btn:hover {
    opacity: 0.9;
}

.cookie-accept {
    background-color: #4a6bff;
    color: white;
}

.cookie-decline {
    background-color: #555;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        margin-top: 15px;
    }
}
/* Estilos adicionales para la vista de detalle */
.article-detail {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.article-detail h1 {
    color: #4a6bff;
    margin-bottom: 15px;
    font-size: 2rem;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #888;
    font-size: 0.9rem;
}

.article-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-detail-content {
    line-height: 1.8;
}

.article-detail-content p,
.article-detail-content ul,
.article-detail-content ol {
    margin-bottom: 20px;
}

.article-detail-content li {
    margin-bottom: 10px;
}

.related-articles {
    margin: 50px 0;
}

.related-articles h2 {
    color: #4a6bff;
    margin-bottom: 30px;
    text-align: center;
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Sección Contacto */
.contact-section {
    padding: 60px 0;
    margin-top: 40px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3, .contact-form h3 {
    color: #4a6bff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 10px;
    color: #4a6bff;
    width: 20px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #4a6bff;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #4a6bff;
    color: white;
}

.contact-form {
    background-color: #f9f5f0;
    padding: 30px;
    border-radius: 8px;
}

/* Form labels flotantes */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #888;
    transition: all 0.3s;
    pointer-events: none;
    background-color: #f9f5f0;
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 0.8rem;
    color: #4a6bff;
}

#formMessages {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

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


/* Estilos para categorías */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #4a6bff;
}

.categories-list span {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #666;
}

.categories-list a:hover span {
    background-color: #4a6bff;
    color: white;
}

.back-to-all {
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

.main-title {
    color: #4a6bff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Estilos para páginas de categoría */
.category-hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.category-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

.category-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.category-info h2 {
    color: #4a6bff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.category-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background-color: #f9f5f0;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2rem;
    color: #4a6bff;
    margin-bottom: 15px;
    display: block;
}

.feature-box h3 {
    color: #333;
    margin-bottom: 15px;
}

.feature-box ul {
    list-style-type: none;
}

.feature-box ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.feature-box ul li:before {
    content: "•";
    color: #4a6bff;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.category-articles {
    position: sticky;
    top: 100px;
    align-self: start;
}

.articles-mini {
    display: grid;
    gap: 20px;
}

.articles-mini .article-card {
    margin-bottom: 15px;
}

/* Estilos para tabs */
.tab-container {
    margin-top: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #4a6bff;
    font-weight: 600;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a6bff;
}

.tab-content {
    display: none;
    padding: 15px 0;
}

.tab-content.active {
    display: block;
}

/* Estilos para contacto */
.contact-hero {
    background-color: #f9f5f0;
    text-align: center;
    padding: 80px 20px;
}

.contact-hero h1 {
    color: #4a6bff;
    font-size: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.contact-details {
    list-style: none;
    margin: 30px 0;
}

.contact-details li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    color: #4a6bff;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.social-media {
    margin: 40px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #4a6bff;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #4a6bff;
    color: white;
}

.contact-form {
    background-color: #f9f5f0;
    padding: 30px;
    border-radius: 8px;
}

.contact-form h2 {
    color: #4a6bff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.faq-section {
    margin: 60px 0;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    color: #4a6bff;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 0 20px;
    display: none;
}

.faq-answer.active {
    display: block;
}

@media (max-width: 768px) {
    .category-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .category-articles {
        position: static;
    }
}
.news-carousel-section {
    margin-top: -30px;
    padding-bottom: 0%;
}

#mainNewsCarousel .carousel-item {
    height: 450px;
    overflow: hidden;
}

#mainNewsCarousel img { 
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 20px 20px;
    text-align: left;
}

.thumbnail-container {
    padding: 10px 0;
    scrollbar-width: thin;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 100px;
    height: 60px;
    cursor: pointer;
    overflow: hidden;
}

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

.thumbnail-item img:hover {
    transform: scale(1.05);
}

.latest-news-section {
    padding: 20px 0;
}

.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-img-container {
    height: 180px;
    overflow: hidden;
}

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

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

.news-category-badge {
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    transition: background-color 0.3s;
}

.news-card-title {
    font-weight: 600;
    line-height: 1.3;
    min-height: 40px;
}

.news-card-title a:hover {
    color: var(--bs-primary) !important;
}

.news-card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 60px;
}

.news-card-meta {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px;
}

.author {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.date {
    font-style: italic;
}
#exportImageBtn {
    opacity: 0.7;
    transition: opacity 0.3s;
}

#exportImageBtn:hover {
    opacity: 1;
}

.container-extra-wide {
  max-width: 1587px;
}