/**
 * Hero Noticia Template Styles
 *
 * Loaded ONLY on noticias using template-hero-noticia.php
 * This CSS is completely isolated from other templates
 *
 * @package ticoneXion
 * @version 1.0.0
 */

/* ==========================================================================
   1. Hide empty main#content from header.php
   ========================================================================== */
body.noticia-template-template-hero-noticia main#content.site-content {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   2. Header - Transparent gradient over hero
   ========================================================================== */
body.noticia-template-template-hero-noticia .site-header {
    background: linear-gradient(to bottom, rgba(0, 102, 255, 0.95) 0%, rgba(0, 102, 255, 0) 100%) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: none !important;
}

body.noticia-template-template-hero-noticia .site-header.scrolled {
    background: rgba(3, 7, 18, 0.98) !important;
    position: fixed !important;
    top: 0 !important;
}

body.noticia-template-template-hero-noticia .nav-menu a {
    color: #ffffff !important;
}

body.noticia-template-template-hero-noticia .nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.noticia-template-template-hero-noticia .site-title a {
    color: #ffffff !important;
}

/* ==========================================================================
   3. Hero Section - Full viewport width background image
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured,
body.noticia-template-template-hero-noticia .hero-featured.hero-featured--noticia,
body.noticia-template-template-hero-noticia section.hero-featured {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100vw !important;
    min-height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    top: 0 !important;
    padding-top: 40px !important;
    padding-bottom: 3rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
}

@media (min-width: 1024px) {
    body.noticia-template-template-hero-noticia .hero-featured,
    body.noticia-template-template-hero-noticia .hero-featured.hero-featured--noticia {
        min-height: 75vh !important;
    }
}

/* ==========================================================================
   4. Hero overlay - gradient for text readability
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        to top,
        rgba(3, 7, 18, 0.95) 0%,
        rgba(3, 7, 18, 0.7) 40%,
        rgba(3, 7, 18, 0.3) 70%,
        rgba(3, 7, 18, 0.1) 100%
    ) !important;
    z-index: 1 !important;
}

/* ==========================================================================
   5. Hero content
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured__content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
}

body.noticia-template-template-hero-noticia .hero-featured__header {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
}

/* ==========================================================================
   6. Breadcrumb
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured__breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 1.5rem !important;
}

body.noticia-template-template-hero-noticia .hero-featured__breadcrumb a {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.noticia-template-template-hero-noticia .hero-featured__breadcrumb a:hover {
    color: #ffffff;
}

body.noticia-template-template-hero-noticia .hero-featured__breadcrumb .separator {
    font-size: 0.625rem;
    opacity: 0.6;
}

body.noticia-template-template-hero-noticia .hero-featured__breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}

/* ==========================================================================
   7. Badge (Press Release indicator)
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

body.noticia-template-template-hero-noticia .hero-featured__badge i {
    font-size: 0.875rem;
}

/* ==========================================================================
   8. Title
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured__title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    body.noticia-template-template-hero-noticia .hero-featured__title {
        font-size: 2.75rem !important;
    }
}

@media (min-width: 1024px) {
    body.noticia-template-template-hero-noticia .hero-featured__title {
        font-size: 3rem !important;
    }
}

/* ==========================================================================
   9. Meta
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-featured__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

body.noticia-template-template-hero-noticia .hero-featured__meta i {
    margin-right: 0.375rem;
    opacity: 0.7;
}

body.noticia-template-template-hero-noticia .hero-featured__date,
body.noticia-template-template-hero-noticia .hero-featured__reading-time,
body.noticia-template-template-hero-noticia .hero-featured__source {
    display: flex;
    align-items: center;
}

body.noticia-template-template-hero-noticia .hero-featured__source a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.noticia-template-template-hero-noticia .hero-featured__source a:hover {
    color: #ffffff;
}

/* ==========================================================================
   10. Noticia Content Area
   ========================================================================== */
