/* =========================================================
   Dr. Jonathan González — Design system
   Pediatra · Cirujano Pediatra · Alta Especialidad Neonatal
   ========================================================= */

:root {
  /* Brand palette (from brandboard) */
  --orange: #F15A29;
  --orange-ink: #c84617;
  --orange-50: #fff1ec;

  --blue-100: #DBE9F4;
  --blue-200: #B6D3E9;
  --blue-300: #A4C8E4;
  --blue-400: #8ABCE3;
  --blue-deep: #5a8fb8;

  --gray: #6D6E71;
  --gray-soft: #9a9b9e;
  --ink: #2b2d33;
  --line: #e7ecf1;

  --bg: #ffffff;
  --bg-soft: #f7fafd;
  --bg-cream: #fbf9f6;

  /* Type */
  --font-sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Sacramento", "Pinyon Script", cursive;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(45, 60, 80, .06), 0 2px 8px rgba(45, 60, 80, .04);
  --shadow-md: 0 4px 14px rgba(45, 60, 80, .08), 0 12px 32px rgba(45, 60, 80, .06);
  --shadow-lg: 0 20px 60px rgba(45, 60, 80, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0; text-wrap: pretty; }

.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; }

/* ----- Container ----- */
.wrap { width: min(1200px, 92%); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 110px) 0; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(220, 230, 240, .7);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-logo {
  width: 48px; height: 48px; object-fit: contain;
}
.brand-text { line-height: 1.05; }
.brand-name {
  font-family: var(--font-script);
  font-size: 26px; color: var(--orange); display: block;
  margin-top: -4px;
}
.brand-sub {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray); font-weight: 600;
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
}
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--bg-soft); }
.nav-link.active { background: var(--blue-100); color: var(--orange-ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 6px 16px rgba(241, 90, 41, .28);
}
.btn-primary:hover { background: var(--orange-ink); box-shadow: 0 10px 24px rgba(241, 90, 41, .35); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-wa {
  background: #25D366; color: #fff;
}
.btn-wa:hover { background: #1ebe5a; }
.btn-blue {
  background: var(--blue-deep); color: #fff;
}
.btn-blue:hover { background: #4a7da3; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.menu-btn {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); align-items: center; justify-content: center;
}

/* Floating WhatsApp */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .35);
  animation: pulse-wa 2s infinite;
}
@keyframes pulse-wa {
  0% { transform: scale(.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(182, 211, 233, .55), transparent 60%),
    radial-gradient(70% 50% at 10% 90%, rgba(241, 90, 41, .08), transparent 65%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
  padding: clamp(40px, 8vw, 100px) 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-100); color: var(--blue-deep);
  padding: 8px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.hero h1 .script {
  display: block; color: var(--orange);
  font-size: 1.4em; line-height: .9; margin: -.1em 0 0;
}
.hero-lead {
  margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--gray); max-width: 540px;
}
.hero-cta {
  margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray);
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--blue-deep); }

.hero-art {
  position: relative;
  aspect-ratio: 4/4.4;
  border-radius: var(--r-xl);
  background:
    linear-gradient(160deg, var(--blue-200), var(--blue-100));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-art .doctor-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-art .doctor-placeholder img {
  width: 86%; opacity: .94;
}
.hero-badge {
  position: absolute; left: 20px; bottom: 20px;
  background: #fff; border-radius: 18px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-badge .stars { color: var(--orange); font-size: 14px; }
.hero-badge .text { font-size: 12px; color: var(--gray); line-height: 1.3; }
.hero-badge strong { color: var(--ink); display: block; font-size: 14px; }

.hero-tag {
  position: absolute; right: 20px; top: 20px;
  background: rgba(255,255,255,.92);
  padding: 10px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--orange-ink);
  letter-spacing: .05em;
}

/* Decorative waves */
.wave-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
}

/* ----- Trust pillars ----- */
.pillars {
  background: var(--bg-cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.pillar {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pillar h3 { font-size: 14px; margin-bottom: 4px; }
.pillar p { font-size: 13px; color: var(--gray); line-height: 1.45; }

/* ----- Section heading ----- */
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .kicker {
  display: inline-block; color: var(--orange);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-head h2 .script {
  color: var(--orange); font-size: 1.4em; line-height: .8;
  display: block; margin-top: 4px;
}
.sec-head p { color: var(--gray); margin-top: 18px; font-size: 17px; }

/* ----- Services ----- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, var(--blue-100), var(--blue-200));
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--gray); font-size: 14px; line-height: 1.5; }
.service-card .link {
  margin-top: auto; padding-top: 8px;
  color: var(--orange); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card .link:hover { gap: 10px; }

/* ----- About ----- */
.about-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--blue-300), var(--blue-100));
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: .1em;
}
.about-photo .ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.18) 18px 19px);
}
.about-photo .ph span {
  position: relative; background: rgba(255,255,255,.7);
  padding: 6px 12px; border-radius: 6px;
}
.about-credentials {
  margin-top: 28px; display: grid; gap: 14px;
}
.credential {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; background: var(--bg-soft);
  border-radius: var(--r-md); border-left: 3px solid var(--orange);
}
.credential .label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--gray); text-transform: uppercase; min-width: 130px;
}
.credential .value { font-size: 14px; color: var(--ink); font-weight: 600; }
.credential .value small { display: block; font-weight: 400; color: var(--gray); font-size: 12px; margin-top: 2px;}

