/* Design System - Valor Sostenible */
:root {
    /* Color Palette */
    --primary-color: #420BA4;     /* Deep Purple */
    --secondary-color: #697FE1;   /* Periwinkle */
    --accent-color: #ABF640;      /* Lime Green */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    
    /* Typography */
    --font-title: 'Kanit', sans-serif; /* 800 */
    --font-body: 'Kanit', sans-serif;  /* 400 */
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-extrabold {
    font-family: var(--font-title);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.grid-2, .grid-3, .grid-4, .grid-5 {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { gap: 40px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding: 10px 0; /* Thinner padding */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: brightness(0);
    transform: scale(1.8);
    transform-origin: left center;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400; /* Cleaner and clearer weight */
    text-transform: none;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 10px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.nav-muted {
    display: none; /* Removed as they are now in dropdown */
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-block;
    border-radius: 12px; /* Less rounded than a pill but more than before */
    font-family: var(--font-title);
    font-size: 0.9rem;
}

.btn-green {
    background: rgba(171, 246, 64, 0.85); /* Semi-opaque Green */
    color: var(--primary-color);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.btn-green:hover {
    background: rgba(171, 246, 64, 1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(171, 246, 64, 0.4);
}

.btn-outline {
    background: rgba(105, 127, 225, 0.3); /* Semi-opaque Purple/Blue */
    color: white;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(105, 127, 225, 0.5);
    transform: translateY(-3px);
}

.btn-purple {
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(66, 11, 164, 0.2);
}

.btn-purple:hover {
    background: #350884;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 11, 164, 0.4);
}

/* Section Common */
section {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-purple { background-color: var(--primary-color); color: white; }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/sl2.jpg');
    background-size: cover;
    background-position: center;
    animation: kenBurns 40s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes kenBurns {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.25) translate(-2% , -2%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 100px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
}

.hero-content {
    max-width: 700px;
    margin-left: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 400;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 35px;
    line-height: 1.05;
    text-transform: none;
    letter-spacing: -1.5px;
    backface-visibility: hidden; /* Force layer isolation */
    transform: translateZ(0);
}

.hero-desc-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-divider-horizontal {
    width: 25px;
    height: 2px;
    background: var(--accent-color);
    flex-shrink: 0;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 380px;
    margin: 0;
    line-height: 1.5;
    backface-visibility: hidden; /* Force layer isolation */
    transform: translateZ(0);
}

.hero-btns {
    display: flex;
    gap: 25px;
}

/* Dashboard Wide & Slim */
.hero-dashboard-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.dashboard-card {
    padding: 30px;
    border-radius: 35px;
    width: 520px; /* Even more compact */
    min-width: 520px;
    background: rgba(255, 255, 255, 0.12); /* Increased from 0.05 */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* Reduced */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 800;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* More compact gap */
    margin-bottom: 25px;
}

.metric-card {
    padding: 15px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    width: 135px; /* Compact width for new dashboard size */
    flex-shrink: 0;
}

.metric-head {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-head .icon {
    width: 18px;
    height: 18px;
    color: inherit;
    stroke-width: 2.5px;
    flex-shrink: 0;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    display: block;
    min-height: 2.5rem; /* Stabilize vertical space */
    min-width: 120px;
}

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px; /* Reduced vertical */
    border-radius: 20px;
    background: rgba(171, 246, 64, 0.03);
    border: 1px solid rgba(171, 246, 64, 0.06);
}

.footer-score { 
    font-size: 3.2rem; 
    font-weight: 800; 
    line-height: 1;
    font-variant-numeric: tabular-nums; /* Prevents text from jumping */
    display: inline-block;
    min-width: 100px;
    text-align: right;
}

/* Floating Extras */
.name-tag {
    position: absolute;
    bottom: 10%;
    right: 5%;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Intro Section */
.intro-section {
    padding: 0 0 100px 0;
    background: white;
    text-align: center;
}

.ribbon-bar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 80px;
    overflow: hidden;
}

.ribbon-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.ribbon-content span {
    font-size: 0.85rem;
    font-weight: 400; /* Thin/Regular weight for minimalist look */
    color: #888; /* Minimalist Gray */
    text-transform: none;
}

.ribbon-content .dot {
    color: #ddd;
}

.intro-container {
    max-width: 900px;
}

.intro-titles h2 {
    font-size: 4rem;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
}

.intro-subtext {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-top: 50px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Impacto Section */
.impacto-section {
    padding: 120px 0;
    background: white;
}

.impacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.impacto-image-wrap {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
}

.animated-impact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: dreamyBlur 10s infinite alternate ease-in-out;
    backface-visibility: hidden;
    will-change: transform, filter;
}

@keyframes dreamyBlur {
    0% { transform: scale(1) filter(blur(0px) brightness(1)); }
    50% { transform: scale(1.3) filter(blur(10px) brightness(1.2)); } /* More aggressive and noticeable */
    100% { transform: scale(1) filter(blur(0px) brightness(1)); }
}

.impacto-label {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 20px;
}

.impacto-info h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.impacto-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.impacto-metric-card {
    background: white;
    border: 1px solid #f0f0f0;
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.impacto-metric-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.metric-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color); /* Purple */
    margin-bottom: 10px;
}

.impacto-metric-card p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    font-weight: 400;
}

.impacto-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
}

/* Section Details & Construction */
.section-inicio {
    padding: 120px 0;
    background: #f4f4f4;
}

.section-construccion {
    padding: 120px 0;
    background: #3f00a5; /* Deep Purple */
}

.section-info {
    max-width: 500px;
}

.section-info h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
}

.section-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.text-white { color: white !important; }
.text-white-muted { color: rgba(255,255,255,0.7) !important; }

/* Badges */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 30px;
}

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

.badge-transp {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

.badge-num {
    color: var(--accent-color);
}

/* Collage Layout 1 (Inicio) */
.collage-layout-1 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}

.collage-main {
    grid-row: span 2;
}

.collage-layout-1 div, .collage-layout-2 div {
    overflow: hidden; /* Ensure animation stays inside the box */
    border-radius: 20px;
}

.collage-layout-1 img, .collage-layout-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease-in-out;
    animation: kenBurnsInside 12s infinite alternate ease-in-out;
    cursor: pointer;
}

.collage-layout-1 div:nth-child(2) img { animation-delay: -3s; }
.collage-layout-1 div:nth-child(3) img { animation-delay: -6s; }

.collage-layout-1 img:hover, .collage-layout-2 img:hover {
    transform: scale(1.1); /* Zoom in more on hover */
    filter: brightness(1.1);
}

@keyframes kenBurnsInside {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Specific Buttons for these sections */
.section-inicio .btn-purple {
    background: #3f00a5;
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-block;
}

.section-construccion .btn-green {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-block;
}

/* Collage Layout 2 (Construccion) */
.collage-layout-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 220px;
    gap: 20px;
}

.collage-top {
    grid-column: span 2;
}

.collage-layout-2 div:nth-child(2) img { animation-delay: -2s; }
.collage-layout-2 div:nth-child(3) img { animation-delay: -4s; }

/* Solutions Section */
.section-soluciones {
    padding: 120px 0;
    background: white;
}

.soluciones-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.btn-link {
    font-weight: 800;
    color: var(--primary-color);
    border: 1px solid #eee;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-link:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solucion-card {
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenBurnsInside 15s infinite alternate ease-in-out;
    transition: transform 1s ease;
    z-index: -1; /* Keep behind overlay */
}

.soluciones-grid div:nth-child(2) .card-bg { animation-delay: -4s; }
.soluciones-grid div:nth-child(3) .card-bg { animation-delay: -8s; }

.solucion-card:hover .card-bg {
    transform: scale(1.15); /* Stronger zoom on hover */
}

/* Typing Effect (Multi-line Support) */
.typing-text {
    overflow: hidden;
    width: 0;
    white-space: nowrap; 
    border-right: 4px solid var(--accent-color);
}

.typing-text.start-typing {
    animation: typing 4s steps(40, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

.solucion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 70%, transparent 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    z-index: 2;
}

.card-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    margin-bottom: 20px;
}

.solucion-card h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: none;
}

