@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');
body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #fffcf9;
    color: black;
    overflow-x: hidden;
}
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: 50px;
    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;
}
/* 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 {
    background: #1f271b;
    color: #fffcf9;
    text-align: left;
    padding: 50px 100px;
    position: relative;
    width: 100%;
    bottom: 0;
    left: 0;
    border-top-left-radius: 120px;
    border-top-right-radius: 120px;
    box-sizing: border-box;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/solar-pattern.png');
    opacity: 0.05;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.footer-section {
    padding: 20px;
}

.footer .footer-title {
    font-size: 50px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 30px;
    border-bottom: 2px solid #ff4500;
    display: inline-block;
    padding-bottom: 10px;
}

.footer .section-title {
    font-size: 24px;
    font-weight: bold;
    color: #fffcf9;
    margin-bottom: 20px;
    border-left: 3px solid #ff4500;
    padding-left: 10px;
}

.footer a {
    color: #fffcf9;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff4500;
}

.footer p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ddd;
}

.footer img {
    height: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

.footer .social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ddd;
}

.contact-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    color: #999;
    font-size: 14px;
}

.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: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff4500;
}
.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: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    padding-bottom: 20px;
    margin-top: 40px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.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: center;
    margin-top: 20px;
    gap: 30px;
}

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

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

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

.legend-color.mercado {
    background: #333;
}

.legend-text {
    font-size: 16px;
    color: #333;
}

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

.solutions-title {
    font-size: 60px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 60px;
    text-align: center;
}

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

.solution-box {
    width: 450px;
    min-height: 400px;
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.solution-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
}

.solution-box.ppa::before {
    background: linear-gradient(to bottom, #FF4500, #6BDBD0);
}

.solution-box.epc::before {
    background: linear-gradient(to bottom, #6BDBD0, #ff4500);
}

.solution-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

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

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

.solution-icon {
    display: none;
}

.solution-description {
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
    color: #333;
    margin-bottom: 20px;
}

.solution-features {
    margin-top: auto;
    padding-top: 20px;
}

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

.feature-icon {
    min-width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4500;
    font-weight: bold;
}

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

.feature-text {
    font-size: 16px;
    color: #555;
}

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

.projects-title {
    font-size: 60px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 60px;
    text-align: center;
}

.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);
}

.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;
}

.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 {
    font-size: 60px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ff4500, #6BDBD0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.about-title.animate::after {
    transform: scaleX(1);
}

.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: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.kpi-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.kpi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #ff4500, #6BDBD0);
}

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

.kpi-value {
    font-size: 48px;
    font-weight: bold;
    color: #ff4500;
    margin: 20px 0;
    position: relative;
}

.kpi-value::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -20px;
    font-size: 24px;
    color: #6BDBD0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.kpi-label {
    font-size: 18px;
    color: #666;
    font-weight: bold;
}

.kpi-description {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

.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;
}

.partners-title {
    font-size: 60px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 60px;
    text-align: center;
}

.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: rgba(255, 255, 255, 0.95);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

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

.mobile-nav a {
    padding: 15px 5px;
    font-size: 18px;
    text-decoration: none;
    color: #1F271B;
    border-bottom: 1px solid #eee;
    display: block;
    margin: 0;
    transition: all 0.3s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a.button {
    background: linear-gradient(to right, #FF4500, #6BDBD0);
    color: white;
    margin-top: 20px;
    text-align: center;
    border-radius: 40px;
    padding: 12px 20px;
    border: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s 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: rgba(255, 252, 249, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        height: 60px;
        align-items: center;
        justify-content: space-between;
    }

    header img {
        height: 30px;
        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-item {
        width: calc(50% - 15px);
        min-width: 0;
        padding: 12px;
        margin-bottom: 10px;
    }

    .kpi-value {
        font-size: 28px;
        margin: 5px 0;
    }

    .kpi-label {
        font-size: 13px;
    }
    
    .kpi-description {
        font-size: 11px;
    }

    .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: 20px 10px;
        margin: 30px auto 15px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 15px;
        text-align: center;
    }

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

    .chart-container {
        height: 180px;
        margin: 10px auto;
        max-width: 95%;
    }

    .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: 15px;
    }

    .solution-box {
        width: 100%;
        min-height: 0;
        padding: 15px 15px 15px 20px;
    }

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

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

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

    .feature-icon {
        min-width: 18px;
        height: 18px;
        margin-right: 8px;
    }

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

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

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

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

    .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;
    }

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

    .calculator-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 {
        padding: 25px 15px 15px;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-section {
        padding: 10px 0;
    }

    .footer .footer-title {
        font-size: 22px;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

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

    .footer p {
        margin-bottom: 10px;
        font-size: 13px;
    }

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

    .contact-item {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .contact-icon {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .social-links {
        gap: 8px;
    }

    .social-link {
        padding: 5px 0;
        font-size: 13px;
    }

    .social-link img {
        height: 16px;
        margin-right: 8px;
    }

    .footer-bottom {
        padding-top: 12px;
        font-size: 11px;
    }

    /* 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 {
        width: calc(50% - 10px);
        padding: 10px;
    }

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

    .kpi-label {
        font-size: 11px;
    }

    .kpi-description {
        font-size: 10px;
    }

    .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 {
        padding: 12px 12px 12px 18px;
    }

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

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

    /* Even smaller project info */
    .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 {
        padding: 20px 10px 10px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

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

    .footer .section-title {
        font-size: 16px;
    }

    .footer p {
        font-size: 12px;
    }

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

    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .social-link {
        font-size: 12px;
    }

    .social-link img {
        height: 14px;
    }

    .footer-bottom {
        padding-top: 12px;
        font-size: 11px;
    }

    /* 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;
}