/* =========================================================
   Tramitamos SAS Colombia — tramitescolombiasas.com
   Tokens: negro / rojo / blanco
   ========================================================= */

:root {
  --black: #0a0a0c;
  --black-soft: #151517;
  --black-card: #1b1b1e;
  --red: #e30613;
  --red-dark: #9c0410;
  --red-bright: #ff2233;
  --white: #ffffff;
  --off-white: #f5f4f2;
  --gray-100: #ececec;
  --gray-400: #9a9aa2;
  --gray-600: #58585f;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 4px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red-bright);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

p { line-height: 1.65; color: var(--gray-400); margin: 0; }

.section { padding: 96px 0; position: relative; }
.section-white { background: var(--off-white); color: var(--black); }
.section-white p { color: var(--gray-600); }
.section-white h2, .section-white h3, .section-white h4 { color: var(--black); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }

/* Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(227,6,19,.5);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(227,6,19,.6); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.28);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.section-white .btn-outline { color: var(--black); border-color: rgba(0,0,0,.25); }
.section-white .btn-outline:hover { border-color: var(--black); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* Header -------------------------------------------------- */
#header {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 999;
  padding: 20px 0;
  transition: background .3s ease, padding .3s ease, border-color .3s ease, top .3s ease;
  border-bottom: 1px solid transparent;
}
#header.scrolled { top: 0; }
#header.scrolled {
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(10px);
  padding: 13px 0;
  border-color: rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-text { font-family: var(--font-display); line-height: 1; }
.logo-text strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: .01em; color: var(--white); }
.logo-text span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--red-bright); text-transform: uppercase; margin-top: 3px; }

.nav-desktop { display: flex; align-items: center; gap: 38px; }
.nav-desktop a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a:hover { color: var(--white); }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--red);
  transition: width .2s ease;
}
.nav-desktop a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  border-radius: var(--radius);
  color: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 1000;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform .35s ease;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile .close-btn { align-self: flex-end; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); background: none; color: var(--white); border-radius: var(--radius); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; text-transform: uppercase;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mobile .btn { margin-top: 32px; align-self: stretch; justify-content: center; white-space: normal; text-align: center; }