body.noticia-template-template-hero-noticia .site-main {
    background-color: #030712 !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* ==========================================================================
   11. Content layout - main content takes 2/3, sidebar 1/3
   ========================================================================== */
body.noticia-template-template-hero-noticia .content-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
}

@media (min-width: 1024px) {
    body.noticia-template-template-hero-noticia .content-layout {
        grid-template-columns: 2fr 1fr !important;
    }

    body.noticia-template-template-hero-noticia .content-layout.sidebar-left {
        grid-template-columns: 1fr 2fr !important;
    }

    body.noticia-template-template-hero-noticia .content-layout.layout-full-width {
        grid-template-columns: 1fr !important;
    }
}

body.noticia-template-template-hero-noticia .main-content {
    min-width: 0 !important;
}

/* ==========================================================================
   12. Remove max-width restriction from hero noticia content
   ========================================================================== */
body.noticia-template-template-hero-noticia .hero-noticia-content,
body.noticia-template-template-hero-noticia .single-noticia.hero-noticia-content,
body.noticia-template-template-hero-noticia article.hero-noticia-content,
body.noticia-template-template-hero-noticia article.single-noticia.hero-noticia-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.noticia-template-template-hero-noticia .hero-noticia-content .entry-content,
body.noticia-template-template-hero-noticia .hero-noticia-content .single-noticia__content,
body.noticia-template-template-hero-noticia .single-noticia.hero-noticia-content .entry-content,
body.noticia-template-template-hero-noticia .single-noticia.hero-noticia-content .single-noticia__content,
body.noticia-template-template-hero-noticia article.hero-noticia-content .entry-content,
body.noticia-template-template-hero-noticia article.hero-noticia-content .single-noticia__content {
    max-width: none !important;
    width: 100% !important;
}

body.noticia-template-template-hero-noticia .single-noticia,
body.noticia-template-template-hero-noticia article.single-noticia,
body.noticia-template-template-hero-noticia .main-content .single-noticia,
body.noticia-template-template-hero-noticia .main-content article,
body.noticia-template-template-hero-noticia .content-layout .main-content article,
body.noticia-template-template-hero-noticia .container .main-content article {
    max-width: none !important;
    width: 100% !important;
}

body.noticia-template-template-hero-noticia .single-noticia__content,
body.noticia-template-template-hero-noticia .entry-content,
body.noticia-template-template-hero-noticia article .entry-content,
body.noticia-template-template-hero-noticia article .single-noticia__content,
body.noticia-template-template-hero-noticia .main-content .entry-content,
body.noticia-template-template-hero-noticia .main-content .single-noticia__content {
    max-width: none !important;
    width: 100% !important;
}

body.noticia-template-template-hero-noticia .hero-noticia-content {
    background: transparent;
}

