:root {
  --brand: #f7b926;
  --brand-dark: #c8920f;
  --brand-soft: rgba(247, 185, 38, 0.12);
  --ink: #15161a;
  --ink-2: #2b2e34;
  --muted: #62666e;
  --line: #e4e5e8;
  --bg: #ffffff;
  --bg-alt: #f4f4f3;
  --graphite: #15161a;
  --graphite-2: #1d1f24;
  --steel: #33363d;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(15, 16, 20, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 16, 20, 0.28);
  --maxw: 1160px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Conthrax", "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; margin: 0; letter-spacing: -0.4px; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.kicker, .tag {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--brand-dark);
}

/* ---------- Header (yellow) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-text {
  font-family: var(--display); font-size: 18px; letter-spacing: 0.5px;
  color: #000; text-transform: none; line-height: 1;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; color: var(--ink); font-size: 15px; transition: opacity .2s; }
.nav a:hover { opacity: .65; }
.nav-cta {
  background: var(--graphite); color: #fff !important;
  padding: 10px 18px; border-radius: 7px; font-weight: 600 !important;
  border: 1px solid var(--graphite); transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #000; opacity: 1; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 7px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero (image banner) ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: 600px; display: flex; align-items: center; }
.hero-media {
  position: absolute; inset: 0;
  background: #15161a center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,16,20,.94) 0%, rgba(15,16,20,.78) 42%, rgba(15,16,20,.45) 100%),
    linear-gradient(0deg, rgba(15,16,20,.6), transparent 55%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--brand);
}
.hero-inner { position: relative; padding: 96px 0; }
.hero-content { max-width: 620px; }

.tag {
  display: inline-block; color: var(--brand);
  border: 1px solid rgba(247,185,38,.4); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px; background: var(--brand-soft);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.lead { font-size: 18px; color: #d2d5da; margin: 22px 0 30px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.feature { position: relative; background: var(--bg); padding: 32px 28px; transition: background .2s; }
.feature:hover { background: #fcfcfb; }
.feature-no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand-dark); display: block; margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Equipos (photo cards) ---------- */
.equipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.equipo {
  position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden;
  background: var(--graphite-2) center/cover no-repeat;
  display: flex; align-items: flex-end; color: #fff;
  box-shadow: var(--shadow); isolation: isolate;
}
.equipo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(10,11,13,.92) 8%, rgba(10,11,13,.35) 55%, rgba(10,11,13,.15) 100%);
  transition: background .25s;
}
.equipo:hover::before { background: linear-gradient(to top, rgba(10,11,13,.94) 12%, rgba(247,185,38,.18) 70%, rgba(10,11,13,.1) 100%); }
.equipo-ref {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: 11px; color: #fff; letter-spacing: .5px;
  background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 4px; backdrop-filter: blur(2px);
}
.equipo-body { position: relative; z-index: 1; padding: 22px; }
.equipo-body h3 { font-size: 18px; margin-bottom: 6px; }
.equipo-body p { font-size: 13.5px; color: #d7dade; margin: 0; }
.equipo-cta { background: var(--brand); color: var(--ink); align-items: center; text-align: left; box-shadow: none; }
.equipo-cta::before { display: none; }
.equipo-cta .equipo-body h3 { color: var(--ink); }
.equipo-cta .equipo-body p { color: rgba(0,0,0,.7); margin-bottom: 14px; }
.equipo-link { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 700; }
.equipo-link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { position: relative; padding: 30px 26px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-num { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--brand); display: block; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Dark split (Nosotros) ---------- */
.section-dark { background: var(--graphite); color: #fff; }
.section-dark .kicker { color: var(--brand); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.split-text p { color: #b9bdc5; font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: #dadce1; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; background: var(--brand); color: var(--graphite);
  border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2c2f36; border: 1px solid #2c2f36; border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.mini-card { background: var(--graphite-2); padding: 22px; }
.mini-card strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 16px; color: var(--brand); margin-bottom: 6px; }
.mini-card span { color: #aeb2ba; font-size: 14px; }

/* Report card visual */
.split-visual { display: grid; place-items: center; }
.report-card { width: 100%; max-width: 360px; background: var(--graphite-2); border: 1px solid #2c2f36; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.report-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #2c2f36; background: #191b20; }
.report-id { font-family: var(--mono); font-size: 12px; color: #8b9098; letter-spacing: .5px; }
.report-status { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--graphite); background: var(--brand); padding: 3px 10px; border-radius: 4px; letter-spacing: 1px; }
.report-photo { width: 100%; height: 170px; background: #191b20 center/cover no-repeat; border-bottom: 1px solid #2c2f36; }
.report-rows { padding: 8px 18px 20px; display: grid; gap: 2px; }
.report-rows div { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #25282e; font-size: 14px; color: #c3c7ce; }
.report-rows i.ok { width: 16px; height: 16px; border-radius: 4px; background: var(--brand); position: relative; }
.report-rows i.ok::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--graphite); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.contact-list .ci { font-size: 18px; color: var(--brand-dark); width: 22px; text-align: center; }
.contact-list a:hover { color: var(--brand-dark); }
.muted-line { color: var(--muted); }

.socials { display: flex; gap: 12px; margin-top: 26px; }
.social { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--graphite); color: #fff; transition: background .2s, transform .15s; }
.social svg { width: 19px; height: 19px; }
.social:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 7px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247,185,38,.22);
}
.field textarea { resize: vertical; }
.form-note { font-size: 14px; margin: 14px 0 0; text-align: center; min-height: 18px; }
.form-note.ok { color: #1c7a37; }
.form-note.err { color: #c0392b; }

.contact-feedback { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-feedback p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.feedback-process { margin: 14px 0 0 !important; font-size: 14px; }
.feedback-process a { color: var(--brand-dark); font-weight: 600; }
.feedback-process a:hover { text-decoration: underline; }

/* ---------- Modal (contacto / inquietudes) ---------- */
.modal {
  width: min(480px, 92vw); max-width: 480px; margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--ink); box-shadow: var(--shadow-lg);
}
.modal-wide { width: min(620px, 94vw); max-width: 620px; }
.modal::backdrop { background: rgba(15,16,20,.55); backdrop-filter: blur(2px); }
.modal[open] { animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.modal-form { position: relative; padding: 32px; }
.modal-form h2 { font-size: 24px; margin: 10px 0 8px; }
.modal-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; padding: 4px;
  background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer;
  color: var(--muted); transition: color .2s;
}
.modal-close:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite); color: #fff; padding: 48px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid #2a2c33; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { height: 44px; width: auto; display: block; }
.footer-tagline { color: #aeb2ba; font-size: 14px; }
.footer-address { color: #aeb2ba; font-size: 14px; max-width: 340px; transition: color .2s; }
.footer-address:visited { color: #aeb2ba; }
.footer-address:hover { color: var(--brand); }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: #c4c7ce; font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; color: #8e929b; font-size: 14px; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Legal page (Términos) ---------- */
.legal-hero { background: var(--graphite); color: #fff; padding: 64px 0 56px; position: relative; }
.legal-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand); }
.legal-hero .kicker { color: var(--brand); }
.legal-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; margin: 14px 0 12px; }
.legal-hero p { color: #b9bdc5; font-size: 16px; margin: 0; }
.legal-updated { font-family: var(--mono); font-size: 13px; color: #8e929b; margin-top: 18px !important; }

.legal-body { padding: 64px 0 88px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-block { margin-bottom: 40px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.legal-block h2 .legal-no { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--brand-dark); }
.legal-block h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.legal-block p { color: var(--ink-2); font-size: 16px; margin: 0 0 14px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.legal-block ul li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 16px; }
.legal-block ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--brand); border-radius: 2px; }
.legal-block a { color: var(--brand-dark); font-weight: 600; }
.legal-block a:hover { text-decoration: underline; }
.legal-note { background: var(--bg-alt); border-left: 3px solid var(--brand); border-radius: 6px; padding: 18px 20px; margin-bottom: 40px; }
.legal-note p { color: var(--muted); font-size: 15px; margin: 0; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--brand-dark); margin-bottom: 36px; }
.legal-back:hover { text-decoration: underline; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .15s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .equipos { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-visual { order: -1; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-130%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; color: #fff !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 520px; }
  .hero-inner { padding: 72px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .equipos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .split-cards { grid-template-columns: 1fr; }
}
