:root {
  --green: #2ab673;
  --green-dark: #147749;
  --green-soft: #e9f7f0;
  --ink: #26312d;
  --muted: #65716c;
  --cloud: #f3f7f5;
  --line: #dce7e1;
  --white: #fff;
  --shadow: 0 18px 55px rgba(22, 57, 40, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; }
section { scroll-margin-top: 86px; }
a { color: inherit; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(255,255,255,.96); box-shadow: 0 1px 18px rgba(20,43,31,.08); backdrop-filter: blur(10px); }
.navbar { min-height: 86px; }
.navbar-brand img { width: min(300px, 62vw); height: auto; }
.navbar .nav-link { color: #4e5753; font-size: .79rem; font-weight: 750; letter-spacing: .035em; padding: .8rem .62rem !important; text-transform: uppercase; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--green-dark); }
.nav-contact { display: inline-grid; width: 38px; height: 38px; margin-left: .3rem; place-items: center; color: var(--green-dark); border: 1px solid var(--line); border-radius: 50%; text-decoration: none; transition: .2s ease; }
.nav-contact:hover { color: white; background: var(--green); border-color: var(--green); }

.hero { position: relative; margin-top: 86px; overflow: hidden; background: #14221b; }
.hero-slide { position: relative; min-height: 640px; background-position: center; background-repeat: no-repeat; background-size: cover; }
.hero-slide-management { background-image: url('../images/gestion-dxg.jpg'); }
.hero-slide-trials { background-image: url('../images/kumen-ensayos.jpg'); background-position: left center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,18,13,.05) 12%, rgba(7,18,13,.18) 42%, rgba(7,18,13,.86) 100%); }
.hero-content { position: relative; z-index: 1; min-height: 640px; display: flex; align-items: center; justify-content: flex-end; }
.hero-copy { width: min(590px, 52%); color: white; text-shadow: 0 2px 10px rgba(0,0,0,.28); }
.eyebrow { margin: 0 0 .65rem; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #8de0b6; }
.hero h1, .hero h2 { margin: 0 0 1rem; font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 650; letter-spacing: -.045em; line-height: .98; }
.hero h2 strong { font-weight: 800; }
.hero-copy > p:not(.eyebrow) { max-width: 540px; font-size: 1.18rem; line-height: 1.5; }
.hero .carousel-indicators { z-index: 4; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 4; width: 8%; }
.hero .carousel-item.active .hero-copy-animated { animation: hero-copy-in .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-copy-in { from { opacity: 0; transform: translateX(45px); } to { opacity: 1; transform: none; } }
.btn-kumen { margin-top: .65rem; padding: .82rem 1.3rem; color: white; background: var(--green); border: 0; border-radius: .3rem; font-weight: 750; box-shadow: 0 8px 22px rgba(42,182,115,.25); }
.btn-kumen:hover, .btn-kumen:focus { color: white; background: var(--green-dark); }

.intro { padding: 5.5rem 0; }
.intro-card { height: 100%; display: flex; align-items: center; gap: 1.4rem; padding: 1.7rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 12px 35px rgba(18,63,41,.06); }
.intro-card img { flex: 0 0 auto; object-fit: contain; }
.intro-card h2 { margin: 0 0 .55rem; color: var(--green-dark); font-size: 1.38rem; font-weight: 750; }
.intro-card p { margin: 0; color: var(--muted); }

.product-section { padding: 7rem 0; overflow: hidden; }
.product-gestion { background: linear-gradient(180deg, var(--cloud), #fff 42%); }
.product-trials { background: #f5f7f9; }
.product-logo { width: min(310px, 74vw); max-height: 78px; margin-bottom: 2rem; object-fit: contain; object-position: left center; }
.product-section h2, .section-heading h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.08; }
.product-section .row p { color: var(--muted); font-size: 1.05rem; }
.product-screen { position: relative; padding: 2rem; background: white; border: 1px solid var(--line); border-radius: 1.4rem; box-shadow: var(--shadow); }
.product-screen::before { content: ""; position: absolute; z-index: -1; inset: -20px 40px 25px -28px; background: var(--green); border-radius: 1.6rem; opacity: .14; }
.product-screen img { display: block; width: 100%; }
.trial-screen::before { inset: 30px -30px -22px 40px; background: #ef8525; }
.check-list { display: grid; gap: .8rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.section-heading { max-width: 760px; margin: 7rem auto 3rem; text-align: center; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { padding: 1.65rem; background: white; border: 1px solid var(--line); border-radius: .8rem; }
.feature-card > i { color: var(--green); font-size: 1.55rem; }
.feature-card h3 { margin: .95rem 0 .45rem; font-size: 1.08rem; font-weight: 750; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.modules-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 4.5rem; margin-top: 7rem; align-items: start; }
.modules-intro { position: sticky; top: 120px; }
.modules-intro h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.modules-intro > p:not(.eyebrow) { color: var(--muted); }
.modules-intro img { margin-top: 1.6rem; }
.modules-list { display: grid; gap: .65rem; }
.modules-list details { background: white; border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.modules-list summary { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.15rem; cursor: pointer; font-weight: 720; list-style: none; }
.modules-list summary::-webkit-details-marker { display: none; }
.modules-list summary i { color: var(--green); transition: transform .2s ease; }
.modules-list details[open] summary i { transform: rotate(45deg); }
.module-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.4rem; padding: 0 1.15rem 1.3rem; }
.module-body > p { margin: 0; color: var(--muted); }
.module-body > div { padding: 1rem; color: white; background: #34433d; border-radius: .5rem; }
.module-body h3 { margin: 0 0 .65rem; font-size: .9rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.module-body ul { display: grid; gap: .3rem; margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.trial-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 4rem; }
.trial-feature { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.15rem; background: white; border-radius: .55rem; box-shadow: 0 8px 25px rgba(31,45,61,.055); }
.trial-feature i { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: .75rem; }

.company-section { padding: 7rem 0; color: white; background: #202b27; }
.section-heading-light .eyebrow { color: #7bd7a8; }
.section-heading-light > p:last-child { color: #b8c5bf; }
.company-story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; margin-top: 3rem; align-items: center; }
.company-story h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.1; letter-spacing: -.035em; }
.company-story p { color: #b8c5bf; }
.video-frame { aspect-ratio: 16/9; overflow: hidden; background: #101713; border-radius: 1rem; box-shadow: 0 20px 55px rgba(0,0,0,.3); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.services-section { padding: 7rem 0; }
.services-section .section-heading { margin-top: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--cloud); border-radius: 1rem; }
.service-card > div { padding: 2rem; }
.service-card span { color: var(--green); font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.service-card h3 { margin: .8rem 0; font-size: 1.42rem; font-weight: 750; }
.service-card p { color: var(--muted); }
.service-card a { color: var(--green-dark); font-weight: 750; text-underline-offset: .25rem; }
.service-card img { width: 100%; height: 160px; padding: 1rem 2rem 2rem; object-fit: contain; }

.clients-section { padding: 7rem 0; background: var(--green-soft); }
.clients-section .section-heading { margin-top: 0; }
.testimonial-carousel { max-width: 1060px; min-height: 390px; margin: 0 auto 4rem; padding: 0 5rem; }
.testimonial-carousel .carousel-inner { min-height: 390px; }
.testimonial { min-height: 360px; margin: 0 auto; padding: 2.5rem 1rem 4rem; text-align: center; }
.testimonial > i { color: var(--green); font-size: 2.2rem; opacity: .7; }
.testimonial blockquote { margin: 1rem 0 1.3rem; font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 620; line-height: 1.4; letter-spacing: -.02em; }
.testimonial p { font-weight: 750; }
.testimonial p span { display: block; color: var(--muted); font-weight: 400; }
.testimonial-carousel .carousel-control-prev-icon, .testimonial-carousel .carousel-control-next-icon { filter: invert(42%) sepia(45%) saturate(879%); }
.testimonial-carousel .carousel-indicators [data-bs-target] { background-color: var(--green-dark); }
.client-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.client-logo { min-height: 95px; display: grid; place-items: center; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: .6rem; }
.client-logo img { max-width: 100%; max-height: 65px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: .2s ease; }
.client-logo:hover img { filter: none; opacity: 1; }

.contact-section { position: relative; padding: 7rem 0; color: white; background: url('../images/gestion-dxg-.jpg') center/cover no-repeat; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,24,17,.93), rgba(9,24,17,.76)); }
.contact-content { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 5rem; align-items: center; }
.contact-intro .eyebrow { color: #7de0ad; }
.contact-intro h2 { font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -.045em; }
.contact-intro p { color: #d0dbd6; font-size: 1.08rem; }
.contact-intro a { display: inline-flex; gap: .65rem; align-items: center; margin-top: 1rem; color: white; font-weight: 650; text-underline-offset: .25rem; }
.contact-form { padding: 2.2rem; color: var(--ink); background: rgba(255,255,255,.97); border-radius: 1rem; box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.contact-form h3 { margin: 0 0 1.4rem; font-size: 1.45rem; font-weight: 760; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: .32rem; margin-bottom: 1rem; }
.form-field label { font-size: .88rem; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; padding: .78rem .85rem; color: var(--ink); background: white; border: 1px solid #cbd8d1; border-radius: .4rem; font: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(42,182,115,.18); border-color: var(--green); }
.form-field span { color: #b42318; font-size: .82rem; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-email-note { display: inline-flex; align-items: center; gap: .45rem; margin: .9rem 0 0 1rem; color: var(--muted); font-size: .85rem; vertical-align: middle; }
.contact-form .btn:disabled { cursor: wait; opacity: .72; }
.contact-feedback { min-height: 4rem; padding-top: .8rem; overflow-anchor: none; }
.contact-alert { display: flex; gap: .65rem; align-items: flex-start; padding: .9rem 1rem; border-radius: .4rem; font-size: .9rem; line-height: 1.45; }
.contact-alert[hidden] { display: none; }
.contact-alert i { margin-top: .15rem; }
.contact-alert.warning { color: #7a4d00; background: #fff3d6; }
.contact-alert.success { color: #0c5a34; background: #def6e9; }

.site-footer { padding: 2.5rem 0; background: white; }
.site-footer .container { display: flex; align-items: center; gap: 1.4rem; }
.site-footer img { width: 210px; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer a { display: grid; width: 40px; height: 40px; margin-left: auto; place-items: center; color: white; background: var(--green-dark); border-radius: 50%; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-left { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .carousel-item.active .hero-copy-animated { animation: none; }
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: .5rem 0 1rem; }
  .nav-contact { margin: .45rem 0 0; }
  .hero-slide, .hero-content { min-height: 570px; }
  .hero-slide-management { background-position: 42% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,18,13,.25), rgba(7,18,13,.83)); }
  .hero-copy { width: min(590px, 80%); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-layout, .company-story, .contact-content { grid-template-columns: 1fr; gap: 3rem; }
  .modules-intro { position: static; text-align: center; }
  .modules-intro img { max-width: 600px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; }
  .service-card img { height: 180px; }
  .client-logos { grid-template-columns: repeat(4, 1fr); }
  .module-body { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .product-section, .company-section, .services-section, .clients-section, .contact-section { padding: 5rem 0; }
  .section-heading { margin-top: 5rem; }
  .feature-grid, .trial-feature-grid { grid-template-columns: 1fr; }
  .company-story { margin-top: 4rem; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 575.98px) {
  .navbar { min-height: 74px; }
  .hero { margin-top: 74px; }
  .hero-slide, .hero-content { min-height: 600px; }
  .hero-slide-management { background-position: 38% center; }
  .hero-slide-trials { background-position: 22% center; }
  .hero-copy { width: 100%; padding: 3rem .2rem; }
  .hero-copy > p:not(.eyebrow) { font-size: 1.04rem; }
  .intro { padding: 3.5rem 0; }
  .intro-card { align-items: flex-start; padding: 1.25rem; }
  .intro-card img { width: 76px; height: 76px; }
  .product-screen { padding: 1rem; }
  .service-card { display: flex; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 1.35rem; }
  .testimonial-carousel { min-height: 470px; padding: 0 1.7rem; }
  .testimonial-carousel .carousel-inner { min-height: 470px; }
  .testimonial { min-height: 450px; padding-top: 1rem; }
  .site-footer .container { flex-wrap: wrap; }
  .site-footer img { width: 180px; }
  .site-footer p { width: 100%; order: 3; }
}