/* ----- Appointment ----- */
.appointment-wrap {
  background: linear-gradient(160deg, #f6fbfe, #fff);
  border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.appt-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
}
.appt-side {
  background: linear-gradient(170deg, var(--blue-deep), #3a6b91);
  color: #fff; border-radius: var(--r-lg); padding: 32px; align-self: stretch;
  position: relative; overflow: hidden;
}
.appt-side h3 { color: #fff; margin-bottom: 12px; font-size: 22px; }
.appt-side p { color: rgba(255,255,255,.85); font-size: 14px; }
.appt-side ul { margin-top: 22px; padding: 0; list-style: none; display: grid; gap: 14px; }
.appt-side li { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.95); }
.appt-side li svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }
.appt-side .note {
  margin-top: 28px; padding: 14px; background: rgba(255,255,255,.1);
  border-radius: 10px; font-size: 12px; line-height: 1.5;
  border-left: 3px solid var(--orange);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--gray); letter-spacing: .04em; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(90, 143, 184, .15);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: var(--orange);
}
.field.error .err {
  font-size: 11px; color: var(--orange); font-weight: 600;
}
.field textarea { resize: vertical; min-height: 90px; }

.check {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
  color: var(--gray); cursor: pointer; user-select: none;
}
.check input { margin-top: 3px; accent-color: var(--orange); }
.check a { color: var(--orange-ink); text-decoration: underline; font-weight: 600; }