/* Marquee ticker ------------------------------------------ */
.ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 38px;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.ticker.hide { transform: translateY(-100%); }
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
  padding: 10px 0;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.ticker span::after { content: "•"; opacity: .7; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Hero ----------------------------------------------------- */
.hero {
  position: relative;
  padding: 190px 0 0;
  background: var(--black);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -18%;
  width: 60%; height: 130%;
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 55%, #400109 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 70px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--red-bright); }
.hero-lead { max-width: 480px; margin-bottom: 34px; color: var(--gray-400); font-size: 17px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stamp-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stamp {
  width: min(340px, 90%);
  height: auto;
  animation: spin-slow 34s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
}

.stat-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-strip .stat {
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-strip .stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  font-weight: 800;
}
.stat span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Nosotros -------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { margin-bottom: 18px; font-size: 16px; }
.about-text p:last-child { margin-bottom: 0; }

.mv-cards { display: grid; gap: 18px; }
.mv-card {
  border: 1px solid rgba(0,0,0,.1);
  background: var(--white);
  padding: 26px 28px;
  border-radius: var(--radius);
  position: relative;
  border-left: 3px solid var(--red);
}
.mv-card h4 { font-size: 15px; margin-bottom: 10px; letter-spacing: .04em; }
.mv-card p { font-size: 14.5px; }

.indicators {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.1);
  border: 1px solid rgba(0,0,0,.1);
}
.indicator {
  background: var(--white);
  padding: 30px 22px;
  text-align: center;
}
.indicator b {
  display: block;
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--red);
  font-weight: 700;
}
.indicator span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Servicios --------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover { border-color: rgba(227,6,19,.55); transform: translateY(-4px); }
.service-card .num {
  font-family: var(--font-mono);
  color: var(--red-bright);
  font-size: 12.5px;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 21px; margin-bottom: 16px; color: var(--white); }
.service-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.service-card li {
  font-size: 14.5px;
  color: var(--gray-400);
  padding-left: 20px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  background: var(--red);
}
.service-card .btn { align-self: flex-start; padding: 12px 20px; font-size: 12px; }

.service-featured {
  background: linear-gradient(155deg, var(--red) 0%, var(--red-dark) 100%);
  border: none;
}
.service-featured .num { color: rgba(255,255,255,.75); }
.service-featured h3, .service-featured li { color: var(--white); }
.service-featured li::before { background: var(--white); }
.service-featured .btn-primary { background: var(--white); color: var(--red-dark); }
.service-featured .btn-primary:hover { background: var(--black); color: var(--white); }

/* Garantías band ---------------------------------------------- */
.guarantee-band {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.guarantee-item { display: flex; gap: 16px; align-items: flex-start; }
.guarantee-item svg { width: 30px; height: 30px; flex: none; color: var(--red-bright); }
.guarantee-item h4 { font-size: 14.5px; color: var(--white); margin-bottom: 6px; letter-spacing: .02em; }
.guarantee-item p { font-size: 13.5px; }

/* Contacto -------------------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.office-cards { display: grid; gap: 16px; margin-bottom: 36px; }
.office-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.office-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--red-bright);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.office-card p { color: var(--white); font-size: 15px; }

.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 14px;
  color: var(--white); font-size: 15.5px;
}
.contact-list svg { width: 20px; height: 20px; color: var(--red-bright); flex: none; }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background .2s ease;
}
.social-row a:hover { border-color: var(--red); background: rgba(227,6,19,.12); }
.social-row svg { width: 19px; height: 19px; }

.contact-cta-card {
  background: linear-gradient(155deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius);
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-cta-card .eyebrow { color: rgba(255,255,255,.85); }
.contact-cta-card .eyebrow::before { background: rgba(255,255,255,.85); }
.contact-cta-card h3 { color: var(--white); font-size: 28px; margin-bottom: 16px; }
.contact-cta-card p { color: rgba(255,255,255,.85); margin-bottom: 30px; }
.contact-cta-card .btn-primary { background: var(--white); color: var(--red-dark); }
.contact-cta-card .btn-primary:hover { background: var(--black); color: var(--white); }

/* Footer -------------------------------------------------- */
footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 46px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col button {
  color: var(--gray-400);
  font-size: 14.5px;
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  font-family: var(--font-body);
}
.footer-col a:hover, .footer-col button:hover { color: var(--white); }
.footer-brand p { max-width: 320px; margin-top: 16px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-bottom a:hover { color: var(--gray-400); }

/* Legal modal ------------------------------------------------ */
dialog.legal-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 560px;
  width: 90%;
  background: var(--off-white);
  color: var(--black);
}
dialog.legal-modal::backdrop { background: rgba(0,0,0,.7); }
.legal-modal-inner { padding: 34px 32px; }
.legal-modal-inner h3 { font-size: 20px; margin-bottom: 16px; color: var(--black); }
.legal-modal-inner p { color: var(--gray-600); font-size: 14.5px; margin-bottom: 20px; }
.legal-modal-inner .btn { background: var(--black); color: var(--white); font-size: 12px; padding: 11px 18px; }

/* Floating WhatsApp -------------------------------------------- */
.float-wa {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 900;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #22c55e;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.5);
  animation: pulse-wa 2.6s ease-in-out infinite;
}
.float-wa svg { width: 30px; height: 30px; color: var(--white); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(0,0,0,.5), 0 0 0 0 rgba(34,197,94,.5); }
  50% { box-shadow: 0 10px 30px -6px rgba(0,0,0,.5), 0 0 0 10px rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .float-wa { animation: none; }
}

/* Responsive ---------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stamp-wrap { order: -1; padding-top: 10px; }
  .stamp { width: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }
  .logo-text strong { font-size: 15px; }
  .logo-text span { font-size: 8.5px; }
  .section { padding: 68px 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: none; }
  .indicators { grid-template-columns: repeat(2, 1fr); }
  .guarantee-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .hero { padding-top: 150px; }
}
