/* =============================================================
   REGENERGY – Main Stylesheet
   Palette: Monarch Butterfly & Oyamel Forest (WCAG 2.2 AA)
   -------------------------------------------------------------
   --monarch-orange: #E67E22
   --forest-fir:     #2C553C
   --sky-blue:       #5D9B9B
   --warm-white:     #FDF4E3
   --night-forest:   #1F2A2A
   --deep-teal:      #005F5F
   --light-blue-bg:  #e9f0f5
   ============================================================= */

/* -------------------------------
   BASE & RESET
-------------------------------- */
body {
    margin: 0;
    padding-top: 100px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #E67E22;
    color: #FDF4E3;
    padding: 8px 12px;
    z-index: 1001;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 10px;
}

/* -------------------------------
   NAVBAR (fixed)
-------------------------------- */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #005f5f;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.navbar li {
    display: inline-block;
}

.navbar li a {
    display: block;
    color: #FDF4E3;
    text-align: center;
    padding: 20px 50px;
    text-decoration: none;
    font-size: 28px;
    font-weight: 400;
    transition: background 0.3s, color 0.3s;
}

.navbar li a:hover,
.navbar li a:focus-visible {
    background-color: #111;
    color: #FDF4E3;
    outline: 2px solid #E67E22;
    outline-offset: -2px;
}

.navbar li a.active {
    color: #E67E22;
}

/* Service links – inherit list styling */
.styled-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 1px solid transparent;
}

.styled-list a:hover,
.styled-list a:focus-visible {
    color: #E67E22;
    border-bottom-color: #E67E22;
    outline: none;
}

.section-container.section-two .styled-list a:hover,
.section-container.section-three .styled-list a:hover,
.section-container.section-four .styled-list a:hover {
    color: #2C553C;
    border-bottom-color: #2C553C;
}

/* Navbar logo, language switcher */
.navbar ul img {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 5px 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.language-switcher {
    margin-left: auto;
}

.language-select {
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}
.language-select:focus-visible {
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}

/* -------------------------------
   BANNER (hero)
-------------------------------- */
.banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    position: relative;
    background-color: #f0f0f0;
    height: 815px;
}
.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.3s ease;
}
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
@media (max-width: 768px) {
    .banner { height: 300px; }
}

/* -------------------------------
   MAIN CONTENT WRAPPER
-------------------------------- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px;
}

/* -------------------------------
   TYPOGRAPHY
-------------------------------- */
.main-content p,
.main-content li {
    text-align: justify;
}
.main-content p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18pt;
}
.main-content h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36pt;
    margin-bottom: 0.5em;
}
.main-content h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28pt;
    margin-bottom: 0.5em;
}
.main-content h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20pt;
    margin-bottom: 0.5em;
}
.main-content ul,
.main-content ol {
    list-style-position: inside;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15pt;
}

/* -------------------------------
   FULL‑WIDTH SECTION CONTAINERS
-------------------------------- */
.section-container {
    width: 100%;
    padding: 80px 0;
    background-color: #ffffff;
}

.section-container.section-zero {
    background-color: #5D9B9B;
    color: #ffffff;
}

.section-container.section-one {
    background-color: #5D9B9B;
    color: #1F2A2A;
}
.section-container.section-two {
    background-color: #ffffff;
}
.section-container.section-three {
    background-color: #FDF4E3;
}
.section-container.section-four {
    background-color: #ffffff;
    color: black;
}
.section-container.section-five {
    background-color: #5D9B9B;
    color: #FDF4E3;
}
.section-container.section-six {
    background-color: #FDF4E3;
    overflow: hidden;
    padding-bottom: 10px;
}
.section-container.section-seven {
    background-color: #e9f0f5;
    overflow: hidden;
    padding-bottom: 20px;
}
.section-container.section-eight {
    background-color: #FDF4E3;
    color: black;
}
.section-container.section-nine {
    background-color: #5D9B9B;
    color: black;
}

.section-container.section-nine ol li {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 22px;
}

