:root {
  --navy: #0d1b3e;
  --deep-blue: #1a2f6e;
  --violet: #5b3fa6;
  --purple: #7c4fd0;
  --magenta: #c0396b;
  --pink: #e05a8a;
  --sky: #4a9edd;
  --light-sky: #7abfef;
  --cyan: #00c8ff;
  --white: #ffffff;
  --cream: #f8f6ff;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.14);
  --muted: rgba(232, 238, 255, 0.68);
  --shadow: 0 12px 32px rgba(4, 10, 28, 0.28);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  background: rgba(13, 27, 62, 0.78);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(140%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(224, 90, 138, 0.35);
}

.nav-logo span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.sic { color: var(--cyan); font-weight: 600; }

.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(192, 57, 107, 0.38);
  white-space: nowrap;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(124, 79, 208, 0.28), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(74, 158, 221, 0.22), transparent 55%),
    radial-gradient(640px 380px at 80% 90%, rgba(192, 57, 107, 0.2), transparent 60%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb1 { width: 280px; height: 280px; background: var(--purple); top: 8%; left: -60px; }
.orb2 { width: 220px; height: 220px; background: var(--sky); right: 8%; top: 18%; animation-delay: -3s; }
.orb3 { width: 180px; height: 180px; background: var(--magenta); bottom: 6%; left: 38%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-sky);
  margin-bottom: 1.4rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4eff91;
  box-shadow: 0 0 10px #4eff91;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h1 em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--light-sky);
}

.hero-desc {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.hero-desc strong { color: white; font-weight: 600; }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(192, 57, 107, 0.4);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary,
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--glass-border);
}

.stat-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--light-sky);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-ring {
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91, 63, 166, 0.2), rgba(74, 158, 221, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  box-shadow: 0 0 80px rgba(124, 79, 208, 0.3);
  animation: pulse 4s ease-in-out infinite;
}

.logo-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--magenta), var(--violet), var(--sky), var(--magenta));
  z-index: 0;
  animation: spin 8s linear infinite;
  opacity: 0.6;
}

.logo-ring::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2f6e, #0d1b3e);
  z-index: 0;
}

.logo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
}

.psi-symbol {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 10vw, 5rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--magenta), var(--violet), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text-ring {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.62rem, 2.2vw, 0.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 80px rgba(124, 79, 208, 0.28); }
  50% { box-shadow: 0 0 110px rgba(124, 79, 208, 0.45); }
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; padding: 5.5rem 0; }

.section-label {
  color: var(--light-sky);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--sky);
  flex-shrink: 0;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 span, h2 em {
  font-style: italic;
  color: var(--light-sky);
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

#sobre-mi {
  background: linear-gradient(180deg, var(--navy) 0%, rgba(26, 47, 110, 0.32) 100%);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.profile-ring {
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--pink), var(--sky), var(--purple));
  box-shadow: 0 20px 50px rgba(91, 63, 166, 0.35);
}

.profile-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--navy);
}

.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text strong { color: white; }

.credentials { display: grid; gap: 0.8rem; margin-top: 1.6rem; }

.credential {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

/* ── CARDS ── */
.services-grid,
.blog-grid,
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card,
.servicio-card,
.blog-card,
.step,
.faq-item,
.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.servicio-card:hover,
.blog-card:hover,
.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 191, 239, 0.4);
  background: var(--glass-strong);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.servicio-card p,
.blog-card p,
.step p { color: var(--muted); font-size: 0.95rem; }

.tag {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-sky);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ── AGENDA ── */
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--muted);
}

.hours-row strong { color: white; }

.platforms { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }

.chip {
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.note { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 0.7rem; max-width: 860px; }

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-q span {
  color: var(--light-sky);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-a {
  display: none;
  color: var(--muted);
  padding-top: 0.8rem;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* ── VIDEOS ── */
#videos {
  background: linear-gradient(180deg, rgba(0, 10, 30, 0.35), transparent);
}

.video-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.4rem;
}

.filters { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.filter {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.82rem;
}

.filter.active {
  color: white;
  border-color: rgba(0, 200, 255, 0.45);
  background: rgba(0, 200, 255, 0.14);
}

.video-host-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.featured-player {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #081226;
  margin-bottom: 1.4rem;
  aspect-ratio: 16 / 9;
}

.featured-player .video-card {
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}
.featured-player .video-card:hover { transform: none; }

.featured-player iframe,
.lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.videos-grid { grid-template-columns: repeat(4, 1fr); }

.video-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  text-align: left;
  color: inherit;
  width: 100%;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #081226;
  overflow: hidden;
}

.thumb-img {
  position: absolute;
  inset: 0;
  background-color: #081226;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.thumb-img.letterbox {
  background-size: 134% 134%;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 38, 0.4));
  z-index: 1;
}

