:root {
  font-family: 'DM Sans', sans-serif;
  color: #142d3c;
  background: #f5f7f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #102b3a;
  --muted: #6c7f89;
  --teal: #08748a;
  --deep-teal: #063d56;
  --yellow: #f6ca3b;
  --line: #dce6e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f7f9f9; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.site-shell { overflow: hidden; }
.container { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }

.site-header { height: 78px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(12, 56, 74, .08); position: absolute; z-index: 5; top: 0; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 1.5px solid #08748a; border-radius: 50%; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font: 700 24px 'Manrope', sans-serif; letter-spacing: -1.3px; color: #12384a; }
.brand-copy small { margin-top: 5px; font-size: 8px; color: #83959c; text-transform: uppercase; letter-spacing: 1.35px; }
.main-nav { display: flex; align-items: center; gap: 33px; font-size: 12px; font-weight: 700; color: #496773; text-transform: uppercase; letter-spacing: .75px; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 8px; color: var(--teal) !important; }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); }

.hero { min-height: 690px; position: relative; display: flex; align-items: center; color: #fff; background: #063b56; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 6s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(115deg, rgba(6,59,86,.92) 0%, rgba(7,95,122,.82) 48%, rgba(8,116,138,.72) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.33) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.33) 1px, transparent 1px); background-size: 55px 55px; mask-image: linear-gradient(90deg, black, transparent 83%); -webkit-mask-image: linear-gradient(90deg, black, transparent 83%); }
.hero-dots { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: transparent; cursor: pointer; padding: 0; transition: background .3s ease, border-color .3s ease; }
.hero-dot.is-active { background: var(--yellow); border-color: var(--yellow); }
.hero::after { content: ''; position: absolute; right: -100px; top: 90px; width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 105px rgba(255,255,255,.02); }
.hero-content { position: relative; z-index: 1; padding-top: 65px; padding-bottom: 80px; max-width: 1160px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 30px; height: 2px; background: currentColor; }
.eyebrow.light { color: #8ed6d5; }
.hero h1 { margin: 26px 0 19px; font: 800 clamp(45px, 6.2vw, 78px)/1.04 'Manrope', sans-serif; letter-spacing: -4px; }
.hero h1 em, .contact-card h2 em { color: var(--yellow); font-style: normal; }
.hero-description { max-width: 505px; margin: 0; color: rgba(255,255,255,.79); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 22px; border-radius: 2px; font-size: 14px; font-weight: 700; letter-spacing: .3px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; border: none; cursor: pointer; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.button-primary { background: var(--yellow); color: #17394a; }

.button-outline { color: #5a5858; border: 1px solid rgba(255,255,255,.4); }
.button-outline:hover { background: var(--yellow); color: var(--deep-teal); }

.button-yellow { color: #12384a; background: var(--yellow); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.light-link { color: #fff; border-color: rgba(255,255,255,.45); }
.dark-link { color: var(--teal); }
.hero-proof { display: flex; align-items: center; gap: 9px; margin-top: 69px; color: rgba(255,255,255,.68); font-size: 14px; }
.hero-proof svg { color: var(--yellow); }
.hero-side-note { position: absolute; right: 32px; bottom: 32px; color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: 2px; writing-mode: vertical-rl; display: flex; gap: 14px; align-items: center; }
.hero-side-note span { height: 40px; width: 1px; background: var(--yellow); }
.hero-orbit { position: absolute; z-index: 1; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 8px rgba(246,202,59,.15); }
.orbit-one { right: 30%; top: 25%; }
.orbit-two { right: 17%; bottom: 24%; width: 6px; height: 6px; background: #76d2cd; box-shadow: none; }

.intro-section { padding: 112px 0 118px; background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
h2 { margin: 19px 0 0; font: 700 clamp(32px, 4vw, 48px)/1.1 'Manrope', sans-serif; letter-spacing: -2.2px; color: var(--ink); }
h2 strong { color: var(--teal); font-weight: 700; }
.intro-copy { padding-top: 31px; max-width: 510px; }
.intro-copy p, .erp-copy > p { color: #637781; font-size: 15px; line-height: 1.75; margin: 0 0 17px; }
.intro-copy strong { color: var(--ink); }
.intro-copy .text-link { margin-top: 16px; }

.erp-section { padding: 108px 0; background: #f2f5f5; color: #fff; position: relative; overflow: hidden; }
.erp-section:before { content: 'ERP+'; position: absolute; right: -20px; top: 32px; color: rgba(255,255,255,.025); font: 800 200px 'Manrope'; letter-spacing: -20px; }
.erp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 92px; align-items: center; }
.erp-visual { position: relative; min-height: 390px; display: flex; align-items: center; justify-content: center; }
.erp-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(20,183,184,.18); filter: blur(5px); }

.erp-panel { position: relative; width: min(610px, 100%); aspect-ratio: 15 / 10; overflow: hidden; background: #f8fbfb url('../fondos/FONDO ERP-PLUSv2.jpg') center / cover; color: var(--ink); border-radius: 6px; box-shadow: 25px 30px 65px rgba(0,0,0,.24); transform: perspective(900px) rotateY(0deg) rotateX(0deg); }

.erp-panel > * { display: none; }
.panel-top { display: flex; align-items: center; justify-content: space-between; height: 39px; padding: 0 15px; color: #71858c; background: #edf3f3; font-size: 8px; letter-spacing: .4px; }
.panel-dots { display: flex; gap: 4px; }
.panel-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #c2d5d5; }
.panel-dots i:first-child { background: #f2c553; }
.panel-content { display: grid; grid-template-columns: 42px 1fr; min-height: 238px; }
.panel-sidebar { display: flex; flex-direction: column; align-items: center; gap: 17px; padding-top: 20px; color: #a4b8ba; background: #f0f6f5; }
.panel-sidebar span.active { color: #087b8d; }
.panel-main { padding: 25px 23px; }
.panel-title { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }
.panel-title span { color: #a6babe; letter-spacing: 2px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 23px; }
.metrics div { border: 1px solid #e2ebeb; padding: 12px; }
.metrics small { display: block; color: #9aaeb1; font-size: 8px; }
.metrics b { display: block; margin: 8px 0 4px; font-size: 17px; }
.metrics em { color: #27a88c; font-size: 8px; font-style: normal; }
.chart { position: relative; display: flex; align-items: end; gap: 17px; height: 74px; padding: 17px 6px 0; margin-top: 21px; border-bottom: 1px solid #d7e3e4; }
.chart:before { content: ''; position: absolute; left: 0; right: 0; top: 17px; border-top: 1px dashed #dbe6e6; box-shadow: 0 19px #dbe6e6, 0 38px #dbe6e6; }
.chart i { position: relative; z-index: 1; width: 18px; background: #67c9c4; border-radius: 3px 3px 0 0; }
.chart i:nth-child(1) { height: 27%; }
.chart i:nth-child(2) { height: 43%; }
.chart i:nth-child(3) { height: 32%; }
.chart i:nth-child(4) { height: 58%; }
.chart i:nth-child(5) { height: 52%; }
.chart i:nth-child(6) { height: 72%; }
.chart i:nth-child(7) { height: 95%; background: #087b8d; }
.floating-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: #204a58; background: #fff; border-radius: 3px; box-shadow: 0 10px 22px rgba(0,0,0,.16); font-size: 10px; font-weight: 700; }
.floating-tag svg { color: #0a8b8d; }
.tag-top { top: 25px; right: 0; }
.tag-bottom { bottom: 27px; left: 0; }

.erp-label { margin-top: 25px; color: #524f4f; font: 500 22px 'Manrope'; letter-spacing: 4px; }
.erp-label strong { color: var(--yellow); }

.erp-copy h2 { max-width: 460px; margin-top: 15px; color: #4d4545; }
.erp-copy > p { max-width: 480px; margin-top: 23px; color: rgba(68, 63, 63, 0.67); }
.erp-copy ul { list-style: none; padding: 0; margin: 26px 0 34px; display: flex; flex-direction: column; gap: 12px; color: rgba(124, 112, 112, 0.86); font-size: 13px; }
.erp-copy li { display: flex; align-items: center; gap: 11px; }
.erp-copy li span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--deep-teal); background: var(--yellow); }

.services-section { padding: 116px 0; background: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 55px; }
.section-heading > p { width: 315px; margin: 0 0 4px; color: #74858b; font-size: 14px; line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 232px; position: relative; padding: 27px 27px 25px; background: #fff; border: 1px solid #e5edef; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor: pointer; }
.service-card:hover { transform: translateY(-6px); border-color: #bbd9dc; box-shadow: 0 16px 35px rgba(22,79,91,.09); }
.service-top { display: flex; justify-content: space-between; align-items: start; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--teal); background: #e6f4f3; border-radius: 50%; }
.service-number { color: #b4c3c6; font: 700 11px 'Manrope'; }
.service-card h3 { margin: 24px 0 10px; color: var(--ink); font: 700 19px 'Manrope'; letter-spacing: -.7px; }
.service-card p { max-width: 260px; margin: 0; color: #74858b; font-size: 13px; line-height: 1.6; }
.service-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--teal); font-size: 12px; font-weight: 700; transition: gap .2s ease; }
.service-card:hover .service-more { gap: 11px; }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,29,40,.85); backdrop-filter: blur(4px); }
.modal-overlay.is-open { display: flex; animation: fadeIn .25s ease; }
.modal { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.3); animation: slideUp .35s ease; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-image { height: 200px; background-size: cover; background-position: center; position: relative; }
.modal-image-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,59,86,.15), rgba(6,59,86,.65)); }
.modal-number { position: absolute; bottom: 16px; left: 24px; color: var(--yellow); font: 700 14px 'Manrope'; letter-spacing: 1px; }
.modal-body { padding: 28px 30px 32px; }
.modal-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--teal); background: #e6f4f3; border-radius: 50%; margin-bottom: 16px; }
.modal-body h3 { margin: 0 0 14px; color: var(--ink); font: 700 24px 'Manrope'; letter-spacing: -.8px; }
.modal-desc { margin: 0 0 22px; color: #637781; font-size: 14px; line-height: 1.7; }
.modal-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.modal-features li { display: flex; align-items: center; gap: 11px; color: #3d5560; font-size: 13.5px; line-height: 1.5; }
.modal-features li span { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; color: var(--deep-teal); background: var(--yellow); }
.modal-cta { width: 100%; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.values-section { padding: 110px 0; background: #f5f8f8; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.values-list { border-top: 1px solid var(--line); }
.values-list > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.values-list b { grid-row: span 2; color: var(--yellow); font: 700 13px 'Manrope'; }
.values-list span { color: var(--ink); font: 700 16px 'Manrope'; }
.values-list p { margin: 6px 0 0; color: #788b91; font-size: 13px; line-height: 1.5; }

.clients-section { padding: 108px 0; background: #fff; }
.clients-heading { text-align: center; }
.clients-heading .eyebrow { justify-content: center; }
.clients-carousel { max-width: 940px; margin: 50px auto 0; }
.clients-viewport { overflow: hidden; }
.clients-track { display: flex; transition: transform .45s ease; }
.clients-slide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 100%; }
.client-logo { display: grid; place-items: center; height: 132px; padding: 24px; background: #fff; border: 1px solid #e1eaec; border-radius: 5px; }
.client-logo img { display: block; max-width: 100%; max-height: 70px; object-fit: contain; }
.clients-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.clients-control { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--teal); background: #fff; border: 1px solid #cde0e3; border-radius: 50%; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.clients-control:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.clients-position { min-width: 34px; color: #6c7f89; font: 700 11px 'Manrope'; text-align: center; }

.contact-section { padding: 95px 0; background: #202529 url('../fondos/map-image.png') center / contain no-repeat; }
.contact-card { display: grid; gap: 26px; }
.contact-heading { text-align: center; }
.contact-card h2 { margin: 0; color: #fff; }
.contact-action { width: min(100%, 900px); margin: 0 auto; }
.contact-map { overflow: hidden; aspect-ratio: 16 / 7; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; box-shadow: 0 20px 45px rgba(2,27,39,.24); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-link { display: table; margin: 15px auto 0; }

.contact-form { max-width: 680px; margin: 50px auto 0; padding: 40px; background: #fff; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #496773; text-transform: uppercase; letter-spacing: .5px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #dce6e8; border-radius: 3px; font: 400 14px 'DM Sans', sans-serif; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,116,138,.12); }
.form-field textarea { resize: vertical; min-height: 110px; }
.contact-form .button { width: 100%; margin-top: 6px; }

.form-success { display: flex; align-items: flex-start; gap: 14px; max-width: 680px; margin: 40px auto 0; padding: 22px 26px; background: rgba(39,168,140,.12); border: 1px solid #27a88c; border-radius: 5px; color: #1a7a64; }
.form-success svg { color: #27a88c; flex-shrink: 0; margin-top: 2px; }
.form-success strong { display: block; font-size: 15px; margin-bottom: 4px; }
.form-success p { margin: 0; font-size: 13px; line-height: 1.5; }
.form-errors { max-width: 680px; margin: 40px auto 0; padding: 22px 26px; background: #fef5f0; border: 1px solid #e8a87c; border-radius: 5px; color: #c46a3a; }
.form-errors svg { margin-bottom: 8px; }
.form-errors ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }

.contact-info { display: flex; justify-content: center; gap: 40px; margin-top: 45px; flex-wrap: wrap; }
.contact-info-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 13px; }
.contact-info-item svg { color: var(--yellow); }

.site-footer { background: #062d40; color: #fff; padding: 29px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand .brand-mark { color: #77cbca; border-color: #77cbca; width: 35px; height: 35px; }
.footer-brand .brand-copy strong { color: #fff; font-size: 20px; }
.footer-brand .brand-copy small { color: #8ba7ad; }
.footer-inner p, .footer-inner > span { color: #8ba7ad; font-size: 10px; }
.footer-inner > span { letter-spacing: .4px; }
.whatsapp-button { position: fixed; z-index: 20; right: 26px; bottom: 26px; display: grid; place-items: center; width: 56px; height: 56px; color: #fff; background: #25d366; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 8px 20px rgba(4,43,58,.25); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-button:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(4,43,58,.32); }

@media (max-width: 800px) {
  .container { width: min(100% - 40px, 600px); }
  .site-header { height: 70px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 62px; padding: 20px; align-items: stretch; flex-direction: column; gap: 20px; background: #fff; box-shadow: 0 14px 30px rgba(4,43,58,.12); }
  .main-nav.is-open { display: flex; }
  .nav-cta { padding-top: 10px; border-top: 1px solid var(--line); }
  .hero { min-height: 660px; }
  .hero h1 { letter-spacing: -2.5px; }
  .hero-description { max-width: 450px; }
  .hero-side-note { display: none; }
  .hero-dots { bottom: 20px; }
  .modal { width: 100%; }
  .modal-body { padding: 22px 20px 26px; }
  .intro-grid, .erp-grid, .values-grid { grid-template-columns: 1fr; gap: 42px; }
  .intro-section, .services-section, .values-section, .clients-section { padding: 78px 0; }
  .intro-copy { padding-top: 0; }
  .erp-section { padding: 78px 0; }
  .erp-visual { order: 2; min-height: 340px; }
  .erp-copy { order: 1; }
  .erp-section:before { font-size: 120px; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading > p { margin-top: 22px; width: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .clients-carousel { margin-top: 38px; }
  .contact-map { aspect-ratio: 16 / 9; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; margin: 0; }
  .whatsapp-button { right: 18px; bottom: 18px; }
}
@media (max-width: 510px) {
  .container { width: calc(100% - 32px); }
  .brand-copy strong { font-size: 21px; }
  .hero { min-height: 680px; }
  .hero h1 { font-size: 45px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; margin-top: 31px; }
  .hero-proof { margin-top: 47px; max-width: 270px; line-height: 1.5; }
  .intro-section, .services-section, .values-section, .clients-section { padding: 67px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .clients-slide { gap: 8px; }
  .client-logo { height: 94px; padding: 12px; }
  .client-logo img { max-height: 46px; }
  .service-card { min-height: 210px; }
  .erp-panel { transform: none; }
  .erp-visual { min-height: 280px; }
  .floating-tag { font-size: 9px; }
  .tag-top { right: -2px; top: 0; }
  .tag-bottom { bottom: 5px; left: -2px; }
  .panel-content { min-height: 210px; }
  .panel-main { padding: 18px 13px; }
  .chart { gap: 8px; }
  .chart i { width: 15px; }
  .contact-section { padding: 70px 0; }
  .contact-card h2 { font-size: 36px; }
  .contact-form { padding: 22px 18px; margin-top: 35px; }
  .contact-info { gap: 20px; margin-top: 30px; }
  .footer-inner { gap: 18px; }
  .footer-inner > span { font-size: 9px; }
}