/* -------------------------------
   TWO‑COLUMN LAYOUT (unified)
-------------------------------- */
.two-column-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.logo-column {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-column {
    flex: 1 1 50%;
    min-width: 0; /* critical: prevents flex overflow onto text */
}

/* -------------------------------
   IMAGE SIZING (fills column)
-------------------------------- */
.logo-image,
.lca-diagram,
.lcas-diagrams,
.circular-diagram,
.imm-diagram,
.survey-diagram,
.logical-framework-diagram,
.courses-diagram,
.energy-diagram,
.china-diagram,
.ai-diagram,
.evaluation-diagram,
.section-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.privacy-diagram {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    padding: 50px 10px 150px 10px;
}

/* -------------------------------
   TEAM GRID
-------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.team-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid #5D9B9B;
    transition: border-color 0.3s ease;
}
.team-card:nth-child(3) .team-photo,
.team-card:nth-child(4) .team-photo,
.team-card:nth-child(5) .team-photo {
    object-fit: contain;
    background-color: #ffffff;
}
.team-card:hover .team-photo {
    border-color: #E67E22;
}
.team-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22pt;
    margin-bottom: 5px;
    color: #2C553C;
}
.team-role {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14pt;
    font-weight: bold;
    color: #E67E22;
    margin-bottom: 15px;
}
.team-bio {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
    text-align: justify;
    color: #333333;
}
.team-email {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: #5D9B9B;
    margin-top: 10px;
    word-break: break-all;
}
@media (max-width: 768px) {
    .team-grid { gap: 25px; }
    .team-photo { width: 140px; height: 140px; }
    .team-card h3 { font-size: 20pt; }
    .team-role { font-size: 12pt; }
    .team-bio { font-size: 10pt; }
}

/* -------------------------------
   SCROLLING BANNER (ALLIANCES)
-------------------------------- */
.scrolling-banner {
    overflow: hidden;
    width: 100%;
    background-color: #FDF4E3;
    padding: 20px 0;
    margin-top: 10px;
}
.scrolling-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-right-to-left 25s linear infinite;
}
.scrolling-content a {
    display: inline-block;
    margin: 0 100px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    color: #2C553C;
    transition: transform 0.2s, color 0.2s;
}
.scrolling-content a:hover,
.scrolling-content a:focus-visible {
    transform: scale(1.15);
    color: #E67E22;
    text-decoration: underline;
    outline: none;
}
@keyframes scroll-right-to-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
@media (max-width: 768px) {
    .scrolling-content a {
        font-size: 18px;
        margin: 0 20px;
    }
}

/* -------------------------------
   PERSPECTIVES SCROLLING BANNER
-------------------------------- */
.perspectives-scrolling-banner {
    overflow: hidden;
    width: 100%;
    background-color: #e9f0f5;
    padding: 20px 0;
    margin-top: 10px;
}
.perspectives-scrolling-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-perspectives 40s linear infinite;
}
.perspective-item {
    flex-shrink: 0;
    width: 240px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.3s;
    position: relative;
    z-index: 1;
}
.perspective-item:hover,
.perspective-item:focus-within {
    transform: scale(1.2);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
.perspective-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.perspective-item:focus-within img {
    outline: 2px solid #E67E22;
}
@keyframes scroll-perspectives {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .perspective-item { width: 150px; }
    .perspectives-scrolling-content { gap: 20px; animation-duration: 30s; }
    .perspective-item:hover { transform: scale(1.4); }
}

.scrolling-controls {
    text-align: center;
    margin-bottom: 15px;
}
.scrolling-controls button {
    background-color: #2C553C;
    color: #FDF4E3;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}
.scrolling-controls button:hover,
.scrolling-controls button:focus-visible {
    background-color: #005F5F;
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}

/* -------------------------------
   FULL-SCREEN IMAGE MODAL
-------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    cursor: pointer;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}
.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    font-size: 50px;
    color: #f1f1f1;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}
.modal-close:hover,
.modal-close:focus-visible {
    color: #E67E22;
    outline: 2px solid #E67E22;
}
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 40px;
    font-weight: bold;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    z-index: 2001;
    width: auto;
}
.modal-prev { left: 20px; }
.modal-next { right: 20px; }
.modal-prev:hover,
.modal-next:hover,
.modal-prev:focus-visible,
.modal-next:focus-visible {
    background-color: rgba(230, 126, 34, 0.9);
    outline: 2px solid #E67E22;
}
.perspective-img { cursor: pointer; }

/* -------------------------------
   SINGLE-COLUMN
-------------------------------- */
.single-column { text-align: center; }

/* -------------------------------
   LIST STYLES (butterfly bullets)
-------------------------------- */
.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.styled-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.styled-list li::before {
    content: '🦋';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 18px;
}
.section-container.section-two .styled-list li,
.section-container.section-three .styled-list li,
.section-container.section-four .styled-list li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* -------------------------------
   FOOTER
-------------------------------- */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #005f5f;
    color: #FDF4E3;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14pt;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.social-links a {
    color: #FDF4E3;
    font-size: 28px;
    transition: transform 0.2s, color 0.2s;
    display: inline-block;
}
.social-links a:hover,
.social-links a:focus-visible {
    transform: scale(1.15);
    color: #E67E22;
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}

/* -------------------------------
   RESPONSIVE STACKING
-------------------------------- */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .logo-column {
        flex: 0 0 80%;
        max-width: 80%;
        margin-bottom: 20px;
    }
    .content-column {
        flex: 1 1 100%;
    }
    .styled-list li {
        text-align: left;
    }
    .main-content {
        padding: 60px 20px;
    }
    .navbar li a {
        padding: 15px 20px;
        font-size: 20px;
    }
    .navbar ul img {
        max-width: 250px;
    }
    .banner {
        height: 200px;
    }
    .modal-prev,
    .modal-next {
        font-size: 30px;
        padding: 8px 12px;
    }
}

