/* =========================================================
   Oscar Mejía | Web & AI Solutions
   Design system: navy + electric blue + white, minimalist/premium
   ========================================================= */

:root {
  /* Palette */
  --navy-900: #0b1b33;
  --navy-800: #122544;
  --navy-700: #1a3358;
  --blue-600: #1e5eff;
  --blue-500: #2f6fed;
  --blue-400: #5b8dff;
  --blue-100: #e8effe;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e2e6ed;
  --gray-400: #9aa4b2;
  --gray-600: #5b6472;
  --ink: #10182b;
  --ink-soft: #35405a;
  --line: rgba(16, 24, 43, 0.1);
  --success: #1c8a53;
  --danger: #c02b2b;

  /* Type */
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 27, 51, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, 0.16);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whatsapp-float-pulse { animation: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--gray-50); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 0.75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  max-width: 34ch;
}
.section-desc {
  margin-top: 0.9rem;
  color: var(--gray-600);
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.section-head { margin-bottom: 2.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s var(--ease-out), color 0.18s var(--ease-out);
  min-height: 48px;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-900); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--white); color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-whatsapp { background: #1fa855; color: var(--white); }
.btn-whatsapp:hover { background: #178a45; box-shadow: var(--shadow-md); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-nav { margin-left: 1.5rem; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 34px; height: 34px; color: var(--blue-600); }
.icon-xl { width: 44px; height: 44px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(255, 255, 255, 0.98); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy-900); }
.logo-tag { font-size: 0.72rem; color: var(--blue-600); font-weight: 600; letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 0.35rem 0.1rem;
  transition: color 0.15s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue-600);
  transition: right 0.22s var(--ease-out);
}
.nav-list a:hover { color: var(--navy-900); }
.nav-list a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--navy-900); 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); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1.25rem 1.5rem 1.75rem;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 1.25rem; }
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.mobile-nav-list a:hover { color: var(--blue-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: clip;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 65%);
}
.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -12%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(47, 111, 237, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: 1.2rem;
}
.hero-desc { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.65; max-width: 56ch; margin-bottom: 0.9rem; }
.hero-sub { font-size: 1rem; color: var(--gray-600); line-height: 1.6; max-width: 54ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.9rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.hero-trust li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding-left: 1.15rem;
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
}

.hero-media { display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 4.75;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  outline: 1px solid var(--line);
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-frame img.is-placeholder { object-fit: contain; padding: 14%; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); }

.hero-photo-badge {
  position: absolute;
  left: -1.1rem;
  bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--navy-900);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.hero-photo-badge .icon { width: 17px; height: 17px; color: var(--blue-600); }
@media (max-width: 639px) {
  .hero-photo-badge { left: 50%; transform: translateX(-50%); bottom: -0.9rem; }
}

/* ---------- Sobre mí ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 4.75;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
  outline: 1px solid var(--line);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-frame img.is-placeholder { object-fit: contain; padding: 14%; }
.about-copy p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1rem; font-size: 1.03rem; }
.values-list { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.value-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.88rem;
}
.value-item .icon { width: 17px; height: 17px; color: var(--blue-600); }

/* ---------- Servicios ---------- */
.services-category-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
}
.services-category-title:first-of-type { margin-top: 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card h4 { font-size: 1.12rem; margin: 1rem 0 0.6rem; }
.service-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.7rem; }
.service-benefit { color: var(--navy-800) !important; font-weight: 600; font-size: 0.9rem !important; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Beneficios ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem 1.5rem;
}
.benefit-item .icon { color: var(--blue-600); margin-bottom: 0.9rem; width: 28px; height: 28px; }
.benefit-item h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.benefit-item p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.55; }