.play b {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 8px 20px rgba(192, 57, 107, 0.45);
  font-size: 0.9rem;
}

.video-meta { padding: 0.9rem 1rem 1.05rem; }
.video-meta h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.video-meta p { color: var(--muted); font-size: 0.8rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 10, 24, 0.86);
  display: none;
  place-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.lightbox.open { display: grid; }

.lightbox-inner {
  width: min(960px, 100%);
}

.lightbox-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.lightbox-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: white;
  cursor: pointer;
}

.lightbox-frame {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: black;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.contact-card small { color: var(--muted); display: block; }

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--light-sky);
}

.form input,
.form select,
.form textarea,
.doc-field input,
.doc-field select,
.doc-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  padding: 0.8rem 0.9rem;
  outline: none;
}

.form textarea, .doc-field textarea { min-height: 110px; resize: vertical; }
.form select option, .doc-field select option { background: var(--navy); }

/* ── DOCS ── */
#documentos { background: rgba(0, 0, 0, 0.18); }

.doc-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.1rem;
}

.doc-tab {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}

.doc-tab.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
}

.doc-panel { display: none; }
.doc-panel.active { display: block; }

.doc-sheet {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.8rem;
}

.doc-head {
  text-align: center;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--glass-border);
}

.doc-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
}

.doc-head p { color: var(--muted); font-size: 0.88rem; }

.clause {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.clause b { color: white; }

.num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(122, 191, 239, 0.15);
  color: var(--light-sky);
  font-size: 0.8rem;
}

.doc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.2rem 0;
}

.doc-field.full { grid-column: 1 / -1; }
.doc-field label { display: block; font-size: 0.8rem; color: var(--light-sky); margin-bottom: 0.3rem; }

.firma-box { margin-top: 0.5rem; }
.firma-box canvas {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
}

.scale {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.scale input { flex: 1; }

.doc-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
}

.group-title {
  grid-column: 1 / -1;
  color: var(--light-sky);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-top: 0.6rem;
}

.choice { display: flex; gap: 1rem; color: var(--muted); }

/* ── SIC / BLOG / FOOTER ── */
#sic-tapia {
  background: linear-gradient(180deg, rgba(0, 10, 30, 0.9), rgba(0, 30, 60, 0.5));
  border-top: 1px solid rgba(0, 200, 255, 0.12);
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
  padding: 3.5rem 0;
}

.sic-wrap {
  display: grid;
  place-items: center;
}

.sic-wrap img {
  width: min(420px, 92%);
  border-radius: 18px;
  box-shadow: 0 0 50px rgba(0, 200, 255, 0.18);
}

footer {
  padding: 2.4rem 0 5.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 1.1rem;
  font-size: 0.85rem;
}

.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

@media (max-width: 1180px) {
  .nav-logo span { display: none; }
}

@media (max-width: 1080px) {
  nav { position: sticky; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 27, 62, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.4rem 1.3rem;
    border-bottom: 1px solid var(--glass-border);
    z-index: 80;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
}

@media (max-width: 980px) {
  .hero-content,
  .sobre-grid,
  .agenda-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-text { text-align: center; }
  .hero-badge { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .services-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .videos-grid { grid-template-columns: 1fr 1fr; }
  .doc-fields { grid-template-columns: 1fr; }
  .video-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .services-grid, .blog-grid, .videos-grid, .steps { grid-template-columns: 1fr; }
  nav { padding-inline: 0.9rem; }
  .container { width: min(1180px, calc(100% - 1.4rem)); }
  section { padding: 3.6rem 0; }
  #hero { padding: 2.4rem 0 3.2rem; min-height: auto; }
  .nav-cta { font-size: 0.72rem; padding: 0.55rem 0.85rem; }
  .lightbox { padding: 0.8rem; }
}