/* -------------------------------
   CONTACT FORM
-------------------------------- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1F2A2A;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #E67E22;
    border-color: transparent;
}
.submit-btn {
    background-color: #2C553C;
    color: #FDF4E3;
    padding: 12px 28px;
    font-size: 1.2rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover,
.submit-btn:focus {
    background-color: #E67E22;
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}
.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

/* -------------------------------
   PERSPECTIVES LIST – ARTICLE CARDS
-------------------------------- */
.section-container.section-perspectives {
    background-color: #E67E22;
    color: #1F2A2A;
}
.section-container.section-perspectives h2 {
    color: #1F2A2A;
}
.perspectives-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}
.perspective-article {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}
.perspective-article:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.perspective-article h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2C553C;
}
.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #5D9B9B;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}
.category {
    background-color: #FDF4E3;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
}
.article-summary p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #1F2A2A;
}
.article-full {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}
.article-full p {
    font-size: 1rem;
    line-height: 1.5;
    color: #1F2A2A;
}
.read-more-btn {
    background: none;
    border: none;
    color: #E67E22;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
}
.read-more-btn:hover,
.read-more-btn:focus-visible {
    color: #2C553C;
    text-decoration: underline;
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}
@media (max-width: 768px) {
    .perspective-article { padding: 1.2rem; }
    .perspective-article h3 { font-size: 1.3rem; }
    .article-meta { flex-wrap: wrap; }
}

/* -------------------------------
   LEGAL PAGE OVERRIDES
-------------------------------- */
.legal-page .single-column {
    text-align: left;
}
.legal-page .single-column h2,
.legal-page .single-column h3,
.legal-page .single-column h4 {
    text-align: left;
}
.legal-page .single-column p,
.legal-page .single-column li {
    text-align: left;
    line-height: 1.6;
}
.legal-page .single-column ul,
.legal-page .single-column ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.legal-page .single-column p {
    text-align: justify;
}
@media (max-width: 768px) {
    .legal-page .single-column p {
        text-align: left;
    }
}

