:root {
    --petroleo: #0D2B3E;
    --petroleo-oscuro: #071C2B;
    --azul: #007BFF;
    --azul-claro: #50A7FF;
    --grafito: #1A1F26;
    --gris: #667085;
    --gris-claro: #E6E8EB;
    --gris-fondo: #F5F7FA;
    --blanco: #FFFFFF;
    --verde-wa: #25D366;
    --error: #B42318;
    --success: #067647;
    --shadow: 0 20px 55px rgba(13, 43, 62, 0.12);
    --radius: 18px;
    --container: 1180px;
    --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
    margin: 0;
    color: var(--grafito);
    background: var(--blanco);
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 5000;
    padding: 12px 18px;
    background: var(--blanco);
    color: var(--petroleo);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-dark { color: var(--blanco); background: var(--petroleo-oscuro); }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-height);
    z-index: 2000;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(13, 43, 62, .08);
    backdrop-filter: blur(14px);
    transition: box-shadow .2s ease, height .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 32px rgba(7, 28, 43, .1); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 1 255px; display: block; }
.brand img { width: 255px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.button) { text-decoration: none; font-size: .92rem; font-weight: 600; color: #334155; position: relative; }
.main-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--azul); transition: right .2s ease; }
.main-nav > a:hover::after, .main-nav > a.is-active::after { right: 0; }
.main-nav > a:hover, .main-nav > a.is-active { color: var(--azul); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; border-radius: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--petroleo); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--azul);
    border-radius: 11px;
    background: var(--azul);
    color: var(--blanco);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 123, 255, .28); background: #006DE0; border-color: #006DE0; }
.button:focus-visible, .main-nav a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 123, 255, .32); outline-offset: 3px; }
.button-small { min-height: 42px; padding: 10px 18px; font-size: .88rem; }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.55); }
.button-outline-light:hover { background: rgba(255,255,255,.11); border-color: var(--blanco); box-shadow: none; }
.button-dark { background: var(--petroleo); border-color: var(--petroleo); }
.button-dark:hover { background: var(--petroleo-oscuro); border-color: var(--petroleo-oscuro); box-shadow: 0 12px 28px rgba(13,43,62,.2); }

.hero { min-height: 760px; padding: calc(var(--header-height) + 92px) 0 92px; overflow: hidden; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 40%, rgba(0,123,255,.23), transparent 30%), linear-gradient(135deg, #071C2B 0%, #0D2B3E 62%, #0B3754 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .82fr); align-items: center; gap: 48px; }
.hero h1 { margin: 12px 0 20px; font-size: clamp(3rem, 5.6vw, 5.7rem); line-height: 1.02; letter-spacing: -.045em; max-width: 820px; }
.hero-lead { max-width: 690px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.eyebrow { margin: 0; color: var(--azul-claro); text-transform: uppercase; letter-spacing: .19em; font-size: .75rem; font-weight: 700; }
.eyebrow-dark { color: var(--azul); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; color: rgba(255,255,255,.66); font-size: .86rem; font-weight: 600; }
.hero-points span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--azul); vertical-align: 1px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.isotype-orbit { position: relative; width: min(360px, 78vw); aspect-ratio: 0.86; display: grid; place-items: center; }
.isotype-orbit img { position: relative; width: auto; max-width: 70%; max-height: 88%; height: auto; filter: drop-shadow(0 32px 55px rgba(0,0,0,.35)); z-index: 2; }
.orbit { position: absolute; inset: 8%; border: 1px solid rgba(80,167,255,.28); border-radius: 38% 62% 48% 52%; transform: rotate(12deg); }
.orbit-two { inset: 21%; transform: rotate(-28deg); border-color: rgba(255,255,255,.15); }
.hero-shape { position: absolute; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); }
.hero-shape-one { width: 330px; height: 330px; left: -160px; top: 200px; }
.hero-shape-two { width: 180px; height: 180px; right: 8%; bottom: -80px; border-color: rgba(0,123,255,.24); }

