@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
:root {
    --brand-green: #9fe047;
    --dark-bg: #111111;
    --light-gray-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --light-border: #e9ecef;
}
body {
    font-family: "Inter", sans-serif;
    background-color: #fff;
    color: #111;
    overflow-x: hidden;
}


.highlight-bg,
h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", sans-serif !important;
}
.navbar .nav-link {
    padding-bottom: 0.25rem; 
    border-bottom: 2px solid transparent; 
    transition: border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.navbar .nav-link:hover {
    border-bottom-color: var(--brand-green);
}

.navbar .nav-link.active {
    border-bottom-color: var(--brand-green);
}
.navbar {
    padding-top: 2rem;
    padding-bottom: 2rem;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.navbar.navbar-hidden {
    transform: translateY(-100%);
}
.navbar .navbar-brand, .navbar .nav-link { color: white; font-weight: 500; }
.navbar .navbar-brand { font-weight: 700; font-size: 1.8rem; }
.navbar .btn-header { border: 1px solid white; color: white; border-radius: 1px; padding: 0.5rem 1.2rem; transition: all 0.3s ease-in-out; }
.navbar .navbar-toggler-icon { filter: brightness(0) invert(1); }
.navbar.scrolled, .navbar:hover { background-color: white !important; box-shadow: 0 4px 10px rgba(0,0,0,0.05); padding-top: 0.75rem; padding-bottom: 0.75rem; }
.navbar.scrolled .navbar-brand, .navbar:hover .navbar-brand, .navbar.scrolled .nav-link, .navbar:hover .nav-link { color: var(--dark-text); }
.navbar.scrolled .btn-header, .navbar:hover .btn-header { background-color: var(--brand-green); border-color: var(--brand-green); color: white; }
.navbar.scrolled .navbar-toggler-icon, .navbar:hover .navbar-toggler-icon { filter: none; }
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; color: white; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: -2; }
.hero-section::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.hero-content h1 { font-size: 4rem; font-weight: 700; line-height: 1.2; }
.hero-content .highlight { color: var(--brand-green); }
.hero-content p { font-size: 1.25rem; max-width: 600px; }
.section-title { font-weight: 600; margin-bottom: 3rem; font-size: 2.2rem; }

.highlight-bg {
    position: relative;
    display: inline-block;
    color: white; 
    background-color: transparent;
    padding: 0.2rem 0.8rem;
    z-index: 1;
}
.highlight-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #9feec4, var(--brand-green));
    border-radius: .55em;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
    z-index: -1;
}