.submitted {
  text-align: center; padding: 40px 20px;
}
.submitted .check-circle {
  width: 76px; height: 76px; border-radius: 50%;
  background: #d8f5e1; color: #1b9444;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.submitted h3 { font-size: 22px; margin-bottom: 10px; }
.submitted p { color: var(--gray); max-width: 460px; margin: 0 auto; }
.submitted .ref {
  margin-top: 18px; display: inline-block;
  padding: 8px 16px; background: var(--bg-soft);
  border-radius: 10px; font-family: ui-monospace, monospace;
  font-size: 13px; color: var(--gray);
}

/* ----- Contact ----- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch;
}
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row .lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--gray); text-transform: uppercase; }
.contact-row .val { font-size: 15px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.contact-row .val small { display: block; color: var(--gray); font-weight: 400; font-size: 13px; margin-top: 2px; }

.map-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  min-height: 420px;
  background:
    linear-gradient(135deg, #eaf3f9, #d6e6f2);
}
.map-stub {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 143, 184, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 143, 184, .12) 1px, transparent 1px);
  background-size: 36px 36px;
}
.map-roads {
  position: absolute; inset: 0;
}
.map-roads .road {
  position: absolute; background: rgba(255,255,255,.7);
}
.pin {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.pin .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(241,90,41,.5);
}
.pin::after {
  content: ""; width: 30px; height: 8px; background: rgba(241,90,41,.2);
  border-radius: 50%; margin-top: 4px;
  animation: pinpulse 1.8s infinite;
}
@keyframes pinpulse { 0%,100% { opacity: .5; } 50% { opacity: 1; transform: scale(1.1); } }
.map-overlay {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: #fff; border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow-md);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.map-overlay .addr h4 { font-size: 14px; margin-bottom: 2px; }
.map-overlay .addr p { font-size: 12px; color: var(--gray); }

/* ----- Testimonials ----- */
.testi-wrap { background: var(--bg-cream); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.testi .quote {
  font-size: 28px; color: var(--orange); line-height: .8; font-family: serif;
}
.testi p { font-size: 14px; color: var(--ink); line-height: 1.55; }
.testi .who {
  display: flex; align-items: center; gap: 10px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.testi .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-200); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.testi .name { font-size: 13px; font-weight: 700; }
.testi .meta { font-size: 11px; color: var(--gray); }

/* ----- Blog ----- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  aspect-ratio: 16/10;
  background-color: var(--blue-100);
  background-image: linear-gradient(135deg, var(--blue-200), var(--blue-100));
  position: relative; display: flex; align-items: center; justify-content: center;
  color: var(--blue-deep);
}
.blog-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.25) 22px 23px);
}
.blog-thumb .ico { position: relative; z-index: 1; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--orange); text-transform: uppercase;
}
.blog-card h3 { font-size: 17px; }
.blog-card .meta { font-size: 12px; color: var(--gray); margin-top: auto; padding-top: 10px; }

/* ----- Records (future module) ----- */
.records-banner {
  background: linear-gradient(140deg, #2b3a4a, #1f2a36);
  color: #fff; padding: 60px 0; border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.records-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(60% 80% at 90% 10%, rgba(138, 188, 227, .25), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(241, 90, 41, .15), transparent 60%);
}
.records-banner .wrap { position: relative; }
.records-banner h2 { color: #fff; max-width: 720px; }
.records-banner .future-pill {
  display: inline-flex; gap: 8px; align-items: center;
  background: rgba(241, 90, 41, .15); color: #ffb89b;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.records-banner p { color: rgba(255,255,255,.78); max-width: 640px; margin-top: 18px; }

.mock-app {
  margin-top: 50px; background: #fff;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: grid; grid-template-columns: 220px 1fr;
  min-height: 540px; max-width: 1100px;
}
.mock-side {
  background: #f4f7fa; border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.mock-side .logo-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 16px;
}
.mock-side .logo-row img { width: 32px; }
.mock-side .logo-row span { font-family: var(--font-script); color: var(--orange); font-size: 18px; }
.mock-side .sec {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-soft); padding: 14px 10px 6px;
}
.mock-side .item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13px; color: var(--gray); cursor: default;
}
.mock-side .item.active {
  background: #fff; color: var(--ink); font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.mock-side .item .badge {
  margin-left: auto; background: var(--orange); color: #fff;
  border-radius: 999px; padding: 2px 6px; font-size: 10px; font-weight: 700;
}
.mock-main { padding: 26px 30px; display: flex; flex-direction: column; gap: 22px; color: var(--ink); }
.mock-topbar { display: flex; justify-content: space-between; align-items: center; }
.mock-topbar h4 { font-size: 18px; }
.mock-search {
  background: #f4f7fa; border-radius: 999px;
  padding: 8px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--gray); min-width: 240px;
}
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mock-kpi {
  background: var(--bg-soft); border-radius: var(--r-md); padding: 14px;
  border: 1px solid var(--line);
}
.mock-kpi .num { font-size: 22px; font-weight: 800; }
.mock-kpi .lbl { font-size: 11px; color: var(--gray); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.mock-kpi.accent { background: linear-gradient(140deg, var(--orange), #e94d1c); color: #fff; border: none; }
.mock-kpi.accent .lbl { color: rgba(255,255,255,.85); }

.mock-table {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.mock-table .row {
  display: grid; grid-template-columns: 1fr 1fr 1fr 110px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; align-items: center;
}
.mock-table .row:last-child { border: none; }
.mock-table .row.head { background: var(--bg-soft); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); font-weight: 700; }
.mock-table .pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.pill.ok { background: #d8f5e1; color: #1b7c3a; }
.pill.wait { background: #fff1ec; color: var(--orange-ink); }
.pill.cancel { background: #f0f2f5; color: var(--gray); }

.compliance-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px;
}
.compliance {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px;
}
.compliance .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-100); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.compliance h4 { font-size: 14px; margin-bottom: 4px; }
.compliance p { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* ----- Footer ----- */
.footer {
  background: #1f2a36; color: #cfd6df;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 40px;
}
.footer h5 {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a, .footer li { font-size: 13px; color: #9ba6b3; }
.footer a:hover { color: #fff; }
.footer-brand .script { color: var(--orange); font-size: 30px; line-height: 1; display: block; }
.footer-brand p { font-size: 12px; margin-top: 16px; color: #9ba6b3; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid #2c3744; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #6c7884;
}

/* ----- Privacy ----- */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.priv {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--orange); border-radius: var(--r-md);
  padding: 22px;
}
.priv h4 { font-size: 15px; margin-bottom: 8px; }
.priv p { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ----- Decorative wave svg color ----- */
.wave-bg path { fill: var(--blue-200); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .appt-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .testi-grid, .blog-grid { grid-template-columns: 1fr; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(31, 42, 54, .5);
  backdrop-filter: blur(6px);
  display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%;
  width: min(320px, 80vw); background: #fff;
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer .nav-link { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.mobile-drawer .close-btn {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}

/* =========================================================
   AJUSTES ESPECÍFICOS DE WORDPRESS
   ========================================================= */

/* Acciones del header (botón + hamburguesa) */
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* El menú principal se renderiza como enlaces .nav-link directos (sin ul) */
.nav-links { flex-wrap: wrap; }

/* Menú del footer (wp_nav_menu con ul) */
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-menu a { font-size: 13px; color: #9ba6b3; }
.footer-menu a:hover { color: #fff; }
.footer-widget + .footer-widget { margin-top: 18px; }

/* Paginación de WordPress */
.pagination, .nav-links.pagination { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink);
}
.page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); }
.page-numbers:hover:not(.current) { background: var(--bg-soft); }

/* Animaciones de aparición (reveal on scroll) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Escalonado suave dentro de una misma grilla */
.services-grid .reveal:nth-child(2), .pillars-grid .reveal:nth-child(2), .testi-grid .reveal:nth-child(2), .blog-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3), .pillars-grid .reveal:nth-child(3), .testi-grid .reveal:nth-child(3), .blog-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(4), .pillars-grid .reveal:nth-child(4), .blog-grid .reveal:nth-child(4) { transition-delay: .18s; }
.services-grid .reveal:nth-child(5), .pillars-grid .reveal:nth-child(5), .blog-grid .reveal:nth-child(5) { transition-delay: .24s; }
.services-grid .reveal:nth-child(6), .blog-grid .reveal:nth-child(6) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab-wa::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* Formulario: el textarea de plugin externo no rompe el layout */
.drj-plugin-form { width: 100%; }
