/* ============================================================
   RETCO — Landing page
   ============================================================ */

:root {
  --ink: #111214;
  --ink-soft: #3a3d42;
  --muted: #6b7076;
  --line: #e3e1dc;
  --paper: #faf9f6;
  --paper-2: #f2f0ea;
  --white: #ffffff;
  --accent: #d81f26;
  --accent-dark: #b0161c;
  --accent-soft: #fdecec;
  --green: #1e7b3f;
  --green-dark: #155c2e;
  --green-soft: #e9f4ec;
  --dark: #14161a;
  --dark-2: #1c1f24;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 12px 32px -12px rgba(17, 18, 20, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.logo-img { height: 46px; width: auto; }
.logo-footer { height: 42px; }
.brand-mark { color: var(--accent); display: block; }
.brand-text {
  font-family: var(--display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: .06em; color: var(--ink); line-height: 1.05;
  display: flex; flex-direction: column;
}
.brand-text small {
  font-family: var(--font); font-size: .6rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s ease;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 10px 20px !important; border-radius: 999px;
  font-weight: 600 !important; transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--white); border-radius: 11px; cursor: pointer;
  padding: 0; place-items: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(30, 123, 63, .12), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-glow {
  position: absolute; inset: auto -10% -60% 40%;
  height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 123, 63, .16), transparent 68%);
  filter: blur(40px); pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-dark);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 123, 63, .16);
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em;
  background: currentColor; opacity: .22; border-radius: 2px;
}

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-size: .94rem; font-weight: 600; font-family: var(--font);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(216, 31, 38, .7); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfccc4; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .6); transform: translateY(-2px); }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px;
  font-size: .78rem; font-weight: 500; color: var(--muted);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1.5px rgba(30, 123, 63, .45);
}

/* Hero panel */
.hero-panel { position: relative; }

.panel-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-label { font-size: .78rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.panel-tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); background: var(--green-soft);
  padding: 4px 9px; border-radius: 999px;
}
.panel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px dashed #eceae4;
  font-size: .86rem;
}
.panel-row span { color: var(--muted); }
.panel-row b { color: var(--ink); font-weight: 600; font-size: .88rem; }
.panel-bar { height: 6px; border-radius: 99px; background: var(--paper-2); margin: 18px 0 10px; overflow: hidden; }
.panel-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), #4aa96c); }
.panel-foot { font-size: .74rem; color: var(--muted); }

.panel-chip {
  position: absolute; background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(17, 18, 20, .7);
  white-space: nowrap;
}
.chip-a { top: -16px; right: 12px; }
.chip-b { bottom: -14px; left: -10px; background: var(--green); }

/* ---------- Stats ---------- */

