/* =========================================================
   TdeTransporte Logística — Nueva web (propuesta visual)
   ========================================================= */

:root {
  /* Color */
  --navy: #0d1b33;
  --navy-deep: #091426;
  --navy-soft: #16294e;
  --ink: #14213a;
  --muted: #55637d;
  --accent: #f97316;
  --accent-strong: #e35f00;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e2e8f2;
  --line: #edf1f7;

  /* Tipografía */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Forma */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(13, 27, 51, 0.05), 0 14px 34px -18px rgba(13, 27, 51, 0.22);
  --shadow-pop: 0 18px 50px -20px rgba(13, 27, 51, 0.4);

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--accent); color: var(--navy-deep);
  box-shadow: 0 10px 24px -12px rgba(249, 115, 22, 0.7);
}
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ===== Barra superior ===== */
.topbar { background: var(--navy-deep); color: #c9d4e8; font-size: 0.8rem; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 38px; flex-wrap: wrap;
}
.topbar-loc { letter-spacing: 0.04em; }
.topbar-loc span { color: var(--accent); margin-right: 6px; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-contacts a:hover { color: var(--accent); }

/* ===== Cabecera ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(13, 27, 51, 0.35); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo {
  width: 52px; height: 52px; object-fit: cover;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-text small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-list {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-link {
  display: inline-block; padding: 10px 14px;
  font-weight: 600; font-size: 0.93rem; text-decoration: none; color: var(--ink);
  border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--accent-strong); background: var(--line); }
.nav-link.is-active { color: var(--accent-strong); }
.nav-cta-item { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9, 20, 38, 0.92) 0%, rgba(9, 20, 38, 0.72) 45%, rgba(9, 20, 38, 0.35) 100%),
    url("../imagenes/camioneta-home.jpeg") center / cover no-repeat;
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding-top: 110px; padding-bottom: 96px;
  max-width: 720px;
}
.hero-eyebrow {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 900;
  margin-bottom: 18px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #d4dcec;
  max-width: 560px; margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  width: 100%; max-width: 720px; margin-top: 56px;
}
.hero-stats li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 4px;
  backdrop-filter: blur(4px);
}
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: #c9d4e8; line-height: 1.35; }

/* ===== Secciones genéricas ===== */
.section { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-eyebrow {
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--accent); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-intro { color: var(--muted); font-size: 1.02rem; }

/* ===== Servicios ===== */
.section-services { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
  border-color: rgba(249, 115, 22, 0.45);
}
.service-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 0.95rem;
  background: var(--accent); color: var(--navy-deep);
  border-radius: 8px; padding: 4px 12px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}
.service-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.service-title { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.service-body > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.service-list li {
  font-size: 0.9rem; font-weight: 500;
  padding-left: 26px; position: relative;
}
.service-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-strong); font-weight: 800;
}
.service-link {
  margin-top: auto;
  font-weight: 700; font-size: 0.92rem; color: var(--accent-strong);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.service-link:hover { color: var(--navy); }
.service-link span { transition: transform 0.18s ease; }
.service-link:hover span { transform: translateX(4px); }

/* ===== Empresa ===== */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-pop); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text { color: var(--muted); font-size: 1.02rem; margin-bottom: 26px; }
.about-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700;
}
.about-list h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.about-list p { font-size: 0.86rem; color: var(--muted); }

/* ===== Proceso ===== */
.section-process { background: var(--navy-deep); color: #fff; }
.section-process .section-title { color: #fff; }
.process-grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  counter-reset: paso;
}
.process-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 26px 22px;
  position: relative;
}
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--navy-deep);
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: #b9c6dd; }