/* ---------- Proceso ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: 1rem;
  border-top: 3px solid var(--blue-600);
}
.process-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue-500);
  margin-bottom: 0.6rem;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Portafolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-visual {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: rgba(255,255,255,0.85);
}
.portfolio-body { padding: 1.5rem; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; padding: 0.3rem 0.7rem; border-radius: 999px; }
.badge-demo { background: var(--blue-100); color: var(--blue-600); margin-bottom: 0.7rem; }
.portfolio-category { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-bottom: 0.35rem; }
.portfolio-body h4 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.portfolio-body p { color: var(--gray-600); font-size: 0.93rem; line-height: 1.55; margin-bottom: 0.9rem; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.portfolio-tags li {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: var(--gray-100);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- Formulario de cotización ---------- */
.cotizacion-inner { max-width: 760px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.45rem; color: var(--navy-900); }
.form-field .optional { font-weight: 500; color: var(--gray-400); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--ink);
  font-size: 0.98rem;
  min-height: 48px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--blue-600); background: var(--white); outline: none; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--danger); background: #fdf2f2; }
.field-error { color: var(--danger); font-size: 0.84rem; margin-top: 0.4rem; min-height: 1.1em; }

.form-field-checkbox { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem; }
.form-field-checkbox input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--blue-600); flex-shrink: 0; }
.form-field-checkbox label { font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.form-field-checkbox label a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }
.form-field-checkbox .field-error { flex-basis: 100%; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--gray-600); min-height: 1.2em; }
.form-note:not(:empty) { color: var(--danger); font-weight: 600; }
[data-form-error-whatsapp] { margin-top: 0.9rem; }

.form-success { text-align: center; padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2rem); }
.form-success .icon-xl { color: var(--success); margin-bottom: 1rem; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.form-success p { color: var(--gray-600); line-height: 1.6; max-width: 48ch; margin: 0 auto 1.6rem; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid > div:first-child p { color: var(--ink-soft); line-height: 1.7; margin: 1rem 0 1.75rem; font-size: 1.03rem; }
.contact-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--white);
}
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.75rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-list .icon { color: var(--blue-400); margin-top: 0.15rem; }
.contact-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); margin-bottom: 0.15rem; }
.contact-list a { font-weight: 700; }
.contact-list a:hover { color: var(--blue-400); }
.contact-address { display: flex; flex-direction: column; gap: 0.1rem; font-weight: 700; }
.social-list { display: flex; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.14); }
.social-list a { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.92rem; }
.social-list .icon { width: 19px; height: 19px; }
.social-list a:hover { color: var(--blue-400); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 800px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue-600);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; color: var(--gray-600); line-height: 1.6; font-size: 0.96rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta-final-inner { text-align: center; max-width: 720px; }
.cta-final h2 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.65; margin-bottom: 2rem; }
.cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 3.5rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.75rem; }
.footer-brand .logo-name { color: var(--white); font-size: 1.15rem; display: block; }
.footer-brand .logo-tag { color: var(--blue-400); font-size: 0.75rem; font-weight: 700; }
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; line-height: 1.6; max-width: 30ch; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-col span { font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1fa855;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) 0 5rem; }
.legal-content h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 0.5rem; }
.legal-updated { color: var(--gray-400); font-size: 0.88rem; margin-bottom: 2.5rem; }
.legal-content h2 { font-size: 1.2rem; margin: 2.2rem 0 0.8rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); line-height: 1.75; font-size: 1rem; margin-bottom: 0.9rem; }
.legal-content ul { padding-left: 1.3rem; list-style: disc; }
.legal-content a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2rem; font-weight: 700; color: var(--blue-600); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-bottom: 1rem; }
  .hero-photo-frame { max-width: 300px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { display: flex; justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  :root { --header-h: 68px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-step { border-top: none; border-left: 3px solid var(--blue-600); padding-top: 0; padding-left: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .cta-final-actions .btn { width: 100%; }
  .hero-actions, .cta-final-actions { flex-direction: column; }
  .btn-nav { display: none; }
}

@media (min-width: 1024px) {
  .whatsapp-float { right: 1.75rem; bottom: 1.75rem; }
}