.stats { background: var(--dark); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b {
  font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.1;
}
.stat span { font-size: .78rem; color: #9ba0a8; letter-spacing: .04em; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 24px; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--dark); color: #b9bec6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #9ba0a8; }
.section-dark .eyebrow { color: #6fcf8f; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-sub { margin-top: 16px; font-size: 1.02rem; color: var(--muted); max-width: 62ch; }

/* ---------- Product cards ---------- */

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6d2c9; }
a.card { color: inherit; text-decoration: none; }
.card-link {
  font-size: .78rem; font-weight: 600; color: var(--green-dark);
  margin-top: 4px; transition: transform .2s ease;
}
a.card:hover .card-link { transform: translateX(3px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
  margin-bottom: 4px;
}
.card-icon svg { width: 22px; height: 22px; }
.card p { font-size: .92rem; color: var(--muted); }
.card-accent { background: var(--ink); border-color: var(--ink); }
.card-accent h3 { color: #fff; }
.card-accent p { color: #a9aeb6; }
.card-accent .card-icon { background: rgba(30, 123, 63, .22); color: #6fcf8f; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tags li {
  font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--paper-2);
  padding: 4px 9px; border-radius: 6px;
}
.card-accent .tags li { background: rgba(255, 255, 255, .09); color: #d3d7dd; }

/* ---------- Tecnología ---------- */

.tech-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}

.tech-list { display: grid; gap: 22px; margin-top: 36px; }
.tech-item { display: flex; gap: 18px; align-items: flex-start; }
.tech-num {
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  color: #6fcf8f; border: 1px solid rgba(111, 207, 143, .35);
  border-radius: 8px; padding: 4px 8px; flex: none; margin-top: 2px;
}
.tech-item h3 { margin-bottom: 4px; }
.tech-item p { font-size: .92rem; color: #9ba0a8; }

.tech-visual { display: grid; gap: 8px; }
.layer {
  border-radius: 12px; padding: 16px 20px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .25s ease;
}
.layer::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .35; }
.layer:hover { transform: translateX(6px); }
.layer-1 { background: linear-gradient(90deg, #3b4048, #2a2e35); }
.layer-2 { background: linear-gradient(90deg, #4a4038, #332c26); }
.layer-3 { background: linear-gradient(90deg, #1e7b3f, #155c2e); }
.layer-4 { background: linear-gradient(90deg, #2f5d6b, #22454f); }
.layer-5 { background: linear-gradient(90deg, #4d4a42, #35332d); }
.layer-base {
  border-radius: 12px; padding: 16px 20px; margin-top: 6px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: #7d838c; border: 1px dashed rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: space-between;
}

/* ---------- Sectores ---------- */

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sector { background: var(--white); padding: 28px 24px; transition: background .2s ease; }
.sector:hover { background: var(--paper); }
.sector h3 { margin-bottom: 8px; }
.sector p { font-size: .9rem; color: var(--muted); }

/* ---------- Proceso ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--display); font-size: .9rem; font-weight: 700;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: .9rem; color: var(--muted); }

/* ---------- Certificaciones ---------- */

.cert-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.cert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cert-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 2px;
}
.cert-list b { font-family: var(--display); font-size: 1rem; color: var(--ink); }
.cert-list span { font-size: .78rem; color: var(--muted); }

/* ---------- Quote ---------- */

.quote-section { padding: clamp(56px, 7vw, 88px) 0; background: var(--green); color: #fff; }
.quote-section blockquote { margin: 0; max-width: 900px; }
.quote-section p {
  font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500; line-height: 1.42; letter-spacing: -.015em; color: #fff;
}
.quote-section footer { margin-top: 26px; display: flex; flex-direction: column; gap: 1px; }
.quote-section footer b { font-size: .92rem; font-weight: 600; }
.quote-section footer span { font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

.contact-info { display: grid; gap: 16px; margin-top: 34px; }
.contact-info li { display: grid; gap: 2px; }
.contact-info li > span:first-child {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #7d838c;
}
.contact-info li > span:last-child, .contact-info a { color: #fff; font-size: .95rem; font-weight: 500; }
.contact-info a:hover { color: #6fcf8f; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px);
}
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9ba0a8; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: .93rem; color: #fff;
  background: #101216; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #5e646d; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 123, 63, .22);
}
.field input:user-invalid, .field input.is-invalid { border-color: #e4572e; }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: .78rem; color: #7d838c; }
.form-note.ok { color: #6ee7a8; }
.form-note.err { color: #f08a5d; }

/* ---------- Footer ---------- */

.site-footer { background: #0e1013; color: #8b9199; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.brand-footer .logo-img { height: 40px; }
.footer-note { font-size: .86rem; margin-top: 14px; max-width: 30ch; }
.footer-grid nav { display: grid; gap: 9px; align-content: start; }
.footer-grid h4 { color: #fff; margin-bottom: 4px; }
.footer-grid nav a { font-size: .86rem; transition: color .2s ease; }
.footer-grid nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem; color: #6b7076;
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid, .tech-grid, .cert-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .burger { display: grid; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: 0 24px 40px -24px rgba(17, 18, 20, .3);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 14px; text-align: center; border-bottom: none !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .stat + .stat { border-left: none; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 16px; }

  .cards, .sectors, .steps, .cert-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .panel-chip { display: none; }
}
