/* Estilos adicionales para páginas de noticias individuales */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: #666;
}

/* Noticia Individual */
.noticia-single {
    background-color: #fff;
}

.noticia-container {
    max-width: 900px;
    margin: 0 auto;
}

.noticia-header {
    text-align: center;
    margin-bottom: 2rem;
}

.noticia-categoria {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.noticia-categoria i {
    margin-right: 0.5rem;
}

.noticia-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.noticia-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.noticia-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.noticia-meta i {
    color: var(--primary-color);
}

.noticia-imagen-principal {
    width: 100%;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.noticia-imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
}

/* Social Share */
.social-share {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.social-share h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
}

.share-btn {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

/* Contenido de la noticia */
.noticia-contenido {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.noticia-contenido .lead {
    font-size: 1.3rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.noticia-contenido h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.noticia-contenido h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.noticia-contenido p {
    margin-bottom: 1.5rem;
}

.noticia-contenido ul,
.noticia-contenido ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.noticia-contenido li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.noticia-contenido blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 5px;
    position: relative;
}

.noticia-contenido blockquote .fa-quote-left {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.noticia-contenido blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    margin: 0 0 1rem 0;
    padding-left: 1rem;
}

.noticia-contenido blockquote footer {
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
}

.noticia-imagen-secundaria {
    margin: 3rem 0;
}

.noticia-imagen-secundaria img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.noticia-destacado {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.noticia-destacado i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.noticia-destacado h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.noticia-destacado p {
    margin: 0;
    line-height: 1.6;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.tag {
    background-color: #f0f0f0;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Navegación entre noticias */
.noticia-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.nav-noticia {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.nav-noticia:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.nav-noticia.nav-prev {
    text-align: left;
}

.nav-noticia.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.nav-noticia:hover .nav-label {
    color: rgba(255,255,255,0.8);
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-noticia:hover .nav-title {
    color: white;
}

/* Noticias relacionadas */
.noticias-relacionadas {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.noticias-relacionadas h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.noticias-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.noticia-card-small {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.noticia-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.noticia-image-small {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.noticia-content-small {
    padding: 1.5rem;
}

.noticia-fecha-small {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.noticia-content-small h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.leer-mas-small {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.leer-mas-small:hover {
    color: var(--secondary-color);
}

/* Responsive para páginas de noticias */
@media (max-width: 768px) {
    .noticia-header h1 {
        font-size: 1.8rem;
    }

    .noticia-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .noticia-imagen-principal {
        height: 300px;
    }

    .noticia-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .social-share {
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .social-share h4 {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .noticia-contenido {
        font-size: 1rem;
    }

    .noticia-contenido .lead {
        font-size: 1.1rem;
    }

    .noticia-contenido h2 {
        font-size: 1.5rem;
    }

    .noticia-navigation {
        grid-template-columns: 1fr;
    }

    .noticias-grid-small {
        grid-template-columns: 1fr;
    }

    .noticia-destacado {
        flex-direction: column;
    }
}
