/*
Theme Name: Yachay Riqchary Custom Theme
Author: Yachay Riqchary
Description: Tema personalizado y 100% administrable para la Asociación Civil Yachay Riqchary.
Version: 1.1
Text Domain: yachay-riqchary
*/

:root {
    --primary-navy: #09316b;
    --primary-teal: #0d6956;
    --dark-footer: #062147;
    --green-accent: #137c3b;
    --lime-highlight: #8ce563;
    --yellow-cta: #f5b82e;
    --bg-light: #f3f6f9;
    --text-dark: #0a2e5c;
    --text-muted: #64748b;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. CABECERA (HEADER) */
.site-header {
    background-color: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-main {
    color: var(--green-accent);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.brand-sub {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--green-accent);
}

/* 2. SECCIÓN HERO */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #082d66 0%, #0a4273 55%, #0d6b57 100%);
    color: var(--white);
    text-align: center;
    padding: 85px 20px 100px;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.hero-section::before {
    width: 520px;
    height: 520px;
    bottom: -390px;
}

.hero-section::after {
    width: 380px;
    height: 380px;
    bottom: -320px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.hero-logo-wrap {
    width: 96px;
    height: 96px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.hero-eyebrow {
    color: var(--yellow-cta);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero-title span.highlight {
    display: block;
    color: var(--lime-highlight);
}

.hero-description {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    font-weight: 400;
}

.btn-yellow {
    display: inline-block;
    background-color: var(--yellow-cta);
    color: #082957;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-yellow:hover {
    background-color: #ffc642;
    transform: translateY(-2px);
}

/* 3. ESTILOS GENERALES DE SECCIÓN */
.section-block {
    padding: 80px 0;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 48px;
}

.section-eyebrow {
    color: var(--green-accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    color: var(--text-dark);
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* 4. TARJETAS "¿QUIÉNES SOMOS?" */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(10, 46, 92, 0.04);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background-color: #eaf6ed;
    color: var(--green-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card h3 {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 5. TARJETAS DE PROYECTOS Y NOTICIAS */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 42px;
}

.post-card {
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 6px 22px rgba(10, 46, 92, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-date {
    color: var(--green-accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.post-title {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 18px;
}

.post-read-more {
    color: var(--green-accent);
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-read-more:hover {
    gap: 8px;
}

.section-cta-center {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--text-dark);
    color: var(--text-dark);
    background: transparent;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 11px 26px;
    border-radius: 999px;
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* 6. BANNER CTA VERDE (PARTICIPACIÓN) */
.cta-banner {
    background: linear-gradient(90deg, #0b6e35 0%, #0e7a3d 100%);
    color: var(--white);
    padding: 64px 0;
}

.cta-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-banner-text {
    max-width: 540px;
}

.cta-eyebrow {
    color: var(--yellow-cta);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
    display: block;
}

.cta-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.btn-white {
    display: inline-block;
    background-color: var(--white);
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 12px 26px;
    border-radius: 999px;
    white-space: nowrap;
}

.btn-white:hover {
    background-color: var(--yellow-cta);
}

/* 7. PIE DE PÁGINA (FOOTER) */
.site-footer {
    background-color: var(--dark-footer);
    color: var(--white);
    padding: 36px 0;
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.footer-brand-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-brand-text span {
    color: #94a3b8;
    font-size: 0.78rem;
}

.footer-copy {
    text-align: right;
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.5;
}

/* 8. RESPONSIVE */
@media (max-width: 900px) {
    .features-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .cta-banner-inner,
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-copy {
        text-align: center;
    }
}

/* =========================================
   9. EFECTOS DINÁMICOS Y ANIMACIONES
   ========================================= */
html {
    scroll-behavior: smooth;
}

/* Cabecera Sticky con efecto Glassmorphism al hacer scroll */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(9, 49, 107, 0.08);
    padding: 12px 0;
}

/* Subrayado animado en el menú */
.main-nav a {
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Flotación suave del logo del Hero y pulso de los aros */
@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

@keyframes pulseRings {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.06); opacity: 0.7; }
}

.hero-logo-wrap {
    animation: floatLogo 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-logo-wrap:hover {
    box-shadow: 0 12px 32px rgba(245, 184, 46, 0.35);
}

.hero-section::before {
    animation: pulseRings 7s ease-in-out infinite;
}

.hero-section::after {
    animation: pulseRings 5s ease-in-out infinite reverse;
}

/* Elevación 3D e iluminación en Tarjetas de Quiénes Somos y Noticias */
.feature-card,
.post-card {
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.feature-card:hover,
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(10, 46, 92, 0.1);
    border-color: rgba(19, 124, 59, 0.35);
}

.feature-icon {
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    background-color: var(--green-accent);
    color: var(--white);
}

.post-read-more span {
    transition: transform 0.25s ease;
    display: inline-block;
}

.post-card:hover .post-read-more span {
    transform: translateX(5px);
}

/* Animación Reveal al bajar por la página */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }

/* =========================================
   10. IMÁGENES EN TARJETAS Y PÁGINAS INTERNAS
   ========================================= */
.post-card {
    padding: 0;
    overflow: hidden;
}

.post-card-img-wrap {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.post-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-img-wrap img {
    transform: scale(1.08);
}

.post-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(9, 49, 107, 0.9);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.post-card-body {
    padding: 24px 24px 10px;
}

.post-card-footer {
    padding: 0 24px 24px;
}

/* Estilos de Página Nosotros y Contacto */
.legal-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.legal-box,
.contact-info-card,
.contact-form-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
}

.legal-box h3,
.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.legal-box ul {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.legal-box li {
    margin-bottom: 12px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.board-member {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(10, 46, 92, 0.04);
}

.board-member span {
    display: block;
    color: var(--green-accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-item {
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
}

.contact-item span {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

/* Vista de artículo individual */
.single-post-view {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--green-accent);
    font-weight: 800;
    font-size: 0.88rem;
}

.single-post-hero-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 420px;
}

.single-post-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-content p,
.entry-content ul {
    margin-bottom: 18px;
    color: #334155;
    font-size: 1rem;
}

.entry-content h3 {
    margin: 26px 0 12px;
    color: var(--text-dark);
}

.entry-content ul {
    padding-left: 22px;
}

@media (max-width: 900px) {
    .legal-grid,
    .contact-layout,
    .board-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   11. FRANJA SUNARP Y SECTORES ESTATUTARIOS
   ========================================= */
.sunarp-strip {
    background-color: #062147;
    color: var(--white);
    padding: 22px 0;
    border-bottom: 3px solid var(--yellow-cta);
}

.sunarp-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sunarp-item {
    border-left: 2px solid rgba(140, 229, 99, 0.45);
    padding-left: 14px;
}

.sunarp-item strong {
    display: block;
    color: var(--lime-highlight);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.sunarp-item span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.section-sectors {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #edf2f7;
}

.sectors-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.sector-panel {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(10, 46, 92, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sector-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(10, 46, 92, 0.12);
}

/* Cabecera fotográfica de cada Sector */
.sector-cover {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.sector-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sector-panel:hover .sector-cover img {
    transform: scale(1.06);
}

.sector-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 33, 71, 0.25) 0%, rgba(6, 33, 71, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px 30px;
    color: var(--white);
}

.sector-tag {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--lime-highlight);
    color: #062147;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sector-cover-overlay h3 {
    font-size: 1.55rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 4px;
}

.sector-cover-overlay p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    line-height: 1.4;
}

/* Sub-ítems con miniatura fotográfica */
.sector-subitems {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sector-subitem {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--bg-light);
    border-radius: 14px;
    padding: 16px;
    border-left: 4px solid var(--green-accent);
    transition: background-color 0.3s ease, transform 0.25s ease;
}

.sector-subitem:hover {
    background-color: #ebf3f9;
    transform: translateX(4px);
}

.sector-subitem-thumb {
    width: 82px;
    height: 82px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.sector-subitem-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sector-subitem:hover .sector-subitem-thumb img {
    transform: scale(1.12);
}

.sector-subitem-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.sector-subitem-text p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .sunarp-strip-inner,
    .sectors-wrapper {
        grid-template-columns: 1fr;
    }

    .sector-subitem {
        flex-direction: column;
    }

    .sector-subitem-thumb {
        width: 100%;
        height: 150px;
    }
}

/* =========================================
   13. TEMÁTICA ANDINA, FONDO HERO Y 4 PILARES
   ========================================= */
.hero-andean-bg {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 75px 20px 85px !important;
}

.hero-eyebrow-pill {
    display: inline-block;
    background-color: #0b5ed7;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 7px 20px;
    border-radius: 999px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* 4 Círculos de Colores inspirados en el arte andino */
.hero-pillars-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    margin: 28px auto 34px;
    flex-wrap: wrap;
}

.hero-pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 125px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hero-pillar-item:hover {
    transform: translateY(-6px) scale(1.05);
}

.hero-pillar-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.circle-blue   { background-color: #093f86; }
.circle-red    { background-color: #d91b26; }
.circle-yellow { background-color: #f59e0b; }
.circle-green  { background-color: #138a36; }

.hero-pillar-label {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.hero-slogan-script {
    margin-top: 26px;
    font-size: 1.45rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.5px;
}

/* Modo 2: Banner Completo Nítido */
.hero-full-banner-wrap {
    position: relative;
    width: 100%;
    background-color: #062147;
    line-height: 0;
}

.hero-full-banner-img {
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-full-banner-cta {
    background: #062147;
    text-align: center;
    padding: 18px 20px;
    line-height: 1.5;
}

/* Cenefa Textil Andina (Awayo Cusqueño) */
.andean-awayo-divider {
    height: 7px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        #d91b26 0px, #d91b26 24px,
        #f5b82e 24px, #f5b82e 48px,
        #138a36 48px, #138a36 72px,
        #093f86 72px, #093f86 96px,
        #9333ea 96px, #9333ea 120px
    );
}

/* =========================================
   14. DINÁMICA E IDENTIDAD ANDINA DEL CUSCO
   ========================================= */

/* Franja en movimiento continuo con valores quechuas (Ayni, Minka, Yachay, Riqchary) */
.andean-marquee-bar {
    background: linear-gradient(90deg, #7c1623 0%, #9b1c2c 50%, #7c1623 100%);
    color: #ffffff;
    padding: 11px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid #f5b82e;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
}

.andean-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    animation: andeanMarqueeScroll 32s linear infinite;
}

.andean-marquee-track:hover {
    animation-play-state: paused;
}

.andean-marquee-track strong {
    color: #f5b82e;
    font-weight: 800;
}

@keyframes andeanMarqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Fondos cálidos inspirados en la tierra y textilería del Cusco */
.section-sectors,
.section-bg-light {
    background-color: #faf7f2 !important;
    background-image: radial-gradient(rgba(155, 28, 44, 0.04) 1.5px, transparent 1.5px),
                      radial-gradient(rgba(19, 124, 59, 0.04) 1.5px, #faf7f2 1.5px) !important;
    background-size: 36px 36px !important;
    background-position: 0 0, 18px 18px !important;
}

/* Borde superior de tejido andino (Awayo) en todas las tarjetas */
.sector-panel,
.post-card,
.feature-card,
.yachay-help-card {
    position: relative;
    border-top: none !important;
}

.sector-panel::before,
.post-card::before,
.feature-card::before,
.yachay-help-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
        90deg,
        #c81e2b 0%,
        #f59e0b 25%,
        #138a36 50%,
        #093f86 75%,
        #9333ea 100%
    );
    background-size: 200% 100%;
    z-index: 5;
    transition: height 0.3s ease;
    animation: awayoFlow 6s linear infinite;
}

@keyframes awayoFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.post-card:hover::before,
.feature-card:hover::before,
.sector-panel:hover::before {
    height: 7px;
}

/* Miniaturas de los puntos A, B y C con marco cálido andino y efecto zoom */
.sector-subitem {
    background-color: #fdfbf7 !important;
    border: 1px solid #ece4d8 !important;
    border-left: 5px solid #b91c1c !important;
}

.sector-subitem:nth-child(2) {
    border-left-color: #d97706 !important;
}

.sector-subitem:nth-child(3) {
    border-left-color: #137c3b !important;
}

.sector-subitem-thumb {
    width: 92px !important;
    height: 92px !important;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(124, 22, 35, 0.15) !important;
}

/* Etiquetas de Proyectos y Noticias con acento dorado/andino al pasar el mouse */
.post-badge {
    background: linear-gradient(135deg, #9b1c2c 0%, #09316b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.post-card:hover .post-badge {
    background: linear-gradient(135deg, #d97706 0%, #137c3b 100%) !important;
}

/* =========================================
   15. HERO PANORÁMICO CON ESCENAS ANDINAS FUNDIDAS A LOS LADOS
   ========================================= */
.hero-panoramic-andean {
    position: relative;
    background: linear-gradient(135deg, #072554 0%, #09356e 50%, #0d6352 100%) !important;
    padding: 90px 20px 105px !important;
    overflow: hidden;
}

.hero-side-scene {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36%;
    z-index: 1;
    pointer-events: none;
}

.hero-scene-left {
    left: 0;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
}

.hero-scene-right {
    right: 0;
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
}

.hero-side-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.04);
}

/* Evita parpadeo antes de que cargue el recorte limpio */
img[data-andean-crop] {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

img[data-andean-crop].crop-ready {
    opacity: 1;
}

@media (max-width: 960px) {
    .hero-side-scene {
        width: 50%;
        opacity: 0.28;
    }
}