body.noticia-template-template-hero-noticia .single-noticia__content {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ==========================================================================
   13. Excerpt styling
   ========================================================================== */
body.noticia-template-template-hero-noticia .single-noticia__excerpt {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ==========================================================================
   14. Light Content Mode - White background for article only
   ========================================================================== */
body.noticia-template-template-hero-noticia .site-main.content-mode-light {
    background-color: #030712;
}

body.noticia-template-template-hero-noticia .content-mode-light.hero-noticia-content {
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    margin-top: -2rem !important;
    position: relative !important;
    z-index: 10 !important;
}

@media (min-width: 768px) {
    body.noticia-template-template-hero-noticia .content-mode-light.hero-noticia-content {
        padding: 3rem;
    }
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content p {
    color: #374151 !important;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__content {
    color: #1f2937;
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content h2,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content h3,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content h4,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content h5,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content h6 {
    color: #111827 !important;
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content a {
    color: #1E40AF !important;
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content a:hover {
    color: #1E3A8A;
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content blockquote {
    border-left: 4px solid #1E40AF;
    background: #f3f4f6;
    color: #374151;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content ul li,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content ol li {
    color: #374151;
}

body.noticia-template-template-hero-noticia .content-mode-light .entry-content strong,
body.noticia-template-template-hero-noticia .content-mode-light .entry-content b {
    color: #111827;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__footer {
    border-top-color: #e5e7eb;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__excerpt {
    color: #374151;
    border-left-color: #1E40AF;
}

/* ==========================================================================
   15. Footer styles (share, contact, navigation)
   ========================================================================== */
body.noticia-template-template-hero-noticia .single-noticia__footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.noticia-template-template-hero-noticia .single-noticia__share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-buttons {
    display: flex;
    gap: 0.5rem;
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.2s ease;
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-btn:hover {
    transform: translateY(-2px);
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-btn--twitter:hover {
    background: #1da1f2;
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-btn--facebook:hover {
    background: #1877f2;
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-btn--linkedin:hover {
    background: #0a66c2;
}

body.noticia-template-template-hero-noticia .single-noticia__share .share-btn--whatsapp:hover {
    background: #25d366;
}

body.noticia-template-template-hero-noticia .single-noticia__contact {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

body.noticia-template-template-hero-noticia .single-noticia__contact h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

body.noticia-template-template-hero-noticia .single-noticia__contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

body.noticia-template-template-hero-noticia .single-noticia__contact a {
    color: #60a5fa;
}

body.noticia-template-template-hero-noticia .single-noticia__contact a:hover {
    color: #93c5fd;
}

/* Light mode contact */
body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__contact {
    background: #eff6ff;
    border-color: #bfdbfe;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__contact h4 {
    color: #1e40af;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__contact p {
    color: #374151;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__contact a {
    color: #1e40af;
}

/* ==========================================================================
   16. Navigation
   ========================================================================== */
body.noticia-template-template-hero-noticia .single-noticia__navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.noticia-template-template-hero-noticia .single-noticia__navigation .nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

body.noticia-template-template-hero-noticia .single-noticia__navigation .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

body.noticia-template-template-hero-noticia .single-noticia__navigation .nav-link--next {
    text-align: right;
}

body.noticia-template-template-hero-noticia .single-noticia__navigation .nav-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.noticia-template-template-hero-noticia .single-noticia__navigation .nav-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

/* Light mode navigation */
body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__navigation {
    border-top-color: #e5e7eb;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__navigation .nav-link {
    background: #f9fafb;
    border-color: #e5e7eb;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__navigation .nav-link:hover {
    background: #f3f4f6;
    border-color: #bfdbfe;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__navigation .nav-label {
    color: #6b7280;
}

body.noticia-template-template-hero-noticia .content-mode-light .single-noticia__navigation .nav-title {
    color: #111827;
}

/* ==========================================================================
   17. Related Noticias
   ========================================================================== */
body.noticia-template-template-hero-noticia .related-noticias {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.noticia-template-template-hero-noticia .related-noticias__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

body.noticia-template-template-hero-noticia .related-noticias__title i {
    color: #3b82f6;
}

body.noticia-template-template-hero-noticia .related-noticias__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    body.noticia-template-template-hero-noticia .related-noticias__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card__thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card__content {
    padding: 1rem;
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card__date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card__title {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card__title a {
    color: #ffffff;
}

body.noticia-template-template-hero-noticia .related-noticias .noticia-card__title a:hover {
    color: #60a5fa;
}

body.noticia-template-template-hero-noticia .related-noticias__cta {
    margin-top: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   18. Sidebar Widgets
   ========================================================================== */
body.noticia-template-template-hero-noticia .sidebar .sidebar-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

body.noticia-template-template-hero-noticia .sidebar .content-mode-light .sidebar-widget,
body.noticia-template-template-hero-noticia .content-mode-light ~ .sidebar .sidebar-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

body.noticia-template-template-hero-noticia .content-mode-light ~ .sidebar .sidebar-widget-title {
    color: #111827;
}

body.noticia-template-template-hero-noticia .content-mode-light ~ .sidebar .sidebar-widget {
    color: #374151;
}