/* ===== Prueba social ===== */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.proof-case {
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 44px 40px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.proof-case h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.proof-case p { color: #c9d4e8; margin-bottom: 26px; max-width: 460px; }
.proof-quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 40px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.proof-quote blockquote p {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
}
.proof-quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote-stars { color: var(--accent); letter-spacing: 3px; font-size: 1rem; }
.proof-quote b { font-size: 0.95rem; }
.proof-quote figcaption span:last-child { font-size: 0.8rem; color: var(--muted); }

/* ===== Blog ===== */
.section-blog { background: var(--surface); border-top: 1px solid var(--border); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blog-media { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.blog-card:hover .blog-media img { transform: scale(1.05); }
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.blog-body h3 a { text-decoration: none; color: var(--ink); }
.blog-body h3 a:hover { color: var(--accent-strong); }
.blog-body > p { font-size: 0.87rem; color: var(--muted); }
.blog-link {
  margin-top: auto; font-size: 0.88rem; font-weight: 700;
  color: var(--accent-strong); text-decoration: none;
}
.blog-link:hover { color: var(--navy); }

/* ===== Banda CTA ===== */
.cta-band { background: var(--accent); color: var(--navy-deep); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap; padding-top: 52px; padding-bottom: 52px;
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.cta-inner p { font-size: 1rem; font-weight: 500; opacity: 0.85; }
.cta-band .btn-primary {
  background: var(--navy-deep); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(9, 20, 38, 0.8);
}
.cta-band .btn-primary:hover { background: #fff; color: var(--navy-deep); }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
.contact-text { color: var(--muted); margin-bottom: 28px; max-width: 440px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-list b { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list span, .contact-list a { font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent-strong); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 34px 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 46px;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.form-field input:user-invalid,
.form-field textarea:user-invalid,
.form-field select:user-invalid { border-color: #c0392b; }
.form-status { font-size: 0.88rem; font-weight: 600; color: #1e7d4f; }

/* ===== Pie ===== */
.footer { background: var(--navy-deep); color: #b9c6dd; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px; padding-top: 64px; padding-bottom: 48px;
}
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-logo { background: rgba(255, 255, 255, 0.95); }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text small { color: #8fa0bd; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; }
.footer-col h3 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: #fff; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contacts { color: #b9c6dd; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px; font-size: 0.8rem;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ===== Menú desplegable de servicios ===== */
.nav-item { position: relative; }
.nav-caret::after {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 6px;
  transition: transform 0.18s ease;
}
.nav-item:hover .nav-caret::after, .nav-item:focus-within .nav-caret::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 330px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-pop);
  padding: 10px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-link { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.dropdown-link b { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.dropdown-link small { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.dropdown-link:hover { background: var(--line); }
.dropdown-link:hover b { color: var(--accent-strong); }
.dropdown-cta { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.dropdown-cta b { color: var(--accent-strong); }

/* ===== Migas de pan (breadcrumbs) ===== */
.breadcrumb-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); padding: 13px 0; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb .sep { color: #b7c1d4; }

/* ===== Cabecera de páginas internas ===== */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero-inner { max-width: 780px; padding: 52px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 16px; }
.page-hero .lead { color: var(--muted); font-size: 1.06rem; margin-bottom: 26px; max-width: 640px; }
.service-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 36px; }
.service-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ===== Pestaña "incluye / características" ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; margin-bottom: 14px;
}
.feature h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 0.85rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 14px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.faq-item h3 { font-size: 1rem; margin-bottom: 6px; }
.faq-item p { font-size: 0.9rem; color: var(--muted); }

/* ===== Pasos sobre fondo claro ===== */
.process-light .process-step { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); color: var(--ink); }
.process-light .process-step p { color: var(--muted); }

/* ===== Artículos de blog ===== */
.article-wrap { padding: 44px 0 88px; }
.article { max-width: 840px; margin: 0 auto; }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-card); }
.article-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body > p { color: var(--ink); font-size: 1.02rem; margin-bottom: 18px; }
.article-body h2 { font-size: 1.55rem; margin: 34px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; display: grid; gap: 8px; }
.article-body li { color: var(--ink); }
.article-body .pull-quote {
  border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: 0 12px 12px 0; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  margin: 26px 0; color: var(--ink);
}
.related-head { margin: 56px 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ===== Animación de aparición ===== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .btn, .blog-card { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .proof-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-list { grid-template-columns: 1fr; }

  /* Menú móvil */
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -20px rgba(13, 27, 51, 0.3);
    padding: 14px 20px 20px;
  }
  .nav-list.is-open { display: flex; }
  .nav-link { display: block; padding: 13px 12px; font-size: 1rem; }
  .nav-cta-item { margin: 10px 0 0; }
  .nav-cta-item .btn { width: 100%; }

  /* Dropdown dentro del menú móvil colapsado */
  .nav-item.has-dropdown > .nav-link { display: flex; align-items: center; justify-content: space-between; }
  .nav-item.is-open .nav-caret::after { transform: rotate(-135deg) translateY(-2px); }
  .nav-item .dropdown {
    position: static; transform: none; width: auto;
    opacity: 1; visibility: hidden; display: none;
    box-shadow: none; border: 0; background: var(--line);
    margin: 2px 0 6px 12px; padding: 6px;
  }
  .nav-item.is-open .dropdown { display: grid; visibility: visible; }
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 640px) {
  .topbar-inner { justify-content: center; }
  .topbar-contacts { gap: 14px; }
  .hero-inner { padding-top: 84px; padding-bottom: 64px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-stats li { padding: 12px 12px; }
  .process-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-card:last-child { grid-column: auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
