:root {
  --green: #659b15;
  --green-dark: #3f6510;
  --smoke: #6b6b6b;
  --ink: #252525;
  --muted: #595959;
  --surface: #f5f5f5;
  --white: #fff;
  --border: #d9d9d9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.narrow { max-width: 740px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .65rem 1rem; color: #fff; background: var(--green-dark); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand img { width: 150px; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.15rem; margin: 0; padding: .5rem 0; list-style: none; }
.nav-list a { color: var(--ink); font-size: .94rem; font-weight: 700; text-decoration: none; }
.nav-list a:hover { color: var(--green); }
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0; background: linear-gradient(125deg, var(--surface) 0%, #fff 55%); }
.hero-grid, .payment-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.eyebrow { margin: 0 0 .55rem; color: var(--smoke); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--green-dark); line-height: 1.15; }
h1 { max-width: 9ch; margin: 0; font-size: clamp(2.65rem, 6vw, 5rem); }
h2 { max-width: 18ch; margin: 0 0 1.1rem; font-size: clamp(2rem, 4vw, 3rem); }
h3 { margin: 0 0 .75rem; font-size: 1.25rem; }
.hero-copy { min-width: 0; }
.hero-text { max-width: 47ch; margin: 1.25rem 0 1.75rem; color: var(--muted); font-size: 1.12rem; overflow-wrap: break-word; }
.hero-image-frame { position: relative; min-height: 320px; overflow: hidden; border-radius: 1.25rem; box-shadow: 0 20px 45px rgba(63,101,16,.2); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; animation: hero-image-fade 12s ease-in-out infinite; }
.hero-image--current { opacity: 1; }
.hero-image--alternate { animation-delay: -6s; object-fit: cover; object-position: 50% 50%; }
@keyframes hero-image-fade {
  0%, 41.666% { opacity: 1; }
  50%, 91.666% { opacity: 0; }
  100% { opacity: 1; }
}
.button { display: inline-block; padding: .8rem 1.15rem; border-radius: .35rem; color: #fff; background: var(--green-dark); font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: var(--green); }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section[id] { scroll-margin-top: 10rem; }
.section-tint { background: var(--surface); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.service-card { padding: 1.6rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--white); }
.service-card p { margin-bottom: 0; color: var(--muted); }
.service-number { display: block; margin-bottom: 1rem; color: var(--smoke); font-weight: 800; letter-spacing: .08em; }
.payment { background: linear-gradient(125deg, var(--green-dark), var(--green)); color: #fff; }
.payment h2 { color: #fff; }
.payment .eyebrow { color: #fff; }
.payment-rules { padding-left: 1.2rem; }
.qr-card { max-width: 310px; margin: 0 auto; padding: 1rem; border-radius: 1rem; color: var(--ink); background: #fff; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.qr-card img { width: 100%; border-radius: .55rem; }
.qr-card figcaption { padding: .85rem .4rem .1rem; font-size: .9rem; }
address { color: var(--muted); font-style: normal; }
.contact-form { padding: 1.5rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--white); }
fieldset { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 1rem; color: var(--green-dark); font-size: 1.15rem; font-weight: 700; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; margin-bottom: .5rem; padding: .7rem; border: 1px solid var(--border); border-radius: .3rem; background: #fff; }
button { padding: .75rem 1rem; border: 0; border-radius: .3rem; color: #fff; background: var(--green-dark); font-weight: 700; }
button:disabled, input:disabled, textarea:disabled { opacity: .65; cursor: not-allowed; }
.form-status { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.site-footer { padding: 2.5rem 0; color: #e4e8df; background: var(--green-dark); }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-content img { width: 112px; }
.footer-content p { margin: 0; font-size: .9rem; }
.site-footer a[href="https://nexarsistemas.com.ar"] { color: var(--white); }
.site-footer a[href="https://nexarsistemas.com.ar"]:hover { color: #e4e8df; }
.site-footer a[href="https://nexarsistemas.com.ar"]:focus-visible { outline-color: var(--white); }
.whatsapp-button { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 4; display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 50%; color: #fff; background: var(--green-dark); box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.whatsapp-button:hover { color: #fff; background: var(--green); }
.whatsapp-button svg { width: 2rem; height: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .header-content { align-items: flex-start; flex-direction: column; gap: .15rem; padding: .8rem 0; }
  .nav-list { justify-content: flex-start; gap: .25rem 1rem; padding-bottom: 0; }
  .hero-grid, .payment-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image-frame { min-height: 240px; }
  .service-grid { grid-template-columns: 1fr; }
  .whatsapp-button { right: 1rem; bottom: 1rem; }
  h1, h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; }
  .hero-image--current { opacity: 1; }
  .hero-image--alternate { opacity: 0; }
}