.section-dark { background-color: var(--dark-bg); color: white; }
.light-bg { background-color: var(--light-gray-bg); }
.case-study-card { border: none; background: transparent; margin-bottom: 4rem; transition: transform 0.3s ease; }
.case-study-card:hover { transform: translateY(-8px); }
.case-study-card img, .case-study-card video { border-radius: 15px; margin-bottom: 1.5rem; height: 100%; object-fit: cover; width: 100%; }
.case-study-card .company-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.case-study-card .company-logo { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; }
.case-study-card .category { font-size: 0.8rem; color: #555; font-weight: 600; letter-spacing: 0.5px; }
.case-study-card h3 { font-weight: 600; font-size: 1.75rem; line-height: 1.3; margin-bottom: 1rem; }
.case-study-card .description { color: #000; font-size: 1rem; }
.process-section .process-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4rem; flex-wrap: wrap; }
.process-section .process-header .section-title { margin-bottom: 1rem; }
.process-section .process-header .lead { max-width: 450px; }
.process-illustrations { display: none; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.process-card { border-top: 3px solid var(--light-border); padding-top: 1rem; text-align: left; }
.process-card .card-title-wrapper { display: flex; align-items: center; margin-bottom: 0.5rem; }
.process-card .card-counter { color: var(--brand-green); font-weight: 600; margin-right: 0.75rem; }
.process-card .card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0; }
.process-card .card-text { font-size: 0.95rem; color: #555; }
.process-card .card-illustration-mobile { width: 100%; max-width: 150px; margin: 0 auto 1rem; display: none; }
@media (max-width: 991.98px) {
    .process-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; padding: 1.5rem 0; margin: 0 -1.5rem; -ms-overflow-style: none; scrollbar-width: none; }
    .process-grid::-webkit-scrollbar { display: none; }
    .process-card { flex: 0 0 80%; scroll-snap-align: center; margin-left: 1.5rem; padding: 1rem; }
    .process-card:last-child { margin-right: 1.5rem; }
    .process-card .card-illustration-mobile { display: block; }
}
@media (min-width: 992px) {
    .process-illustrations { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; margin-bottom: 2rem; }
    .process-illustration-item { text-align: center; transition: opacity 0.3s ease, transform 0.3s ease; transform: scale(0.95); opacity: 0.6; }
    .process-illustration-item.is-active { opacity: 1; transform: scale(1); }
    .process-illustration-item img { max-width: 100%; height: 120px; object-fit: contain; }
    .process-card.is-active { border-top-color: var(--brand-green); }
}
.results-section .results-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 3rem; }
.results-section .results-header .lead { max-width: 450px; }
.result-box { background-color: var(--light-gray-bg); padding: 2rem; border-radius: 12px; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.result-box:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.result-box h2 { font-size: 3.5rem; font-weight: 700; color: var(--dark-text); margin-bottom: 1rem; }
.result-box p { font-size: 1rem; color: #555; line-height: 1.6; }
.clients-section { background-color: var(--light-gray-bg); }
.testimonial-card { background-color: white; border-radius: 0; border: none; padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.testimonial-client-logo { max-height: 25px; margin-bottom: 1.5rem; filter: grayscale(1); opacity: 0.8; }
.testimonial-card .quote { font-size: 1.1rem; font-weight: 500; margin-bottom: 2rem; flex-grow: 1; }
.testimonial-card .author-info { display: flex; align-items: center; }
.testimonial-card .author-img { width: 50px; height: 50px; border-radius: 50%; margin-right: 1rem; }
.testimonial-card .author-name { font-weight: 600; margin-bottom: 0; }
.testimonial-card .author-title { color: #777; font-size: 0.9rem; }
.stats-section { position: relative; overflow: hidden; }
.stats-bg-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 1; }
.stats-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #ffffff; z-index: 2; }
.stats-content { position: relative; z-index: 3; }
.stats-content .section-title .highlight { color: var(--brand-green); }
.stat-box { background-color: rgba(255, 255, 255, 0.08); padding: 1.5rem; border-radius: 10px; text-align: left; }
.stat-box h3 { font-size: 3rem; font-weight: 700; }
.stat-box p { color: #ffffff; font-size: 1rem; }
.client-logo-grid { filter: grayscale(1); opacity: 0.8; }
.client-logo { max-height: 35px; margin: 1.5rem; }
.insight-card { border: none; transition: transform 0.3s ease; }
.insight-card:hover { transform: translateY(-8px); }
.insight-card .card-category { font-size: 0.8rem; font-weight: 600; color: #555; letter-spacing: 1px; text-transform: uppercase; }
.insight-card .card-title { font-weight: 600; font-size: 1.25rem; }
.insight-card img { border-radius: 10px; }
footer { background-color: #ffffff; color: var(--dark-text); padding-top: 4rem; padding-bottom: 2rem; border-top: 1px solid var(--light-border); }
footer h5 { font-weight: 600; font-size: 1rem; margin-bottom: 1.5rem; }
footer a, footer p, footer span { color: #555; font-size: 0.9rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--brand-green); text-decoration: underline; }
.footer-address { font-style: normal; }
.footer-social-icons { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.footer-social-icons a { font-size: 1.5rem; }
.footer-form .form-control { background-color: var(--light-gray-bg); border: 1px solid var(--light-border); }
.footer-form .form-check-label { font-size: 0.85rem; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.footer-logos img { max-height: 100%; filter: grayscale(1); }
.footer-section-title { font-weight: 600; color: var(--dark-text); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid var(--light-border); padding-top: 1.5rem; margin-top: 2rem; }
.footer-bottom p, .footer-bottom a { font-size: 0.85rem; }
@media screen and (max-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1rem; }
    .hero-section{
        max-height: 60vh;
    }

    .mob-header{
        align-items: start !important;
    }

    .navbar:hover .navbar-toggler-icon{
       filter: brightness(1) invert(1) !important; 
    }

    .section-title{
        font-size: 20px;
    }
    .navbar .nav-link.active{
        width: max-content;
        margin-bottom: 5px;
    }
}

.highlight {
    transition: opacity 0.4s ease-in-out;
    display: inline-block;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: #9fe047; /* Color personalizado */
    color: white;
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#scrollToTopBtn:hover {
    background-color: #85c732; /* Versión más oscura del color */
    transform: scale(1.1);
}

/* Background image for CTA section */
.cta-section {
  position: relative;
  background: url("assets/images/video-poster.jpg") center center / cover no-repeat;
  color: white;
  z-index: 1;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* Oscurece para mejorar contraste */
  z-index: -1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

/* Botón verde personalizado para CTA */
.cta-section .cta-btn {
  background-color: #9fe047 !important;
  border-color: #9fe047 !important;
  color: #111 !important;
}

.cta-section .cta-btn:hover {
  background-color: #8ad039 !important;
  border-color: #8ad039 !important;
  color: #111 !important;
}