/* -------------------------------
   LCA PAGE – BENEFITS GRID
-------------------------------- */
.lca-intro-image {
    text-align: center;
    margin-top: 30px;
}
.lca-intro-image img {
    max-width: 100%;
    height: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.benefit-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.benefit-card i {
    font-size: 48px;
    color: #E67E22;
    margin-bottom: 20px;
}
.benefit-card h3 {
    color: #2C553C;
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

/* -------------------------------
   LCA PAGE – SUMMARY TABLE
-------------------------------- */
.lca-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.lca-summary-table thead {
    background-color: #2C553C;
    color: #FDF4E3;
}
.lca-summary-table th,
.lca-summary-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.lca-summary-table tbody tr:last-child td {
    border-bottom: none;
}
.lca-summary-table tbody tr:hover {
    background-color: #FDF4E3;
}

/* -------------------------------
   LCA PAGE – RESOURCES LIST
-------------------------------- */
.resources-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.resources-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.resources-list li:last-child {
    border-bottom: none;
}
.resources-list a {
    color: #2C553C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.resources-list a:hover,
.resources-list a:focus-visible {
    color: #E67E22;
    text-decoration: underline;
    outline: none;
}

/* -------------------------------
   LCA PAGE – RESPONSIVE
-------------------------------- */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .lca-summary-table {
        font-size: 0.9rem;
    }
    .lca-summary-table th,
    .lca-summary-table td {
        padding: 12px 14px;
    }
}

/* ============================================================
   DASHBOARD LCA INTERACTIVO
   ============================================================ */

/* Contenedor principal del dashboard (padding reducido para más ancho) */
.dashboard-main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Espaciador invisible que reserva el espacio del sticky */
.sticky-spacer {
  height: 0;
}

/* ============================================================
   CONTROLES STICKY (flotantes dentro del dashboard)
   ============================================================ */

.dashboard-controls-sticky {
  position: sticky;
  top: 100px;  /* Debajo de la navbar fija */
  z-index: 50;
  background-color: rgba(253, 244, 227, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.dashboard-controls-sticky.is-stuck {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 22px;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
  min-width: 200px;
}

.control-group label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13pt;
  font-weight: bold;
  color: #2C553C;
}

.control-group select {
  padding: 10px 14px;
  font-size: 13pt;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.control-group select:hover {
  border-color: #5D9B9B;
}

.control-group select:focus-visible {
  outline: 2px solid #E67E22;
  outline-offset: 2px;
  border-color: #E67E22;
}

/* ============================================================
   FILA 1: DOS GRÁFICOS LADO A LADO
   ============================================================ */

.dashboard-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-card-large {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 350px;   /* 400px × 0.8 */
}

.chart-card-large h3 {
  color: #2C553C;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 14px;
  text-align: center;
}

.chart-container-large {
  position: relative;
  flex: 1;
  min-height: 379px;   /* 336px × 0.8 */
  width: 100%;
}

.chart-container-large canvas {
  max-height: 95% !important;
  width: 95% !important;
}

/* ============================================================
   FILA 2: SANKEY (ancho 80% × 0.8 = 64%)
   ============================================================ */

.dashboard-row-full {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.chart-card-full {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  width: 64%;           /* 80% × 0.8 */
  max-width: 64%;
}

.chart-card-full h3 {
  color: #2C553C;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.sankey-container-full {
  width: 100%;
  min-height: 504px;    /* 630px × 0.8 */
  height: 504px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 924px) {
  .dashboard-row-two {
    grid-template-columns: 1fr;
  }
  .chart-card-large {
    min-height: 272px;
  }
  .chart-container-large {
    min-height: 232px;
  }
  .chart-card-full {
    width: 76%;          /* 95% × 0.8 */
    max-width: 76%;
  }
}

@media (max-width: 768px) {
  .dashboard-main-content {
    padding: 40px 20px;
  }
  .dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .control-group {
    min-width: 100%;
  }
  .dashboard-controls-sticky {
    top: 80px;
  }
  .sankey-container-full {
    min-height: 360px;   /* 450px × 0.8 */
    height: 360px;
  }
  .dashboard-row-two {
    gap: 16px;
  }
  .chart-card-full {
    width: 100%;
    max-width: 100%;
    padding: 18px 16px;
  }
}

/* ============================================================
   BANDERAS DE FIABILIDAD
   ============================================================ */

.method-flag-wrapper {
  margin: 30px 0 20px 0;
}

.reliability-flag {
  padding: 15px 20px;
  border-radius: 12px;
  margin: 15px 0;
  border-left: 5px solid;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reliability-high {
  background-color: #E8F8F0;
  border-left-color: #27AE60;
}

.reliability-medium {
  background-color: #FEF5E7;
  border-left-color: #F39C12;
}

.reliability-low {
  background-color: #FDEDEC;
  border-left-color: #E74C3C;
}

.flag-icon { font-size: 1.5rem; margin-right: 8px; }
.flag-label { font-weight: bold; font-size: 1rem; }
.flag-message { font-size: 0.95rem; color: #333; margin: 0; line-height: 1.5; }
.flag-recommendation {
  font-size: 0.95rem;
  color: #2C553C;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0;
}

/* ============================================================
   TABLA Y NOTAS
   ============================================================ */

.comparison-table-wrapper {
  margin-top: 40px;
}

.comparison-note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 15px;
}

.dashboard-note {
  background-color: #FDF4E3;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.dashboard-note h4 {
  color: #2C553C;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.dashboard-note p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin: 10px 0;
  text-align: left;
}

/* ============================================================
   SECTION BRIDGE — conector entre secciones temáticas
   ============================================================ */

.section-bridge {
  margin-top: 45px;
  padding: 28px 32px;
  background-color: rgba(253, 244, 227, 0.35);
  border-left: 5px solid #E67E22;
  border-radius: 12px;
  position: relative;
}

.section-bridge::before {
  content: "→";
  position: absolute;
  top: -14px;
  left: 24px;
  background-color: #E67E22;
  color: #FDF4E3;
  font-size: 18px;
  font-weight: bold;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.section-bridge p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1F2A2A;
  margin: 0;
  text-align: left;
}

.section-bridge p em {
  color: #2C553C;
  font-style: normal;
  font-weight: 600;
}

.section-bridge p strong {
  color: #E67E22;
}

@media (max-width: 768px) {
  .section-bridge {
    padding: 22px 20px;
    margin-top: 30px;
  }
  .section-bridge p {
    font-size: 0.95rem;
  }
}

/* ============================================================
   LCC DASHBOARD
   ============================================================ */

.lcc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0 35px 0;
}

.lcc-kpi-card {
  background-color: #FDF4E3;
  border-left: 5px solid #E67E22;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lcc-kpi-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5D9B9B;
}

.lcc-kpi-value {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: #2C553C;
  line-height: 1.3;
  word-break: break-word;
}

@media (max-width: 768px) {
  .lcc-kpis {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .lcc-kpi-value {
    font-size: 1.15rem;
  }
}


/* =============================================================
   IMMERSIVE IMPACT EVALUATION DASHBOARD (Modal)
   ============================================================= */

.dashboard-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #2C553C 0%, #1a3324 100%);
  color: #FDF4E3;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 85, 60, 0.3);
  margin: 2rem auto;
}

.dashboard-trigger-btn:hover,
.dashboard-trigger-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 85, 60, 0.4);
  background: linear-gradient(135deg, #36684a 0%, #2C553C 100%);
  outline: 2px solid #E67E22;
  outline-offset: 2px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31, 42, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-immersive {
  background: #FDF4E3;
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-backdrop.active .modal-content-immersive {
  transform: scale(1);
}

/* Top Bar: Company & User */
.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #e9f0f5;
  border-bottom: 1px solid #ccd7df;
  font-size: 0.9rem;
  color: #1F2A2A;
}

.company-brand {
  font-weight: 700;
  color: #2C553C;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-brand .brand-sub {
  font-weight: 300;
  opacity: 0.8;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  background: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid #ccd7df;
}

/* Modal Header */
.modal-header-immersive {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #2C553C;
  color: #FDF4E3;
}

.modal-header-immersive h2 {
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FDF4E3;
}

.modal-close-btn {
  background: rgba(253, 244, 227, 0.1);
  border: 1px solid rgba(253, 244, 227, 0.2);
  color: #FDF4E3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.modal-close-btn:hover,
.modal-close-btn:focus-visible {
  background: rgba(230, 126, 34, 0.8);
  outline: 2px solid #E67E22;
  outline-offset: 2px;
}

/* Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 2rem;
  background: #ffffff;
  border-bottom: 1px solid #ccd7df;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #5D9B9B;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 0.95rem;
  font-family: Arial, Helvetica, sans-serif;
}

.tab-btn:hover {
  color: #2C553C;
  background: #FDF4E3;
}

.tab-btn.active {
  color: #2C553C;
  border-bottom-color: #E67E22;
}

/* Dashboard Body */
.dashboard-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: #f8f9fa;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard KPI Grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-kpi-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 5px solid #2C553C;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dash-kpi-card .kpi-label {
  font-size: 0.85rem;
  color: #5D9B9B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.dash-kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1F2A2A;
  margin: 0.5rem 0;
}

.dash-kpi-card .kpi-desc {
  font-size: 0.9rem;
  color: #1F2A2A;
}

.dash-kpi-card.accent-green { border-left-color: #27AE60; }
.dash-kpi-card.accent-blue { border-left-color: #2980B9; }
.dash-kpi-card.accent-purple { border-left-color: #8E44AD; }
.dash-kpi-card.accent-orange { border-left-color: #E67E22; }

/* Dashboard Charts Grid */
.dash-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-chart-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dash-chart-card h4 {
  margin-top: 0;
  color: #2C553C;
  border-bottom: 2px solid #FDF4E3;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.dashboard-note-immersive {
  margin-top: 2rem;
  background: #e9f0f5;
  border-left: 4px solid #5D9B9B;
  padding: 1.5rem;
  border-radius: 8px;
}

.dashboard-note-immersive h4 {
  margin-top: 0;
  color: #2C553C;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-note-immersive p {
  margin-bottom: 0;
  color: #1F2A2A;
  font-size: 0.95rem;
  text-align: left;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .dash-charts-grid {
    grid-template-columns: 1fr;
  }
  .modal-content-immersive {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .modal-top-bar,
  .dashboard-tabs,
  .modal-header-immersive,
  .dashboard-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .dashboard-tabs {
    padding: 0 0.5rem;
  }
  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}


    /* Specific styles for the Circular Economy page enhancements */
    .ce-hero {
      background: linear-gradient(135deg, #2C553C 0%, #1a3324 100%);
      color: #FDF4E3;
      padding: 80px 20px;
      text-align: center;
    }
    .ce-hero h1 {
      font-size: 2.5rem;
      margin-bottom: 20px;
      color: #FDF4E3;
    }
    .ce-hero p {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto;
      color: #FDF4E3;
      text-align: justify;
    }
    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }
    .pillar-card {
      background: #ffffff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      border-top: 4px solid #2C553C;
      transition: transform 0.3s ease;
    }
    .pillar-card:hover {
      transform: translateY(-5px);
    }
    .pillar-card i {
      font-size: 2rem;
      color: #2C553C;
      margin-bottom: 15px;
    }
    .case-studies-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }
    .case-card {
      background: #f9f9f9;
      padding: 25px;
      border-radius: 12px;
      border-left: 4px solid #E67E22;
    }
    .strategy-highlight {
      background-color: #e9f0f5;
      padding: 40px;
      border-radius: 16px;
      margin-top: 40px;
    }
    .strategy-highlight h3 {
      color: #2C553C;
      margin-bottom: 20px;
    }
    .strategy-list {
      list-style: none;
      padding: 0;
    }
    .strategy-list li {
      margin-bottom: 15px;
      padding-left: 30px;
      position: relative;
      text-align: justify;
    }
    .strategy-list li::before {
      content: '\f00c';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      left: 0;
      color: #27AE60;
    }
    .cta-section {
      text-align: center;
      padding: 60px 20px;
      background-color: #2C553C;
      color: #FDF4E3;
      border-radius: 12px;
      margin-top: 50px;
    }
    .cta-btn {
      display: inline-block;
      margin-top: 20px;
      padding: 15px 30px;
      background-color: #E67E22;
      color: #ffffff;
      text-decoration: none;
      border-radius: 30px;
      font-weight: bold;
      transition: background 0.3s;
    }
    .cta-btn:hover {
      background-color: #d35400;
    }

/* ============================================================
   CIRCULAR DASHBOARD — v5 ENHANCEMENTS
   ============================================================ */

/* 6-KPI grid: allow wrapping on smaller screens */
.lcc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 25px 0 35px 0;
}

.lcc-kpi-card {
  background-color: #FDF4E3;
  border-left: 5px solid #E67E22;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lcc-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.lcc-kpi-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #5D9B9B;
}

.lcc-kpi-value {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #2C553C;
  line-height: 1.3;
  word-break: break-word;
}

/* Economic chart row — hidden by default, shown when focus = economic */
#ce-economic-row {
  display: none;
}
#ce-economic-row.active {
  display: grid;
}

/* Ensure LCA chart has enough height for vertical labels */
.chart-container-large {
  min-height: 420px;
}

/* Transition bridge — already defined, but reinforce */
.section-bridge {
  margin-top: 45px;
  padding: 28px 32px;
  background-color: rgba(253,244,227,.35);
  border-left: 5px solid #E67E22;
  border-radius: 12px;
  position: relative;
}
.section-bridge::before {
  content: "→";
  position: absolute;
  top: -14px;
  left: 24px;
  background-color: #E67E22;
  color: #FDF4E3;
  font-size: 18px;
  font-weight: bold;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.section-bridge p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1F2A2A;
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .lcc-kpis {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lcc-kpi-value {
    font-size: 1.1rem;
  }
  .chart-container-large {
    min-height: 320px;
  }
  .section-bridge {
    padding: 22px 20px;
    margin-top: 30px;
  }
  .section-bridge p {
    font-size: .95rem;
  }
}

/* ============================================================
   NARRATIVA DEL ESCENARIO
   ============================================================ */
.scenario-narrative {
  background: linear-gradient(135deg, #FDF4E3 0%, #f5ebd6 100%);
  border-left: 5px solid #E67E22;
  border-radius: 12px;
  padding: 22px 28px;
  margin: 20px 0 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  animation: fadeInNarrative .4s ease;
}
.scenario-narrative h3 {
  color: #2C553C;
  font-size: 1.15rem;
  margin: 0 0 10px 0;
  font-family: Arial, Helvetica, sans-serif;
}
.scenario-narrative p {
  font-size: 1rem;
  line-height: 1.65;
  color: #1F2A2A;
  margin: 0;
  text-align: justify;
}
@keyframes fadeInNarrative {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .scenario-narrative { padding: 16px 18px; }
  .scenario-narrative p { font-size: .92rem; }
}

/* ============================================================
   GVC GLOBE DASHBOARD — REGENERGY palette
   Palette: #E67E22 (monarch) · #2C553C (forest) · #5D9B9B (sky)
            #FDF4E3 (warm white) · #1F2A2A (night forest)
            #005F5F (deep teal) · #e9f0f5 (light blue)
   ============================================================ */

.gvc-dashboard {
  background: linear-gradient(135deg, #5D9B9B 0%, #2C6B6B 100%);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 30px 0;
  color: #FDF4E3;
  box-shadow: 0 8px 24px rgba(31,42,42,.35);
  border: 1px solid rgba(93,155,155,.25);
}

.gvc-dashboard h3 {
  color: #FDF4E3;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.gvc-dashboard h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #E67E22;
  margin-top: 10px;
  border-radius: 2px;
}

.gvc-dashboard-intro {
  font-size: .95rem;
  line-height: 1.6;
  color: #e9f0f5;
  margin-bottom: 20px;
  text-align: left;
}

/* --- Controls --- */
.gvc-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.gvc-controls label {
  font-size: .9rem;
  font-weight: 600;
  color: #5D9B9B;
}
.gvc-controls select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #5D9B9B;
  background: #1F2A2A;
  color: #FDF4E3;
  font-size: 1rem;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.gvc-controls select:hover { border-color: #E67E22; }
.gvc-controls select:focus-visible {
  outline: 2px solid #E67E22;
  outline-offset: 2px;
}
.gvc-year-badge {
  background: #E67E22;
  color: #FDF4E3;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: .9rem;
  box-shadow: 0 2px 6px rgba(230,126,34,.4);
}

/* --- Layout --- */
.gvc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.gvc-globe-wrapper {
  position: relative;
  background: #5D9B9B;                /* deep teal = ocean */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(93,155,155,.35);
}

#gvc-globe {
  width: 100%;
  min-height: 460px;
}

.gvc-legend {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .75rem;
  color: #FDF4E3;
  background: rgba(31,42,42,.55);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.gvc-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.gvc-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gvc-dot-high { background: #E67E22; }
.gvc-dot-med  { background: #FDF4E3; }
.gvc-dot-low  { background: #5D9B9B; }
.gvc-dot-hub  { background: #E67E22; border: 2px solid #FDF4E3; }

/* --- Governance panel --- */
.gvc-governance-panel {
  background: rgba(44,85,60,.65);     /* forest fir @ 65% */
  border-radius: 12px;
  padding: 20px 18px;
  border: 1px solid rgba(93,155,155,.3);
  backdrop-filter: blur(6px);
}
.gvc-governance-panel h4 {
  color: #5D9B9B;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 16px 0 8px 0;
  font-family: Arial, Helvetica, sans-serif;
}
.gvc-governance-panel h4:first-child { margin-top: 0; }

.gvc-gov-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: .95rem;
  text-transform: capitalize;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.gvc-gov-captive     { background: #5D9B9B; color: #FDF4E3; }  /* sky blue */
.gvc-gov-modular     { background: #2980B9; color: #FDF4E3; }  /* info blue */
.gvc-gov-relational  { background: #27AE60; color: #FDF4E3; }  /* success green */
.gvc-gov-hierarchy   { background: #E67E22; color: #FDF4E3; }  /* monarch orange */
.gvc-gov-market      { background: #7F8C8D; color: #FDF4E3; }

.gvc-gov-note {
  font-size: .85rem;
  line-height: 1.5;
  color: #e9f0f5;
  margin: 10px 0 0 0;
  text-align: left;
}

.gvc-dominant-country {
  font-size: 1.1rem;
  font-weight: bold;
  color: #E67E22;
}

/* --- Governance spectrum --- */
.gvc-spectrum { position: relative; margin-top: 10px; }
.gvc-spectrum-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    #7F8C8D 0%, #5D9B9B 25%, #27AE60 50%, #2C553C 75%, #E67E22 100%);
}
.gvc-spectrum-marker {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FDF4E3;
  border: 3px solid #E67E22;
  transform: translateX(-50%);
  transition: left .4s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.gvc-spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: .6rem;
  color: #e9f0f5;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
  opacity: .75;
}

/* --- Hub share list --- */
.gvc-hub-list { list-style: none; padding: 0; margin: 0; }
.gvc-hub-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(93,155,155,.2);
  font-size: .85rem;
}
.gvc-hub-list li:last-child { border-bottom: none; }
.gvc-hub-name { color: #e9f0f5; }
.gvc-hub-pct  { color: #E67E22; font-weight: bold; }

/* --- Narrative --- */
.gvc-narrative {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(0,95,95,.35);       /* deep teal @ 35% */
  border-left: 4px solid #E67E22;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.6;
  color: #FDF4E3;
}
.gvc-narrative em  { color: #E67E22; font-style: normal; font-weight: 600; }
.gvc-narrative strong { color: #5D9B9B; }

/* --- Tooltip --- */
.gvc-tooltip {
  position: absolute;
  background: rgba(31,42,42,.96);      /* night forest */
  color: #FDF4E3;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1.4;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid #5D9B9B;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  transition: opacity .15s ease;
  font-family: Arial, Helvetica, sans-serif;
}
.gvc-tooltip strong { color: #E67E22; }

/* --- SVG globe (matches palette) --- */
#gvc-globe svg { display: block; width: 100%; height: auto; }
#gvc-globe .land-layer path { fill: #2C553C; stroke: white ; stroke-width: .4; }
#gvc-globe circle[fill="#0a1a2a"],
#gvc-globe circle[fill="#1F2A2A"] { fill: #5D9B9B !important; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .gvc-layout { grid-template-columns: 1fr; }
  .gvc-governance-panel { order: 2; }
  #gvc-globe { min-height: 360px; }
}
@media (max-width: 600px) {
  .gvc-dashboard { padding: 18px 14px; }
  .gvc-spectrum-labels { font-size: .5rem; }
  .gvc-legend { font-size: .65rem; gap: 8px; }
}

.form-status-success {
  color: #2C553C;
  background: #E8F4EC;
  border-left: 4px solid #2C553C;
  padding: .75rem 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}
.form-status-error {
  color: #A93226;
  background: #FDEDEC;
  border-left: 4px solid #E74C3C;
  padding: .75rem 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

/* ============================================================
   PERSPECTIVES HERO — imagen de fondo a la izquierda,
   tarjeta de texto a la derecha, sobre la imagen
   ============================================================ */
.section-perspectives-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  background-color: #2C6B6B; /* fallback si la imagen no carga */
  background-image: url('../images/perspectivesV1.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.section-perspectivas-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  background-color: #2C6B6B; /* fallback si la imagen no carga */
  background-image: url('../images/perspectivas.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}


/* Gradiente: transparente a la izquierda → sólido a la derecha,
   para asegurar la legibilidad del texto sobre la imagen */
.section-perspectives-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(44, 107, 107, 0)    0%,
    rgba(44, 107, 107, 0.15) 35%,
    rgba(44, 107, 107, 0.70) 58%,
    rgba(31, 42, 42, 0.90)   85%,
    rgba(31, 42, 42, 0.94)   100%
  );
  pointer-events: none;
  z-index: 1;
}


/* ============================================================
   PERSPECTIVES HERO — imagen de fondo a la izquierda,
   tarjeta de texto a la derecha sobre la imagen
   ============================================================ */
.section-perspectives-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  background-color: #2C6B6B; /* fallback */
  background-image: url('../images/perspectivesV1.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

/* Gradiente: transparente a la izquierda → sólido a la derecha */
.section-perspectives-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(44, 107, 107, 0)    0%,
    rgba(44, 107, 107, 0.15) 35%,
    rgba(44, 107, 107, 0.70) 58%,
    rgba(31, 42, 42, 0.90)   85%,
    rgba(31, 42, 42, 0.94)   100%
  );
  pointer-events: none;
  z-index: 1;
}

.section-perspectives-hero .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: flex-end;
}

.section-perspectives-hero .hero-card {
  max-width: 580px;
  background: rgba(253, 244, 227, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 6px solid #E67E22;
  border-radius: 16px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.section-perspectives-hero .hero-card h2 {
  color: #2C553C;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  letter-spacing: 2px;
  margin: 0 0 1.2rem 0;
}

.section-perspectives-hero .hero-card p {
  color: #1F2A2A;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1rem 0;
  text-align: left;
}

.section-perspectives-hero .hero-card p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .section-perspectives-hero {
    min-height: 620px;
    background-position: 30% center;
  }
  .section-perspectives-hero .hero-inner {
    justify-content: center;
    padding: 0 24px;
  }
  .section-perspectives-hero .hero-card {
    max-width: 100%;
    padding: 32px 28px;
  }
  .section-perspectives-hero .hero-card h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .section-perspectives-hero {
    min-height: 520px;
    background-position: 40% center;
  }
  .section-perspectives-hero .hero-card {
    background: rgba(253, 244, 227, 0.97);
    padding: 26px 22px;
  }
  .section-perspectives-hero .hero-card p {
    font-size: 0.98rem;
  }
}

/* Texto ancho completo alineado a la izquierda en secciones sin imagen */
.section-container.section-one .single-column,
.section-container.section-three .single-column,
.section-container.section-four .single-column {
  text-align: left;
}
.section-container.section-one .single-column p,
.section-container.section-three .single-column p,
.section-container.section-four .single-column p {
  text-align: justify;
}

/* ============================================================
   DASHBOARD — Estilos globales
   ============================================================ */

.dashboard-main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

.sticky-spacer { height: 0; }

/* --- Tabs del dashboard --- */
.dashboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.dashboard-tab-btn {
  padding: 8px 16px;
  border: 1px solid #5D9B9B;
  background: transparent;
  color: #2C553C;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
}

.dashboard-tab-btn.active,
.dashboard-tab-btn:hover {
  background: #2C553C;
  color: #FDF4E3;
  border-color: #2C553C;
}

/* --- Footer de fuente de datos (pequeño, al pie del gráfico) --- */
.chart-source-footer {
  font-size: 0.2rem;
  font-weight: 300;
  color: #5D9B9B;
  text-align: right;
  margin-top: 10px;
  margin-bottom: 0;
  font-style: italic;
  letter-spacing: 0.2px;
  line-height: 1.0;
}

/* --- Loading --- */
.dash-loading {
  text-align: center;
  padding: 40px;
  color: #5D9B9B;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

/* --- Grid de gráficos --- */
.dashboard-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-card-large {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.chart-card-large h3 {
  color: #2C553C;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 14px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.chart-container-large {
  position: relative;
  flex: 1;
  min-height: 300px;
  width: 100%;
}

.chart-container-large canvas {
  max-height: 95% !important;
  width: 95% !important;
}

/* --- KPIs --- */
.lcc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px 0 35px 0;
}

.lcc-kpi-card {
  background-color: #FDF4E3;
  border-left: 5px solid #E67E22;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lcc-kpi-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5D9B9B;
}

.lcc-kpi-value {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: #2C553C;
  line-height: 1.3;
  word-break: break-word;
}

/* --- Nota metodológica --- */
.dashboard-note {
  background-color: #FDF4E3;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
}

.dashboard-note h4 {
  color: #2C553C;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
}

.dashboard-note p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin: 10px 0;
  text-align: left;
}

/* --- Responsive --- */
@media (max-width: 924px) {
  .dashboard-row-two {
    grid-template-columns: 1fr;
  }
  .chart-card-large {
    min-height: 272px;
  }
  .chart-container-large {
    min-height: 232px;
  }
}

@media (max-width: 768px) {
  .dashboard-main-content {
    padding: 40px 20px;
  }
  .dashboard-tabs {
    gap: 6px;
  }
  .dashboard-tab-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .lcc-kpis {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .lcc-kpi-value {
    font-size: 1.15rem;
  }
}

/* --- Utilidad: intro centrado en secciones --- */
.centered-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #5D9B9B;
}

@media (max-width: 768px) {
  .centered-intro {
    margin-bottom: 30px;
    font-size: 1rem;
  }
}

  /* Ajuste del navbar en español: menos padding horizontal para textos largos */
  .navbar li { white-space: nowrap; }
  .navbar a.nav-link {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }

/* -------------------------------
   BENEFITS GRID (2x2 Layout específico)
-------------------------------- */
.benefits-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .benefits-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   DISEÑO RESPONSIVO - MÓVILES (NAVBAR)
   ========================================= */

/* Ocultar el botón hamburguesa en pantallas de computadora */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #FDF4E3; 
  cursor: pointer;
  margin-left: auto;
  padding-right: 25px;
}

/* Reglas exclusivas para celulares y tablets pequeñas */
@media (max-width: 1000px) {
  .menu-toggle {
    display: block; 
    margin-top: 5px;
  }

  /* Reducir el logo para que la barra cerrada sea muy delgada */
  .navbar ul img {
    max-width: 140px !important;
    margin: 10px 0 10px 20px;
  }

  /* Los enlaces ocupan toda la línea pero están ocultos por defecto */
  .navbar li.nav-item {
    display: none; 
    width: 100%;
    /* Agrega una línea sutil entre las opciones para que parezca app */
    border-top: 1px solid rgba(253, 244, 227, 0.1); 
  }

  /* Se muestran SOLO cuando se toca el botón de hamburguesa */
  .navbar ul.active li.nav-item {
    display: block;
  }

  /* AJUSTE CRÍTICO: Reducir el tamaño de letra para que no llene la pantalla */
  .navbar li a {
    padding: 15px 25px;
    font-size: 18px; /* Letra normal para leer en móvil */
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Ajustar el selector de idiomas para que encaje elegante al final */
  .language-switcher {
    padding: 15px 25px 25px 25px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .language-select {
    width: 100%;
    font-size: 16px;
    padding: 10px;
  }
}