.solucion-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.card-arrow {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.solucion-card:hover .solucion-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.solucion-card:hover .card-arrow {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: rotate(45deg);
}

/* Pillars Section (Purple) */
.pilares-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    position: relative;
    transition: var(--transition-smooth);
}

.pillar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.pillar-num {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-color); /* Green text */
}

.pillar-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.2); /* Muted white */
    stroke-width: 1.2px;
}

.pillar-card h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-transform: none;
    font-weight: 800;
}

.pillar-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.pillar-tags {
    display: flex;
    gap: 12px;
}

.pillar-tags span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 400;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pillar-card:hover .pillar-icon {
    color: var(--accent-color);
}

/* Platform Section (Light) */
.section-plataforma {
    padding: 140px 0;
    background: #ffffff;
}

.section-plataforma .container {
    max-width: 1600px;
}

.plataforma-list {
    list-style: none;
    margin-bottom: 40px;
}

.plataforma-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--primary-color);
}

.list-num {
    background: var(--accent-color);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.section-plataforma .grid-2 {
    grid-template-columns: 0.6fr 1.4fr;
    gap: 80px;
}

/* Browser Mockup */
.plataforma-mockup {
    padding-left: 0;
}

.browser-window {
    background: white;
    border-radius: 24px;
    box-shadow: 0 50px 120px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(0);
    animation: floatWindow 5s infinite ease-in-out;
}

.browser-window:hover {
    transform: translateY(-10px);
    box-shadow: 0 70px 150px rgba(66, 11, 164, 0.15);
}

@keyframes floatWindow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.browser-header {
    background: #f9f9f9;
    padding: 15px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-content {
    padding: 0;
    line-height: 0;
}

.platform-img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
}

.browser-window:hover .platform-img {
    filter: brightness(1.05);
}

.dashboard-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header-mini h4 {
    margin: 0;
    text-transform: none;
    font-size: 1.2rem;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    background: #f8fff0;
    padding: 5px 12px;
    border-radius: 50px;
}

.progress-bar-full {
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 10px;
}

.mini-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mini-metric {
    background: #f9f9fb;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
}

.mini-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.mini-value {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.mini-sub {
    font-size: 0.65rem;
    color: #999;
}
/* Banco de Proyectos */
.section-proyectos {
    padding: 120px 0;
    background: #ffffff;
}

.filter-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.filter-btn {
    border: 1px solid #f0f0f0;
    background: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #444;
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 800;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.project-img-box {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img-box .card-bg {
    position: absolute;
    inset: 0;
    z-index: 1; /* Bring to front within the box */
    animation: kenBurnsInside 25s infinite alternate ease-in-out;
}

.project-content {
    padding: 35px 30px;
}

.project-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #000;
    text-transform: none;
    font-weight: 800;
    line-height: 1.3;
}

.project-card p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f8f8f8;
    padding-top: 20px;
}

.location {
    font-size: 0.7rem;
    color: #aaa;
}

.status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
}

/* Status colors as per design */
.st-green { background: #f0fff4; color: #38a169; } /* En curso */
.st-purple { background: #f5f3ff; color: #7c3aed; } /* En curso variant */
.st-purple-solid { background: #f5f3ff; color: #7c3aed; } /* Completado */
.st-yellow { background: #fffaf0; color: #d69e2e; } /* Planeación */

.badge-green { background: #f0fff4; color: #38a169; }
.badge-yellow { background: #fffaf0; color: #d69e2e; }
.badge-orange { background: #fff5f5; color: #e53e3e; }
.badge-purple { background: #f5f3ff; color: #7c3aed; }
.badge-blue { background: #ebf8ff; color: #3182ce; }
.badge-blue-dark { background: #e6fffa; color: #319795; }
.accordion { display: flex; flex-direction: column; gap: 15px; }
.accordion-item { border: 1px solid #eee; border-radius: 10px; padding: 20px; }
.accordion-header { font-weight: 800; text-transform: uppercase; cursor: pointer; display: flex; justify-content: space-between; }

/* Results */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.result-item { text-align: center; }

/* Footer */
footer { background: #0A0A0A; color: white; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 25px; }
.footer-title { color: var(--accent-color); margin-bottom: 25px; font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { opacity: 0.7; font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; color: var(--accent-color); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.8rem; opacity: 0.5; }

/* Responsive */

/* Medium-large desktops: 1200px–1400px */
@media (max-width: 1400px) {
    .container { padding: 0 30px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.82rem; }
    .btn { padding: 10px 20px; font-size: 0.82rem; }
}

/* Laptops and low-res monitors: 1025px–1280px */
@media (max-width: 1280px) {
    .container { padding: 0 24px; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.78rem; }
    .btn { padding: 9px 16px; font-size: 0.78rem; }
    .hero-content h1 { font-size: 3.4rem; }
    .hero-grid { gap: 60px; }
    .hero-content { margin-left: 0; }
    section { padding: 80px 0; }
}

@media (max-width: 1024px) {
    .hero-grid, .impacto-grid, .grid-2, .cumplimiento-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 3.5rem; }
    .grid-3, .results-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-3, .results-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #420BA4; /* Solid base */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.8s ease;
}

.loader-bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(80px); /* Massive blur for the blobs */
    z-index: 1;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.6;
}

.blob-1 {
    background: var(--secondary-color);
    top: -100px;
    left: -100px;
    animation: blobMove 15s infinite alternate ease-in-out;
}

/* FAQ V2 */
.accordion-v2 {
    display: flex;
    flex-direction: column;
}

.accordion-item-v2 {
    background: #f8f9ff; /* Very light purple/blue tint */
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(108, 92, 231, 0.05);
}

.accordion-item-v2 h3 {
    font-size: 1.15rem;
    color: #4834d4; /* Brand purple */
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: none;
}

.accordion-item-v2 p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-img-container-v2 {
    height: 520px;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.05);
}

.faq-img-container-v2 .card-bg {
    animation: kenBurnsInside 30s infinite alternate ease-in-out;
}

/* Results Section V2 */
.results-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.results-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 80px;
    text-align: left;
}

.result-card-v2 {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.result-card-v2:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
}

.metric-val-v2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.metric-label-v2 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* CTA Final Section */
.section-cta-final {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.cta-bg-container {
    position: absolute;
    inset: 0;
}

.cta-overlay-v2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cta-title-v2 {
    font-size: 4.5rem;
    color: white;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
}

.cta-sub-v2 {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    line-height: 1.6;
}

.cta-btns-v2 {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Map Section */
.section-map {
    width: 100%;
    height: 400px;
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.map-container {
    width: 100%;
    height: 100%;
}

.section-map iframe {
    width: 100%;
    height: 100%;
    /* Advanced brand filter: Dark Purple/Midnight theme */
    filter: grayscale(1) invert(0.92) brightness(0.7) hue-rotate(245deg) saturate(1.2);
    transition: filter 0.5s ease;
}

.section-map iframe:hover {
    filter: grayscale(0.5) invert(0.85) brightness(0.8) hue-rotate(245deg) saturate(1.5);
}

/* Footer V2 */
.main-footer {
    background: #0A0A0A;
    color: white;
    padding: 100px 0 40px;
}

.footer-grid-v2 {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo-v2 {
    height: 125px;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: white;
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom-v2 {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: white;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .footer-grid-v2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid-v2 { grid-template-columns: 1fr; }
    .footer-bottom-v2 { flex-direction: column; gap: 20px; text-align: center; }
}

/* Loading Screen & Animations Restore */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #420BA4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.8s ease;
}

.loader-bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(80px);
    z-index: 1;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.6;
}

.blob-1 {
    background: var(--secondary-color);
    top: -100px;
    left: -100px;
    animation: blobMove 15s infinite alternate ease-in-out;
}

.blob-2 {
    background: var(--accent-color);
    bottom: -100px;
    right: -100px;
    animation: blobMove 20s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    background: #ff385c;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobMove 12s infinite alternate ease-in-out;
}

@keyframes blobMove {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 100px) scale(1.2); }
}

.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    width: 400px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: jumpIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes jumpIn {
    0% { opacity: 0; transform: translateY(100px) scale(0.5); }
    60% { opacity: 1; transform: translateY(-30px) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.loaded #loading-screen {
    transform: scale(1.2);
    opacity: 0;
    pointer-events: none;
}

/* Internal Pages Hero */
.hero-inner {
    height: 70dvh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-inner .hero-title {
    font-size: 5rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-inner .hero-title {
        font-size: 3.5rem;
    }
}

/* WhatsApp Floating Button */
.wpp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wpp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(18, 140, 126, 0.4);
}

@media (max-width: 768px) {
    .wpp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* FAQ Section Refined */
.section-faq {
    padding: 140px 0;
    background: #ffffff;
}

.faq-grid-v3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.faq-content-v3 h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.1;
}

.faq-content-v3 .faq-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 500px;
}

.accordion-v3 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item-v3 {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.accordion-item-v3:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.accordion-item-v3 h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-item-v3 h3::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.accordion-item-v3.active h3::after {
    transform: rotate(45deg);
}

.accordion-item-v3 p {
    margin-top: 15px;
    color: #666;
    line-height: 1.6;
    display: none;
}

.accordion-item-v3.active p {
    display: block;
}

.faq-box-v3 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.faq-box-v3 .card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.faq-box-v3:hover .card-bg {
    transform: scale(1.05);
}

.faq-box-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.faq-box-overlay h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.faq-box-overlay p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .faq-grid-v3 { grid-template-columns: 1fr; gap: 60px; }
    .faq-box-v3 { height: 450px; }
}

/* Dashboard Utility Colors */
.color-green { color: var(--accent-color) !important; }
.color-blue { color: var(--secondary-color) !important; }
.bg-green { background-color: var(--accent-color) !important; }
.bg-blue { background-color: var(--secondary-color) !important; }

.glass-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Hero Dashboard Progress Bars */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Dashboard Pulse */
.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff4b4b;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 0 rgba(255, 75, 75, 0.4);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 75, 75, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); }
}

.window-controls {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
}

/* Publicos V4 - Accesos por públicos */
.section-publicos-v4 {
    padding: 120px 0;
    background: #ffffff;
}

.publicos-head-v4 {
    margin-bottom: 70px;
    max-width: 800px;
}

.publicos-head-v4 h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: none;
}

.publicos-head-v4 p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.publicos-grid-v4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    height: 600px;
}

.publico-card-v4 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.publico-card-v4 .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.publico-card-v4:hover .card-bg {
    transform: scale(1.1);
}

.publico-overlay-v4 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(66, 11, 164, 0.9) 0%, rgba(66, 11, 164, 0.2) 50%, transparent 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: all 0.4s ease;
}

.publico-card-v4:hover .publico-overlay-v4 {
    background: linear-gradient(to top, rgba(171, 246, 64, 0.9) 0%, rgba(66, 11, 164, 0.4) 100%);
}

.publico-card-v4:hover .publico-overlay-v4 * {
    color: var(--primary-color);
}

.publico-badge-v4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.publico-card-v4 h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: none;
}

.publico-card-v4 p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    margin: 0;
}

.publico-card-v4:hover p {
    opacity: 1;
    transform: translateY(0);
}

.publico-arrow-v4 {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.publico-card-v4:hover .publico-arrow-v4 {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--accent-color);
    transform: rotate(45deg);
}

@media (max-width: 992px) {
    .publicos-grid-v4 {
        grid-template-columns: 1fr;
        height: auto;
    }
    .publico-card-v4 {
        height: 400px;
    }
}

/* Publicos V5 - Minimalist & Balanced */
.section-publicos-v5 {
    padding: 120px 0;
    background: #fdfdfd;
}

.publicos-head-v5 {
    margin-bottom: 80px;
    text-align: center;
}

.publicos-head-v5 h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: none;
}

.publicos-head-v5 p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.publicos-grid-v5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.publico-card-v5 {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.publico-card-v5:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.publico-img-wrap-v5 {
    height: 250px; /* Not vertical, landscape-ish */
    overflow: hidden;
    position: relative;
}

.publico-img-wrap-v5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.publico-card-v5:hover .publico-img-wrap-v5 img {
    transform: scale(1.05);
}

.publico-content-v5 {
    padding: 35px;
}

.publico-badge-v5 {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(105, 127, 225, 0.1);
    padding: 6px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.publico-content-v5 h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: none;
}

.publico-content-v5 p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 25px;
}

.publico-link-v5 {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.publico-link-v5 span {
    transition: transform 0.3s ease;
}

.publico-card-v5:hover .publico-link-v5 span {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .publicos-grid-v5 { grid-template-columns: 1fr; }
}

/* Publicos V6 - Vertical Cards + Balanced Text */
.section-publicos-v6 {
    padding: 120px 0;
    background: #f4f5f7; /* Clear gray background for separation */
}

.publicos-grid-v6 {
    display: grid;
    grid-template-columns: 1fr 2.5fr; /* Split layout for better balance */
    gap: 80px;
    align-items: flex-start;
}

.publicos-head-v6 {
    position: sticky;
    top: 150px;
}

.publicos-head-v6 h2 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.1;
    text-transform: none;
}

.publicos-head-v6 p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.cards-container-v6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.publico-card-v6 {
    position: relative;
    height: 550px;
    border-radius: 35px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

.publico-card-v6 .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
}

.publico-card-v6:hover .card-bg {
    transform: scale(1.1);
}

.publico-overlay-v6 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: all 0.4s ease;
}

.publico-card-v6:hover .publico-overlay-v6 {
    background: linear-gradient(to top, var(--primary-color) 0%, rgba(66, 11, 164, 0.4) 100%);
}

.publico-badge-v6 {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.publico-card-v6 h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: none;
}

.publico-card-v6 p {
    font-size: 0.9rem;
    opacity: 0;
    height: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.publico-card-v6:hover p {
    opacity: 1;
    height: auto;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .publicos-grid-v6 { grid-template-columns: 1fr; }
    .publicos-head-v6 { position: static; margin-bottom: 50px; }
}

@media (max-width: 768px) {
    .cards-container-v6 { grid-template-columns: 1fr; }
    .publico-card-v6 { height: 450px; }
}

/* Proyectos V2 - Portfolio Editorial */
.section-proyectos-v2 {
    padding: 140px 0;
    background: #ffffff;
}

.proyectos-header-v2 {
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.proyectos-header-v2 .head-text {
    max-width: 600px;
}

.proyectos-header-v2 h2 {
    font-size: 3.8rem;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 20px;
}

.proyectos-header-v2 p {
    font-size: 1.1rem;
    color: #666;
}

.proyectos-grid-v2 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.project-item-v2 {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: #f8f8f8;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-item-v2.large { grid-column: span 8; height: 600px; }
.project-item-v2.medium { grid-column: span 4; height: 600px; }
.project-item-v2.small { grid-column: span 6; height: 450px; }

.project-item-v2 .item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease;
}

.project-item-v2:hover .item-bg {
    transform: scale(1.1);
}

.project-item-v2 .item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: all 0.4s ease;
}

.project-item-v2:hover .item-overlay {
    background: linear-gradient(to top, var(--primary-color) 0%, rgba(66, 11, 164, 0.4) 100%);
}

.item-cat {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.project-item-v2 h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: none;
}

.project-item-v2 p {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 450px;
    margin-bottom: 30px;
}

.item-meta {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 25px;
}

.meta-box span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 5px;
}

.meta-box strong {
    font-size: 1.1rem;
    font-weight: 800;
}

@media (max-width: 992px) {
    .project-item-v2.large, .project-item-v2.medium, .project-item-v2.small {
        grid-column: span 12;
        height: 500px;
    }
    .proyectos-header-v2 { flex-direction: column; align-items: flex-start; }
}

/* Project Slider - Modern & Clean */
.section-proyectos-slider {
    padding: 100px 0;
    background: #f6f6f6;
    overflow: hidden;
}

.slider-container {
    margin-top: 60px;
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollSlider 60s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.project-slide-card {
    width: 450px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.project-slide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.slide-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    align-self: flex-start;
}

.project-slide-card h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: none;
}

.project-slide-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.slide-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-meta {
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
}

.slide-meta strong {
    color: var(--primary-color);
}

/* --- MOBILE NAVIGATION --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
@media (max-width: 992px) {
    .hamburger { display: block; }

    /* Reduce logo scale so it doesn't overlap the hamburger */
    .nav-logo {
        transform: scale(1);
        height: 38px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 40px;
        transition: right 0.4s cubic-bezier(0.86, 0, 0.07, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        width: 100%;
    }

    /* Handle dropdown in mobile */
    .nav-dropdown {
        width: 100%;
    }
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0 0 0 20px;
        background: none;
    }
    .dropdown-content a {
        font-size: 1.2rem !important;
        padding: 10px 0;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Fix for large titles */
    h1 { font-size: 2.8rem !important; line-height: 1.1 !important; }
    h2 { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h3 { font-size: 1.6rem !important; }
    
    .impacto-label { font-size: 0.8rem !important; }
    
    /* Specific section adjustments */
    .section-info h2 { font-size: 2.5rem !important; }
    .hero-content { margin-left: 0 !important; text-align: left; width: 100% !important; }
    .hero-grid { grid-template-columns: 1fr !important; }
    .hero-visual, .hero-dashboard-wrap { display: none !important; }
    
    /* Dashboard Responsive fixes if visible */
    .dashboard-card {
        width: 100% !important;
        min-width: 100% !important;
        padding: 20px !important;
        border-radius: 20px !important;
    }
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .metric-card {
        width: 100% !important;
        padding: 20px !important;
    }
    .dashboard-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px !important;
    }
    .footer-score { text-align: center; }
    
    .hero-btns { align-items: flex-start; flex-direction: column; gap: 15px; width: 100%; }
    .btn { width: 100% !important; text-align: center; margin-left: 0 !important; margin-right: 0 !important; }
    
    .container { padding: 0 20px !important; }
    
    /* Hide the standalone header button on mobile */
    header nav > .btn { display: none !important; }
    
    /* Ensure the button inside nav-links is visible if added there */
    .nav-links .btn { display: inline-block !important; margin-top: 20px; }
    
    /* Global Grid fixes for Mobile */
    .grid-2, .grid-3, .grid-4, 
    .cards-container-v6, 
    .soluciones-grid, 
    .proposito-grid, 
    .impacto-grid,
    .publico-grid-v2,
    .form-grid,
    .collage-layout-1,
    .collage-layout-2,
    .footer-grid-v2,
    .results-header-v2,
    .pillars-grid,
    .pilares-head { 
        grid-template-columns: 1fr !important; 
        gap: 30px !important; 
    }

    .results-grid-v2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    .result-card-v2 {
        width: 100%;
        padding: 40px 20px !important;
    }

    .results-header-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px !important;
    }

    /* Fix Proyectos Slider overflow */
    .project-slide-card {
        width: 280px !important;
        padding: 25px !important;
    }
    
    .loader-logo {
        width: 80% !important;
        max-width: 300px;
    }

    .nav-logo {
        transform: scale(1) !important;
        height: 35px !important;
    }

    .pilares-head {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 20px;
    }

    .pilares-head div {
        text-align: left !important;
        width: 100%;
    }

    .pillar-card {
        padding: 40px 25px !important;
    }
    
    /* History Impact fix */
    .section-history-impact h2 { font-size: 2.5rem !important; }
    
    /* Section paddings */
    section { padding: 80px 0 !important; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }

    .hero-badge { font-size: 0.7rem !important; padding: 6px 12px !important; }

    /* Special fix for very large background numbers if any */
    .section-history-impact h2 { font-size: 2.5rem !important; }
}

/* Régimen Tributario Especial button */
.btn-rte {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-color);
    color: #000000 !important;
    font-family: var(--font-title);
    font-weight: 400 !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-rte:hover {
    background: #c8f550;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 246, 64, 0.4);
}

@media (max-width: 600px) {
    .footer-legal { flex-wrap: wrap; gap: 10px !important; }
    .btn-rte { width: 100%; text-align: center; }

    .results-header-v2 div {
        max-width: 100% !important;
    }

    .ribbon-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
    }

    .footer-brand p {
        max-width: 100% !important;
    }
    
    /* Ensure no section can overflow */
    section {
        overflow: hidden;
    }
    
    /* Fix for ribbon bar */
    .ribbon-bar {
        height: auto !important;
        padding: 20px 10px !important;
    }
}
