* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Header */
header {
    background: linear-gradient(135deg, #a74242 0%, #8e2a2a 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero / Page Header */
.hero,
.page-header {
    background: linear-gradient(135deg, #a74242 0%, #8e2a2a 100%);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

.hero h1,
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p,
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #b5261e;
}

/* Video Player */
.video-section {
    background: white;
    padding: 0rem 2rem;
}

.featured-video {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 2rem;
}

.video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.video-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Upload Section */
.upload-section {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #667eea;
}

.upload-btn {
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #5568d3;
}

#videoFile {
    display: none;
}

/* Cards Grid Layout */
.episodes-grid,
.articles-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card Styles */
.episode-card,
.article-card,
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.episode-card:hover,
.article-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Thumbnail/Image Styles */
.episode-thumbnail,
.article-image,
.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.episode-thumbnail {
    background: linear-gradient(135deg, #a74242 0%, #8e2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.blog-image {
    background: linear-gradient(135deg, #a74242 0%, #8e2a2a 100%);
}

/* Card Content */
.episode-content,
.article-content,
.blog-content {
    padding: 1.5rem;
}

/* Category Styles */
.article-category,
.episode-number {
    display: inline-block;
    background: #f0f0f0;
    color: #b5261e;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.episode-number {
    background: #b5261e;
    color: white;
}

/* Title Styles */
.episode-content h4,
.article-title,
.blog-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: justify;
}

.article-title a {
    color: #333;
    text-decoration: none;
    text-align: justify;
}

.article-title a:hover {
    color: #b5261e;
}

/* Description/Excerpt */
.episode-content p,
.article-excerpt,
.blog-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/* Meta Information */
.article-meta,
.episode-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
}

.episode-meta span {
    margin-right: 1.5rem;
}

/* Episode Specific */
.episode-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.episode-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: white;
}

.episode-date {
    color: #b5261e;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.episode-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Tags */
.tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

/* Q&A Section */
.qa-section {
    background: #fff;
    padding: 3rem 2rem;
}

.qa-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.qa-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #b5261e;
    text-align: justify;
}

.question {
    font-weight: bold;
    color: #b5261e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.answer {
    color: #333;
    line-height: 1.8;
}

.asker {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Blog Specific */
.read-more {
    color: #b5261e;
    text-decoration: none;
    font-weight: bold;
}

/* Article Detail Page */
.back-link {
    display: inline-block;
    color: #b5261e;
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.article,
.episode-header {
    /*background: white;*/
    border-radius: 12px;
   /*box-shadow: 0 3px 10px rgba(0,0,0,0.1);*/
    overflow: hidden;
    margin-bottom: 1rem;
}


.article-header {
    padding: 3rem 3rem 2rem 3rem;
}

.article-category {
    background: #b5261e;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-title,
.episode-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
    text-align: justify;
}

.article-meta {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Body */
.article-body,
.episode-description {
    padding: .5rem;
    text-align: justify;
}

.article-body h2,
.episode-description h2 {
    color: #b5261e;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    text-align: justify;
}

.article-body h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    text-align: justify;
}

.article-body p,
.episode-description p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    text-align: justify;
}

.article-body li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    text-align: justify;
}

.article-body blockquote {
    background: #f9f9f9;
    border-left: 4px solid #b5261e;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    text-align: justify;
}

.article-body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Highlight Box */
.highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #b5261e;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Article Footer */
.article-footer {
    padding: 2rem 3rem 3rem 3rem;
    border-top: 1px solid #e0e0e0;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.share-section {
    margin-top: 1.5rem;
}

.share-section h4 {
    margin-bottom: 0.8rem;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }

/* Transcription */
.transcription {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.transcription h2 {
    color: #b5261e;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.transcript-section {
    margin-bottom: 2rem;
}

.timestamp {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.speaker {
    font-weight: bold;
    color: #b5261e;
    margin-bottom: 0.5rem;
}

.dialogue {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    padding-left: 1rem;
    border-left: 3px solid #e0e0e0;
}

/* Search and Filter Section */
.controls {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    padding: 0.8rem 2rem;
    background: #b5261e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #5568d3;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-weight: 500;
    color: #666;
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: #b5261e;
    color: white;
    border-color: #b5261e;
}

/* Stats */
.stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #b5261e;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-btn,
.page-btn {
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover,
.page-btn:hover {
    border-color: #b5261e;
    color: #b5261e;
}

.pagination-btn.active,
.page-btn.active {
    background: #b5261e;
    color: white;
    border-color: #b5261e;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}
/* Custom Styles for Episode Detail Page (Post-Video) */

.section-title-left {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left; /* Títulos alineados a la izquierda para las secciones de detalle */
    color: #b5261e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left: 4px solid #b5261e;
}

/* Key Topics Grid - Temas Clave */
.key-topics-grid {
    display: grid;
    /* Cuadrícula con tarjetas de 350px de ancho mínimo */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.topic-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid #a74242; /* Acento con el color de degradado */
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.topic-card h4 {
    color: #8e2a2a; /* Rojo oscuro para el título del tema */
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.topic-card p {
    font-size: 0.95rem;
    color: #444;
}

/* Reports/Q&A Grid - Reportes Ciudadanos */
.reports-grid {
    display: grid;
    /* Cuadrícula con tarjetas de 280px de ancho mínimo */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.report-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-bottom: 5px solid #8e2a2a; /* Borde inferior fuerte para resaltar la tarjeta */
}

.report-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Colores para las categorías de reportes */
.category-red { background: #b5261e; } /* Para baches y riesgo */
.category-yellow { background: #ffc107; color: #333; } /* Para luz y energía */
.category-blue { background: #667eea; } /* Para servicios y tránsito */
.category-green { background: #28a745; } /* Para agradecimientos */

.report-card p {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.texto-justificado {
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1,
    .page-header h1,
    .article-title,
    .episode-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #667eea;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        padding: 2rem 1rem;
    }

    .episodes-grid,
    .articles-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .article-header,
    .article-body,
    .article-footer,
    .episode-header,
    .video-wrapper,
    .episode-description,
    .transcription {
        padding: 2rem 1.5rem;
    }

    .featured-image {
        height: 250px;
        font-size: 2rem;
    }

    .share-buttons {
        flex-direction: column;
    }
}
/* Logo Styles */
.logo-container {
    /*display: flex;*/
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 180px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.logo-text p {
    font-size: 0.8rem;
    margin: 0.2rem 0 0 0;
    opacity: 0.9;
    max-width: 300px;
    line-height: 1.3;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .site-logo {
        height: 60px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
        max-width: 250px;
    }
}