@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/Satoshi-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    background-color: #fffcf9;
    color: black;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}
header img {
    height: 75px;
    margin-left: 20px;
    margin-top: 20px;
    transition: opacity 0.5s ease, transform 0.3s ease;
}
header img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
nav a {
    position: relative;
    color: #1F271B;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
    padding: 10px 0;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #ff4500;
    transition: width 0.3s ease, right 0.3s ease;
}
nav a:hover::after {
    width: 100%;
    right: 0;
}
nav a.button {
    background-color: #ff4500;
    color: #fffcf9;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}
nav a.button:hover {
    background: linear-gradient(to bottom, #FF4500, #6BDBD0);
}
nav a.button::after {
    display: none;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 3px;
}
.lang-btn {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1F271B !important;
    padding: 4px 10px !important;
    border-radius: 11px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.04em;
}
.lang-btn::after { display: none !important; }
.lang-btn:hover { background: rgba(255,69,0,0.12); color: #ff4500 !important; }
.lang-btn.lang-active { background: #fff; color: #ff4500 !important; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
/* Specific rule to prevent underline for the 'Consulta Virtual' button */
nav a.no-underline::after {
    width: 0 !important; /* Ensure no underline is shown initially */
}
nav a.no-underline:hover::after {
    width: 0 !important; /* Prevent the underline from appearing on hover */
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.footer {
    position: relative;
    width: 100%;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.footer-white-section {
    background: #ffffff;
    height: 33vh;
    min-height: 150px;
    width: 100%;
}

.footer-red-section {
    background: #FF4500;
    color: #ffffff;
    padding: 50px 100px;
    position: relative;
    width: 100%;
    border-top-left-radius: 120px;
    border-top-right-radius: 120px;
    box-sizing: border-box;
    flex: 1;
    min-height: 300px;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer .footer-title {
    font-size: 50px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

.footer img,
.footer svg {
    height: 30px;
    width: 30px;
    display: block;
}

.footer .social-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
}

.typewriting-textbox {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    color: #fffcf9;
    font-size: 20px;
    margin-top: 20px;
}
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}
.separator {
    display: none;
}
.text-section {
    width: 35%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    height: auto;
}
.typing-text {
    font-size: 50px;
    font-weight: bold;
    color: #ff4500;
    white-space: normal;
    overflow: visible;
    font-family: 'Space Grotesk', sans-serif;
    width: 100%;
}
.first-text-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    background-color: #fffcf9;
    padding-left: 60px;
    position: relative;
    overflow: hidden;
}

.first-text-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.first-text-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 252, 249, 0.1), rgba(255, 252, 249, 0.1));
    z-index: 1;
    display: none; /* Remove the overlay */
}

.typing-text-first {
    font-size: 60px;
    font-weight: bold;
    color: white;
    overflow: hidden;
    max-width: 75%;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
}

.typing-text-first span {
    font-size: 60px;
    font-weight: bold;
    color: white;
}

.typing-text-first .text-rotator {
    display: inline-block;
    font-size: 60px;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    animation: gradient 3s infinite;
    background: linear-gradient(90deg, #FF4500, #6BDBD0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text-first::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    margin-left: 5px;
    background-color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.image-section {
    width: 65%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-section img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    opacity: .8;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Add transition for transform */
    position: relative;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.image-section img.loaded {
    opacity: 1;
}
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    font-weight: bold;
    color: #ff4500;
    white-space: nowrap;
}
.highlight {
    background-color: #E9D985;
    color: black;
}
.ppa-section {
    background-color: #FFF;
    padding: 50px 20px;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 20px auto;
    width: 90%;
    text-align: left;
    position: relative;
    z-index: 10;
    min-height: 250px; /* Set a minimum height to accommodate the text */
}
.ppa-section h2 {
    font-size: 60px;
    font-weight: bold;
    color: #ff4500;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 0 20px 0;
    overflow: hidden;
    white-space: normal;
    max-width: 40%;
    padding: 0;
    min-height: 250px; /* Ensure space for the text to be typed */
}
.ppa-images-container {
    display: flex;
    overflow: hidden;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}
.ppa-images-wrapper {
    display: flex;
    width: calc(200% + 40px); /* Update width to include gap */
    animation: scroll 20s linear infinite; /* Adjusted duration for smooth scrolling */
}
.ppa-images-wrapper img {
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition for opacity */
    margin-right: 20px;
}
.ppa-images-wrapper img:hover {
    transform: scale(1.05);
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.rounded-section {
    background-color: #FFFCF9;
    color: #ff4500;
    padding: 50px 20px;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 20px auto;
    width: 80%;
    text-align: left;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ff4500;
    text-align: center;
    line-height: 1.4;
    font-family: 'Space Grotesk', sans-serif;
}
.progress-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.progress-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}
.progress-label {
    margin-right: 20px;
    white-space: nowrap;
    font-weight: bold;
    color: #ff4500;
    font-size: 30px;
}
.progress-bar-wrapper {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 40px;
    height: 80px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #ff4500, #6bdbd0);
    border-radius: 40px;
    transition: width 2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 30px;
}
.progress-text {
    color: #fffcf9;
    font-weight: bold;
    position: absolute;
    width: 100%;
    text-align: center;
}
.text-box {
    position: absolute;
    top: 20px;
    right: 100px;
    color: #1f271b;
    padding: 80px;
    border-radius: 200px;
    font-size: 30px;
    width: 400px;
    font-family: 'Space Grotesk', sans-serif;
    opacity: 0;
    transition: opacity 1s ease;
}
.text-rotator {
    display: inline-block;
    font-size: 50px;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    animation: gradient 3s infinite;
    background: linear-gradient(90deg, #FF4500, #6BDBD0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.scrollytelling-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
    margin: 20px auto;
    width: 90%;
    text-align: left;
    background-color: #FFFCF9;
}
.scrollytelling-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 1s ease-out, opacity 1s ease-out;
}
.scrollytelling-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #1f271b;
    margin-bottom: 20px;
    transition: transform 1s ease-out, opacity 1s ease-out;
}
.scrollytelling-active img, .scrollytelling-active p {
    transform: translateY(0);
    opacity: 1;
}
.scrollytelling img, .scrollytelling p {
    transform: translateY(20px);
    opacity: 0;
}
.video-section {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin: 50px 0;
}
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.video-title {
    font-size: 48px;
    font-weight: bold;
    color: #fffcf9;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.video-description {
    font-size: 24px;
    color: #fffcf9;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.price-comparison {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
    padding: 40px 20px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    padding: 20px 0;
    margin-top: 30px;
}

.bars-container {
    display: flex;
    justify-content: space-around;
    height: 100%;
    position: relative;
    padding-top: 20px;
}

.year-group {
    display: flex;
    width: 30%;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    height: 100%;
}

.bar {
    width: 45%;
    background-color: #ddd;
    border-radius: 5px 5px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 0;
    transition: height 1.5s ease;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s ease, height 1.5s ease;
}

.bar.kinetica {
    background: #ff4500;
}

.bar.animated {
    transform: scaleX(1);
}

.bar-value {
    position: absolute;
    top: -25px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.x-axis-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.x-axis-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.chart-legend {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
    gap: 40px;
    padding-left: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border-radius: 3px;
}

.legend-color.red {
    background: #7a7a7a;
}

.legend-color.ppa {
    background: #ff4500;
}

.legend-color.llave {
    background: #6BDBD0;
}

.legend-text {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

.solutions-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFCF9;
}

/* Unified Section Titles - Minimalist Style */
.solutions-title,
.projects-title,
.about-title,
.map-heading,
.calc-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    position: relative;
    letter-spacing: -0.3px;
}

.solutions-title {
    display: inline-block;
    margin-bottom: 16px;
}

.solutions-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    color: #666;
    margin: 0 auto 50px;
    max-width: 600px;
    padding: 0 20px;
}

.solution-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.solution-box.ppa .solution-tag {
    color: #FF4500;
    background: rgba(255, 69, 0, 0.08);
}

.solution-box.epc .solution-tag {
    color: #3dbdb5;
    background: rgba(107, 219, 208, 0.15);
}

.solutions-helper {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 10px auto 0;
    padding: 0 20px;
}

.solutions-helper a {
    color: #ff4500;
    font-weight: 600;
    text-decoration: none;
}

.solutions-helper a:hover {
    text-decoration: underline;
}

/* Minimalist underline - simple thin orange accent */
.solutions-title::after,
.projects-title::after,
.about-title::after,
.map-heading::after,
.calc-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ff4500;
    border-radius: 1px;
}

.solution-boxes {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.solution-box {
    width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.solution-illustration {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-illustration.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.solution-illustration.revealed img {
    animation: solutionImageReveal 1s ease-out forwards;
}

@keyframes solutionImageReveal {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.solution-illustration img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
}

.solution-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.solution-box.ppa .solution-icon-wrap {
    background: rgba(255, 69, 0, 0.08);
}

.solution-box.epc .solution-icon-wrap {
    background: rgba(107, 219, 208, 0.15);
}

.feature-check {
    min-width: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.solution-box.ppa .feature-check {
    background: rgba(255, 69, 0, 0.10);
    border: 1.5px solid rgba(255, 69, 0, 0.35);
}

.solution-box.epc .feature-check {
    background: rgba(107, 219, 208, 0.12);
    border: 1.5px solid rgba(107, 219, 208, 0.45);
}

.feature-check::after {
    content: '';
    width: 4px;
    height: 7px;
    border-right: 1.5px solid transparent;
    border-bottom: 1.5px solid transparent;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}

.solution-box.ppa .feature-check::after {
    border-right-color: #FF4500;
    border-bottom-color: #FF4500;
}

.solution-box.epc .feature-check::after {
    border-right-color: #6BDBD0;
    border-bottom-color: #6BDBD0;
}

.solution-cta {
    display: inline-block;
    margin-top: auto;
    padding-top: 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    font-family: 'Satoshi', sans-serif;
    transition: opacity 0.2s ease;
}

.solution-cta:hover {
    opacity: 0.65;
}

.solution-box.ppa .solution-cta {
    color: #FF4500;
}

.solution-box.epc .solution-cta {
    color: #6BDBD0;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.solution-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    color: #ff4500;
    font-family: 'Space Grotesk', sans-serif;
}

.solution-box.epc .solution-title {
    color: #3dbdb5;
}

.solution-description {
    font-size: 17px;
    line-height: 1.65;
    text-align: left;
    color: #666;
    margin-bottom: 28px;
    font-family: 'Satoshi', sans-serif;
}

.solution-features {
    margin-top: 0;
    padding-top: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    text-align: left;
}

.feature-icon {
    min-width: 30px;
    height: 30px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.solution-box.ppa .feature-icon {
    color: #FF4500;
}

.solution-box.epc .feature-icon {
    color: #6BDBD0;
}

.feature-text {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    font-family: 'Satoshi', sans-serif;
}

.projects-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFCF9;
}

.projects-title {
    display: inline-block;
    margin-bottom: 60px;
}

.gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Project card overlay style (screenshot style) */
.gallery-slide.project-card {
    position: relative;
}

.gallery-slide.project-card img {
    display: block;
}

.project-card-info {
    position: absolute;
    bottom: 24px;
    right: 24px;
    max-width: 320px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    border: 1px solid transparent;
    border-top-color: #ff4500;
    border-right-color: #ff4500;
    border-bottom-color: #6BDBD0;
    border-left-color: #6BDBD0;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    text-align: left;
    z-index: 2;
}

.project-card-info .project-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff4500;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 6px;
}

.project-card-info .project-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    font-family: 'Satoshi', sans-serif;
    margin-bottom: 10px;
}

.project-card-info .project-specs {
    margin-bottom: 8px;
}

.project-card-info .project-specs div,
.project-card-info .project-benefits div {
    margin-bottom: 2px;
    line-height: 1.3;
}

.project-card-info .project-benefits {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-description {
    position: absolute;
    bottom: 40px;
    right: 40px;
    max-width: 50%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    padding: 20px;
    border-radius: 10px;
    text-align: right;
}

.slide-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.slide-location, .slide-specs {
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.gallery-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background-color: #ff4500;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.gallery-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.calculator-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FFFCF9;
}

.calculator-title {
    font-size: 60px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 60px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

.calculator-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.form-group input, .form-group select {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #ff4500;
    outline: none;
}

.calculator-button {
    background: linear-gradient(to right, #FF4500, #6BDBD0);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.calculator-results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.calculator-results-container.show {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calculator-results {
    flex: 1;
    min-width: 300px;
    width: 100%;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.savings-chart-container {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.kpi-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.kpi-card {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 3px solid #ff4500;
    transition: transform 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
}

.kpi-card:hover {
    transform: translateY(-5px);
}

.kpi-card.epc {
    border-top-color: #6BDBD0;
}

.kpi-value {
    font-size: 20px;
    font-weight: bold;
    color: #ff4500;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-card.epc .kpi-value {
    color: #6BDBD0;
}

.kpi-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.solution-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.solution-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.solution-option.ppa {
    color: #FF4500;
}

.solution-option.epc {
    color: #6BDBD0;
}

.solution-option.selected.ppa {
    background: #FF4500;
    color: white;
    border-color: #FF4500;
}

.solution-option.selected.epc {
    background: #6BDBD0;
    color: white;
    border-color: #6BDBD0;
}

.roi-highlight {
    background: linear-gradient(to right, #f8f9fa, white);
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ff4500;
    width: 100%;
    box-sizing: border-box;
}

.roi-highlight.epc {
    border-left-color: #6BDBD0;
}

.roi-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff4500;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roi-highlight.epc .roi-value {
    color: #6BDBD0;
}

.roi-label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.roi-sublabel {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.chart-source {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.about-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #fffcf9 0%, #f8f4f0 100%);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    display: inline-block;
    margin-bottom: 30px;
}

.about-description {
    font-size: 20px;
    line-height: 1.6;
    color: #1f271b;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-description.animate {
    opacity: 1;
    transform: translateY(0);
}

.kpi-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 60px 20px;
}

.kpi-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

.kpi-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.kpi-item:hover {
    transform: translateY(-10px);
}

.kpi-number-wrapper {
    position: relative;
    margin-bottom: 30px;
    z-index: 2;
}

.kpi-value {
    font-size: 120px;
    font-weight: bold;
    line-height: 1;
    background: linear-gradient(135deg, #ff4500 0%, #6BDBD0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    transform: scale(0.3);
    opacity: 0;
    animation: numberFloat 3s ease-in-out infinite;
}

.kpi-item.animate .kpi-value {
    animation: numberPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, numberFloat 3s ease-in-out 0.8s infinite;
}

@keyframes numberPop {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes numberFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.kpi-unit {
    position: absolute;
    bottom: -15px;
    right: -20px;
    font-size: 24px;
    font-weight: bold;
    color: #6BDBD0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.kpi-item.animate .kpi-unit {
    opacity: 1;
    transform: translateX(0);
}

.kpi-content {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}


.kpi-connector {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #ff4500, transparent);
    opacity: 0;
    transition: opacity 0.6s ease 0.6s;
}

.kpi-item.animate .kpi-connector {
    opacity: 0.3;
}

.kpi-item:last-child .kpi-connector {
    display: none;
}


.kpi-label {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.kpi-item.animate .kpi-label {
    opacity: 1;
    transform: translateY(0);
}

.kpi-description {
    font-size: 16px;
    color: #888;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

.kpi-item.animate .kpi-description {
    opacity: 1;
    transform: translateY(0);
}

.kpi-footnote {
    margin-top: 24px;
    padding-left: 2em;
    font-size: 14px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.value-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.value-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 15px;
}

.value-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

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

.about-image {
    position: relative;
    z-index: 2;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.about-image img.animate {
    transform: scale(1);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, #ff4500, #6BDBD0);
    opacity: 0.1;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.partners-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fffcf9 0%, #f8f4f0 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.partners-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    letter-spacing: -0.3px;
}

.partners-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ff4500;
    border-radius: 1px;
}

.partners-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 40px;
    padding: 0 20px;
}

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

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partners-track::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 252, 249, 0), rgba(255, 252, 249, 1));
    z-index: 2;
}

.partners-track::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 252, 249, 0), rgba(255, 252, 249, 1));
    z-index: 2;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: relative;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: #1F271B;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.open .hamburger-line:first-child {
    transform: rotate(45deg);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    padding: 80px 20px 20px;
    background: transparent;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
}

.mobile-nav.open {
    right: 0;
    opacity: 1;
}

.mobile-nav a {
    padding: 8px 20px 8px 5px;
    font-size: 18px;
    text-decoration: none;
    color: #ff4500;
    border-bottom: none;
    display: block;
    margin: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    text-align: right;
}

.mobile-nav.open a {
    animation: slideInFromRight 0.5s ease forwards;
}

.mobile-nav.open a:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { animation-delay: 0.3s; }

.mobile-nav:not(.open) a {
    opacity: 0;
    transform: translateX(30px);
    animation: none;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.mobile-nav a:hover {
    background: linear-gradient(90deg, #FF4500 0%, #FF6B35 30%, #FF8C42 60%, #6BDBD0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(-5px);
    padding-right: 10px;
}

.mobile-nav a.button {
    background: transparent;
    color: #ff4500;
    margin-top: 0;
    text-align: right;
    border-radius: 0;
    padding: 8px 20px 8px 5px;
    border: none;
    border-bottom: none;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
}

.mobile-nav a.button:hover {
    background: linear-gradient(90deg, #FF4500 0%, #FF6B35 30%, #FF8C42 60%, #6BDBD0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(-5px);
    padding-right: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    z-index: 999;
}

.overlay.open {
    visibility: visible;
    opacity: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        position: fixed;
        background: transparent;
        box-shadow: none;
        height: 60px;
        align-items: center;
        justify-content: space-between;
    }

    header img {
        height: 45px;
        margin: 0;
        position: relative;
        z-index: 1101;
    }

    nav {
        display: none; /* Hide the regular nav */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
    }

    .mobile-nav {
        display: flex; /* Enable mobile nav structure */
    }

    .first-text-section {
        height: 100vh;
        padding-left: 0;
        padding-top: 60px; /* Account for fixed header */
        justify-content: center;
        text-align: center;
    }

    .typing-text-first {
        font-size: 32px;
        max-width: 100%;
        padding: 0 20px;
        margin: 0 auto;
    }

    .typing-text-first span {
        font-size: 32px;
    }

    .typing-text-first .text-rotator {
        font-size: 32px;
    }

    .about-section {
        padding: 50px 15px 30px;
    }

    .about-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .about-description {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 0;
    }

    /* Make KPI items smaller in the Nosotros section */
    .kpi-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .kpi-container {
        gap: 40px;
        margin-top: 40px;
        padding: 40px 10px;
    }

    .kpi-item {
        min-width: 100%;
        margin-bottom: 30px;
    }

    .kpi-value {
        font-size: 80px;
    }

    .kpi-unit {
        font-size: 18px;
        bottom: -10px;
        right: -15px;
    }


    .kpi-label {
        font-size: 18px;
        margin-top: 12px;
    }
    
    .kpi-description {
        font-size: 14px;
        margin-top: 6px;
    }

    .kpi-connector {
        display: none;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .value-item {
        padding: 15px;
    }

    .value-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .value-description {
        font-size: 13px;
    }

    /* Make price comparison chart smaller and centered */
    .rounded-section {
        width: 95%;
        padding: 30px 10px;
        margin: 30px auto 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.3;
    }

    .price-comparison {
        padding: 20px 5px;
        margin-top: 20px;
    }

    .chart-container {
        height: 250px;
        margin: 20px auto;
        max-width: 100%;
        padding: 10px 0;
    }

    .chart-legend {
        gap: 15px;
        margin-top: 10px;
        justify-content: center;
    }

    .legend-color {
        width: 10px;
        height: 10px;
        margin-right: 5px;
    }

    .legend-text {
        font-size: 12px;
    }

    /* Make solution boxes smaller */
    .solutions-section {
        padding: 40px 10px 30px;
    }

    .solutions-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .solution-boxes {
        flex-direction: column;
        gap: 60px;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .solution-box {
        width: 100%;
        min-height: 0;
        margin-bottom: 40px;
        padding: 20px 15px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .solution-illustration {
        margin-bottom: 20px;
    }

    .solution-illustration img {
        max-width: 100%;
    }

    .solution-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .solution-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .feature-item {
        margin-bottom: 12px;
    }

    .feature-icon {
        min-width: 24px;
        height: 24px;
        margin-right: 10px;
        font-size: 20px;
    }

    .feature-text {
        font-size: 13px;
    }

    /* Make project info text smaller and positioned in corner */
    .projects-section {
        padding: 40px 10px 120px;
    }

    .projects-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .gallery-container {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .gallery-slide.project-card {
        overflow: visible;
    }

    .gallery-slide img {
        height: 200px;
    }

    .project-card-info {
        bottom: auto;
        top: 100%;
        margin-top: -56px;
        right: 24px;
        max-width: min(280px, 85%);
        padding: 12px 14px;
        font-size: 11px;
    }

    .project-card-info .project-card-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .project-card-info .project-card-name {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .project-card-info .project-benefits {
        padding-top: 6px;
    }

    .slide-description {
        bottom: 10px;
        right: 10px;
        max-width: 60%;
        padding: 8px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 5px;
    }

    .slide-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .slide-location, .slide-specs {
        font-size: 10px;
    }

    .gallery-nav {
        margin-top: 130px;
    }

    /* Make savings calculator KPI boxes smaller */
    .calculator-section {
        padding: 40px 10px 30px;
    }

    .calculator-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .partners-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .calculator-container {
        padding: 20px 15px;
        border-radius: 15px;
        margin: 0 10px;
        width: auto;
    }

    .calculator-form {
        gap: 15px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-group input, .form-group select {
        font-size: 14px;
        padding: 10px;
    }

    .calculator-button {
        padding: 10px 20px;
        font-size: 16px;
        margin-top: 15px;
    }

    .calculator-results-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-results {
        flex: 1;
        width: 100%;
        min-width: unset;
    }
    
    .calculator-chart {
        height: 200px;
        margin-bottom: 15px;
    }
    
    .kpi-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .kpi-card {
        padding: 8px;
    }
    
    .kpi-card .kpi-value {
        font-size: 16px;
    }
    
    .kpi-card .kpi-label {
        font-size: 10px;
    }
    
    .roi-highlight {
        padding: 10px;
    }

    /* Make the footer more compact */
    .footer-white-section {
        height: 20vh;
        min-height: 100px;
    }

    .footer-red-section {
        padding: 30px 20px;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        min-height: 250px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer .footer-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .contact-info {
        margin-top: 10px;
        gap: 12px;
    }

    .contact-item {
        font-size: 14px;
    }

    .social-links {
        gap: 15px;
        margin-top: 15px;
    }

    .social-link img,
    .social-link svg {
        height: 24px;
        width: 24px;
    }

    /* Touch-friendly arrow controls */
    .gallery-arrow {
        width: 35px;
        height: 35px;
    }

    .savings-chart-container {
        margin-bottom: 15px;
        padding: 8px;
    }
    
    .chart-wrapper {
        height: 180px;
    }
    
    .chart-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .typing-text-first {
        font-size: 24px;
        padding: 0 10px;
    }

    .typing-text-first span,
    .typing-text-first .text-rotator {
        font-size: 24px;
    }

    .about-title {
        font-size: 24px;
    }

    /* Make KPI items even smaller on very small screens */
    .kpi-container {
        flex-direction: row;
    }

    .kpi-item {
        min-width: 100%;
        margin-bottom: 25px;
    }

    .kpi-value {
        font-size: 70px;
    }

    .kpi-unit {
        font-size: 16px;
        bottom: -8px;
        right: -12px;
    }


    .kpi-label {
        font-size: 16px;
        margin-top: 10px;
    }

    .kpi-description {
        font-size: 13px;
        margin-top: 5px;
    }

    .section-title {
        font-size: 20px;
    }

    /* Make chart even smaller on very small screens */
    .chart-container {
        height: 150px;
    }

    .calculator-title, 
    .solutions-title,
    .projects-title,
    .partners-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    /* Even smaller solution boxes */
    .solution-box {
        width: 100%;
        margin-bottom: 30px;
        padding: 20px 15px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .solution-illustration {
        margin-bottom: 15px;
    }

    .solution-title {
        font-size: 20px;
    }

    .solution-description {
        font-size: 13px;
    }

    /* Even smaller project info */
    .project-card-info .project-card-title {
        font-size: 12px;
    }

    .project-card-info .project-card-name {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .project-card-info {
        padding: 10px 12px;
        font-size: 10px;
        max-width: min(260px, 85%);
        margin-top: -48px;
    }

    .slide-description {
        max-width: 50%;
        padding: 5px;
    }

    .slide-title {
        font-size: 10px;
    }

    .slide-location, .slide-specs {
        font-size: 8px;
    }

    .gallery-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    /* Even more compact footer */
    .footer-white-section {
        height: 15vh;
        min-height: 80px;
    }

    .footer-red-section {
        padding: 25px 15px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        min-height: 200px;
    }

    .footer .footer-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .contact-item {
        font-size: 12px;
    }

    .social-link img {
        height: 20px;
        width: 20px;
    }

    /* Even smaller calculator for tiny screens */
    .calculator-chart {
        max-height: 180px;
    }
    
    .kpi-cards {
        gap: 5px;
    }
    
    .kpi-card {
        padding: 6px;
    }
    
    .kpi-card .kpi-value {
        font-size: 14px;
        margin: 3px 0;
    }
    
    .kpi-card .kpi-label {
        font-size: 9px;
    }
}

.savings-chart-container {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
    margin: 0 auto;
}

.chart-title {
    text-align: center;
    margin-bottom: 15px;
    color: #1F271B;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0 5px;
}

/* ===== SAVINGS CALCULATOR ===== */
.calc-section {
    padding: 100px 24px;
    background: #fff;
}
.calc-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.calc-eyebrow {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF4500;
    margin: 0 0 14px;
}
.calc-heading {
    margin: 0 0 16px;
    line-height: 1.15;
}
.calc-subhead {
    font-size: 16px;
    color: #6e6e73;
    margin: 0 0 36px;
    line-height: 1.6;
}

/* Tabs */
.calc-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}
.calc-tab {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 100px;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: transparent;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.2s ease;
}
.calc-tab.active[data-sol="ppa"] {
    background: #FF4500;
    border-color: #FF4500;
    color: #fff;
}
.calc-tab.active[data-sol="venta"] {
    background: #3dbdb5;
    border-color: #3dbdb5;
    color: #fff;
}
.calc-tab:hover:not(.active) {
    border-color: rgba(0,0,0,0.3);
    color: #1d1d1f;
}

/* Sub-tabs */
.calc-segs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 32px;
}
.calc-seg {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.18s ease;
}
.calc-seg.active {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.18);
    color: #1d1d1f;
}
.calc-seg:hover:not(.active) {
    border-color: rgba(0,0,0,0.2);
    color: #1d1d1f;
}

/* Card */
.calc-card {
    background: #f5f5f7;
    border-radius: 20px;
    padding: 40px 40px 32px;
    text-align: left;
}

/* Slider area */
.calc-slider-wrap {
    margin-bottom: 36px;
}
.calc-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6e6e73;
    font-family: 'Satoshi', sans-serif;
}
.calc-bill-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(0,0,0,0.1);
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FF4500;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FF4500;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    cursor: pointer;
}
.calc-slider.thumb-teal::-webkit-slider-thumb { background: #3dbdb5; }
.calc-slider.thumb-teal::-moz-range-thumb    { background: #3dbdb5; }
.calc-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #999;
    font-family: 'Satoshi', sans-serif;
}

/* Results grid */
.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.calc-metric {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
}
.calc-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.calc-icon-savings  { background: rgba(255,69,0,0.08);   color: #FF4500; }
.calc-icon-monthly  { background: rgba(61,189,181,0.10);  color: #3dbdb5; }
.calc-icon-system   { background: rgba(0,0,0,0.05);       color: #555; }
.calc-metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
    margin-bottom: 4px;
}
.calc-metric-label {
    font-size: 12px;
    color: #6e6e73;
    font-family: 'Satoshi', sans-serif;
    line-height: 1.3;
}

/* Disclaimer */
.calc-disclaimer {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
    margin: 0;
    font-family: 'Satoshi', sans-serif;
}

/* Responsive */
@media (max-width: 600px) {
    .calc-card { padding: 28px 20px 24px; }
    .calc-results { grid-template-columns: 1fr; gap: 10px; }
    .calc-heading { font-size: 26px; }
}
/* ===== END SAVINGS CALCULATOR ===== */

/* ===== COLOMBIA MAP ===== */
.map-section {
    padding: 80px 24px 70px;
    background: linear-gradient(180deg, #FFFCF9 0%, #f5f0ea 100%);
    text-align: center;
}
.map-inner {
    max-width: 700px;
    margin: 0 auto;
}
.map-heading {
    margin: 0 0 36px;
}
.map-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.colombia-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
}
/* col-outline: fill & stroke set via SVG attributes (gradient refs) */
.col-outline {
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* ── Pin ring (emanating pulse after drop) ── */
.pin-ring {
    fill: none;
    stroke: #ff4500;
    stroke-width: 1.5;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}
.map-section.pins-active .pin-ring {
    animation: pinRing 2.5s ease-out infinite;
    animation-delay: calc(var(--pin-delay, 0s) + 0.85s);
}
@keyframes pinRing {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0;   transform: scale(2.8); }
}

/* ── Pin drop (falls from above on scroll into view) ── */
.pin-drop {
    opacity: 0;
    will-change: transform, opacity;
}
.map-section.pins-active .pin-drop {
    animation: pinDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--pin-delay, 0s);
}
@keyframes pinDrop {
    0%   { opacity: 0; transform: translateY(-30px); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Pin shapes ── */
.pin-body {
    fill: #ff4500;
    transition: fill 0.18s ease;
    cursor: pointer;
}
.pin-inner   { fill: #fff; pointer-events: none; }
.pin-ground  { fill: rgba(0,0,0,0.15); pointer-events: none; }

/* Active state when card is open */
.map-pin.pin-active .pin-body { fill: #c93200; }
.map-pin.pin-active .pin-ring { stroke: #c93200; }
.map-pin { cursor: pointer; outline: none; }
.map-pin:focus-visible .pin-body { outline: none; stroke: #ff4500; stroke-width: 2; }

/* ── Badge (project count) ── */
.pin-badge-bg  { fill: #1d1d1f; }
.pin-badge-num {
    fill: #fff;
    font-size: 6.5px;
    font-weight: 700;
    font-family: 'Satoshi', sans-serif;
    text-anchor: middle;
    dominant-baseline: central;
}

/* ── City labels ── */
.pin-label {
    font-size: 9px;
    font-weight: 600;
    fill: #333;
    font-family: 'Satoshi', sans-serif;
    text-anchor: start;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}
.pin-label-small { font-weight: 400; fill: #888; font-size: 8px; }
.map-section.pins-active .pin-label {
    animation: labelIn 0.35s ease forwards;
    animation-delay: calc(var(--pin-delay, 0s) + 0.5s);
}
@keyframes labelIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Floating info cards ── */
.pin-card {
    position: absolute;
    width: 178px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    padding: 13px 14px 15px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);
    opacity: 0;
    transform: scale(0.9) translateY(8px);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.34,1.2,0.64,1),
                transform 0.22s cubic-bezier(0.34,1.2,0.64,1);
    z-index: 20;
}
.pin-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.pin-card-close {
    position: absolute;
    top: 9px; right: 11px;
    background: none;
    border: none;
    font-size: 15px;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.pin-card-close:hover { color: #444; }

.card-tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 2px 7px;
    margin-bottom: 8px;
}
.card-tag-ppa   { background: rgba(255,69,0,0.1);   color: #ff4500; }
.card-tag-venta { background: rgba(107,219,208,0.15); color: #1fa89f; }

.card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1d1d1f;
    font-family: 'Satoshi', sans-serif;
    margin-bottom: 2px;
    line-height: 1.2;
}
.card-city {
    font-size: 11px;
    color: #999;
    font-family: 'Satoshi', sans-serif;
    margin-bottom: 11px;
}
.card-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.card-stat   { display: flex; flex-direction: column; gap: 1px; }
.stat-val {
    font-size: 13px;
    font-weight: 700;
    color: #ff4500;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}
.stat-lbl {
    font-size: 9.5px;
    color: #bbb;
    font-family: 'Satoshi', sans-serif;
}

/* Cartagena dual-project card - unified styling */
.card-project-row {
    margin-bottom: 12px;
}
.card-project-row:last-child {
    margin-bottom: 0;
}
.cpr-name {
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    font-family: 'Satoshi', sans-serif;
    margin-bottom: 8px;
    line-height: 1.2;
}
.cpr-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 11px;
}
.cpr-stats span:nth-child(odd) {
    font-size: 12px;
    font-weight: 700;
    color: #ff4500;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}
.cpr-stats span:nth-child(even) {
    font-size: 9px;
    color: #bbb;
    font-family: 'Satoshi', sans-serif;
}
.cpr-accent { font-weight: 600; }
.card-divider { height: 1px; background: rgba(0,0,0,0.07); margin: 10px 0; }

@media (max-width: 600px) {
    .map-section  { padding: 50px 16px 50px; }
    .map-inner    { max-width: 310px; }
    .map-wrapper  { max-width: 290px; }
    .pin-card     { width: 155px; }
    .stat-val     { font-size: 12px; }
    .cpr-stats    { grid-template-columns: 1fr; }
}
/* ===== END COLOMBIA MAP ===== */

/* ===== HERO ACTIONS ===== */
.first-text-section {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    padding: 0 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 100px;
    font-family: 'Satoshi', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn-primary {
    background: #ff4500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.45);
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #1d1d1f;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-btn-ghost:hover {
    transform: translateY(-2px);
    background: #fff;
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: waPulse 2.6s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.wa-float svg {
    width: 34px;
    height: 34px;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.45); }
    50%      { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 12px rgba(37,211,102,0); }
}

@media (max-width: 768px) {
    .hero-btn { padding: 13px 24px; font-size: 15px; }
    .hero-actions { gap: 12px; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 30px; height: 30px; }
}
/* ===== FAQ ===== */
.faq-section {
    padding: 90px 20px;
    background-color: #FFFCF9;
    text-align: center;
}

.faq-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.3px;
    display: inline-block;
    position: relative;
    margin-bottom: 16px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ff4500;
    border-radius: 1px;
}

.faq-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.open {
    border-color: rgba(255, 69, 0, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
}

.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #ff4500;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.faq-item.open .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 26px 24px;
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #555;
}

.faq-answer a {
    color: #ff4500;
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-cta {
    margin-top: 40px;
    font-family: 'Satoshi', sans-serif;
    font-size: 17px;
    color: #666;
}

.faq-cta a {
    color: #ff4500;
    font-weight: 700;
    text-decoration: none;
}

.faq-cta a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-question { font-size: 16px; padding: 20px; }
    .faq-answer p { padding: 0 20px 20px; }
}