.split-grid, .demo-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(46px, 7vw, 92px); }
.section-copy h2, .section-heading h2 { margin: 10px 0 22px; color: var(--petroleo); font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; }
.section-copy p { color: #475467; margin: 0 0 17px; }
.section-copy blockquote { margin: 30px 0 0; padding: 18px 22px; border-left: 4px solid var(--azul); background: var(--gris-fondo); border-radius: 0 12px 12px 0; color: var(--petroleo); font-weight: 600; }
.about-visual { display: flex; justify-content: center; }
.about-card { position: relative; width: min(340px, 100%); aspect-ratio: 0.9; padding: 34px 30px 84px; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(145deg, var(--petroleo-oscuro), var(--petroleo)); box-shadow: var(--shadow); overflow: hidden; }
.about-card::before { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(80,167,255,.2); transform: rotate(45deg); }
.about-card img { width: auto; max-width: 66%; max-height: 76%; height: auto; position: relative; filter: drop-shadow(0 24px 35px rgba(0,0,0,.35)); }
.about-card-label { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(7,28,43,.72); color: var(--blanco); backdrop-filter: blur(8px); }
.about-card-label strong, .about-card-label span { display: block; }
.about-card-label span { margin-top: 2px; color: rgba(255,255,255,.7); font-size: .78rem; }

.services-section { background: var(--gris-fondo); }
.section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-heading p:last-child { color: var(--gris); font-size: 1.02rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; min-height: 100%; padding: 30px; border: 1px solid #E3E7EC; border-radius: var(--radius); background: var(--blanco); box-shadow: 0 10px 30px rgba(13,43,62,.05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(0,123,255,.3); box-shadow: var(--shadow); }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; background: rgba(0,123,255,.1); }
.service-icon svg { width: 30px; fill: var(--azul); }
.service-card h3 { margin: 24px 0 12px; color: var(--petroleo); font-size: 1.3rem; line-height: 1.25; }
.service-card p { margin: 0 0 20px; color: var(--gris); }
.service-card ul { margin: auto 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid #EEF0F3; color: #475467; font-size: .92rem; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--azul); }
.section-action { margin-top: 38px; text-align: center; }

.demo-section { background: linear-gradient(135deg, var(--petroleo-oscuro), var(--petroleo)); overflow: hidden; }
.demo-section .section-copy h2 { color: var(--blanco); }
.demo-section .section-copy p { color: rgba(255,255,255,.76); }
.demo-note { padding-left: 16px; border-left: 3px solid var(--azul); font-size: .9rem; }
.demo-browser { border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: var(--blanco); box-shadow: 0 32px 70px rgba(0,0,0,.3); overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.browser-top { min-height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #E9EDF2; color: #667085; font-size: .66rem; }
.browser-top span { width: 9px; height: 9px; border-radius: 50%; background: #A7AFBA; }
.browser-top strong { margin-left: 8px; font-size: .68rem; font-weight: 600; }
.browser-content { padding: 34px; color: var(--grafito); background: linear-gradient(180deg, #fff, #F5F8FB); }
.demo-preview-head span { color: var(--azul); font-size: .68rem; font-weight: 700; letter-spacing: .13em; }
.demo-preview-head h3 { max-width: 410px; margin: 9px 0 24px; color: var(--petroleo); font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.2; }
.demo-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-profile-grid > div { padding: 18px 12px; border: 1px solid #E2E8F0; border-radius: 12px; background: var(--blanco); }
.demo-profile-grid b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(0,123,255,.1); color: var(--azul); }
.demo-profile-grid strong, .demo-profile-grid small { display: block; }
.demo-profile-grid strong { margin-top: 12px; color: var(--petroleo); font-size: .82rem; }
.demo-profile-grid small { color: var(--gris); font-size: .66rem; }

.contact-section { background: var(--blanco); }
.contact-grid { align-items: start; }
.contact-methods { display: grid; gap: 13px; margin-top: 30px; }
.contact-methods a { display: flex; align-items: center; gap: 14px; max-width: 430px; padding: 15px 17px; border: 1px solid var(--gris-claro); border-radius: 13px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.contact-methods a:hover { border-color: rgba(0,123,255,.45); transform: translateY(-2px); }
.contact-methods a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(0,123,255,.1); color: var(--azul); font-weight: 700; }
.contact-methods small, .contact-methods strong { display: block; }
.contact-methods small { color: var(--gris); }
.contact-methods strong { color: var(--petroleo); }
.contact-card { padding: clamp(24px, 4vw, 38px); border: 1px solid #E3E7EC; border-radius: 22px; background: var(--blanco); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .captcha-box label { display: block; margin-bottom: 7px; color: #344054; font-size: .87rem; font-weight: 600; }
.field input, .field textarea, .captcha-box input { width: 100%; border: 1px solid #CDD5DF; border-radius: 10px; background: var(--blanco); color: var(--grafito); transition: border-color .2s ease, box-shadow .2s ease; }
.field input, .captcha-box input { min-height: 47px; padding: 10px 13px; }
.field textarea { min-height: 132px; padding: 12px 13px; resize: vertical; }
.field input:focus, .field textarea:focus, .captcha-box input:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(0,123,255,.1); }
.field [aria-invalid="true"], .captcha-box [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; min-height: 18px; margin-top: 5px; color: var(--error); font-size: .75rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.captcha-box { margin: 4px 0 0; padding: 18px; border: 1px solid #DCE2E8; border-radius: 13px; background: var(--gris-fondo); }
.captcha-box legend { padding: 0 7px; color: var(--petroleo); font-size: .85rem; font-weight: 700; }
.captcha-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; }
.captcha-row p { margin: 0 0 10px; color: var(--petroleo); font-size: 1.05rem; font-weight: 700; }
.captcha-refresh { margin-bottom: 23px; padding: 10px 12px; border: 0; background: transparent; color: var(--azul); font-size: .8rem; font-weight: 700; cursor: pointer; }
.form-required { margin: 12px 0; color: var(--gris); font-size: .76rem; }
.form-status { margin: 0 0 14px; padding: 0; border-radius: 9px; font-size: .88rem; }
.form-status.is-error, .form-status.is-success { padding: 12px 14px; }
.form-status.is-error { color: var(--error); background: #FEF3F2; border: 1px solid #FECDCA; }
.form-status.is-success { color: var(--success); background: #ECFDF3; border: 1px solid #ABEFC6; }
.form-submit { width: 100%; }
.form-submit:disabled, .captcha-refresh:disabled { cursor: wait; opacity: .65; transform: none; }

.site-footer { padding: 70px 0 24px; color: rgba(255,255,255,.72); background: var(--grafito); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 60px; }
.footer-brand img { width: 245px; height: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: .9rem; }
.site-footer h2 { margin: 10px 0 18px; color: var(--blanco); font-size: .95rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: rgba(255,255,255,.73); text-decoration: none; font-size: .87rem; }
.site-footer a:hover { color: var(--azul-claro); }
.footer-bottom { margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-bottom p { margin: 0; }

.whatsapp-floating { position: fixed; right: 22px; bottom: 22px; z-index: 1700; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 17px 10px 14px; border-radius: 999px; background: var(--verde-wa); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 14px 34px rgba(13,43,62,.25); transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-floating:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13,43,62,.32); }
.whatsapp-floating svg { width: 30px; fill: currentColor; }
.whatsapp-floating span { font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.legal-main { min-height: 70vh; padding: calc(var(--header-height) + 70px) 0 90px; background: var(--gris-fondo); }
.legal-content { max-width: 860px; padding: clamp(28px, 5vw, 56px); border: 1px solid #E3E7EC; border-radius: 22px; background: var(--blanco); box-shadow: var(--shadow); }
.legal-content h1 { margin: 8px 0 28px; color: var(--petroleo); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.08; }
.legal-content h2 { margin: 32px 0 8px; color: var(--petroleo); font-size: 1.2rem; }
.legal-content p { color: #475467; }
.legal-content .button { margin-top: 22px; }

@media (max-width: 980px) {
    :root { --header-height: 70px; }
    .container { width: min(var(--container), calc(100% - 32px)); }
    .brand { flex-basis: 215px; }
    .brand img { width: 215px; }
    .menu-toggle { display: block; }
    .main-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 0; padding: 18px 20px 26px; background: var(--blanco); border-bottom: 1px solid var(--gris-claro); box-shadow: 0 18px 35px rgba(7,28,43,.13); transform: translateY(-130%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
    .main-nav.is-open { transform: translateY(0); visibility: visible; }
    .main-nav > a:not(.button) { padding: 14px 8px; border-bottom: 1px solid #EEF0F3; }
    .main-nav > a:not(.button)::after { display: none; }
    .main-nav .button { margin-top: 14px; }
    .hero { min-height: auto; padding-top: calc(var(--header-height) + 72px); }
    .hero-grid, .split-grid, .demo-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 40px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .hero-points { justify-content: center; }
    .hero-visual { max-width: 360px; margin: 0 auto; }
    .about-visual { order: 2; }
    .about-card { max-width: 340px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .demo-browser { transform: none; max-width: 680px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
}

@media (max-width: 680px) {
    .section { padding: 70px 0; }
    .hero { padding-bottom: 70px; }
    .hero h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
    .hero-actions { display: grid; }
    .hero-actions .button { width: 100%; }
    .hero-points { gap: 8px 14px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 25px; }
    .about-card { width: min(300px, 100%); padding: 28px 24px 76px; border-radius: 24px; }
    .demo-profile-grid { grid-template-columns: 1fr; }
    .browser-content { padding: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .captcha-row { grid-template-columns: 1fr; gap: 0; }
    .captcha-refresh { margin: 0; padding-left: 0; text-align: left; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand img { width: 220px; }
    .whatsapp-floating { right: 14px; bottom: 14px; width: 56px; padding: 13px; justify-content: center; }
    .whatsapp-floating span { display: none; }
    .whatsapp-floating svg { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
