/* =============================================================
DESIGN TOKENS & GLOBAL SETTINGS
============================================================= */
:root {
  /* Primary palette */
  --color-brand:    #1B6CA8;
  --color-brand-hover: #0D4B78;
  --color-brand-light: rgba(27,108,168,.08);
  --color-brand-lighter: rgba(27,108,168,.16);
  --color-accent:    #2AABB5;
  --color-accent-light: rgba(42,171,181,.12);
  
  /* Semantic colors */
  --color-success:  #10B981;
  --color-warning:  #F59E0B;
  --color-error:    #EF4444;
  
  /* Grays */
  --color-bg:            #FAFAFA;
  --color-bg2:            #F1F5F9; /* usado en fondos de iconos de servicios (antes no existia) */
  --color-surface:       #FFFFFF;
  --color-surface-hover: #F8FAFC;
  --color-border:        #E2E8F0;
  --color-border-strong: #CBD5E1;
  
  --color-text:      #0F172A;
  --color-text-muted:#64748B;
  --color-text-faint:#94A3B8;
  
  /* Typography */
  --font-sans:      'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif:     'DM Serif Display', Georgia, serif;
  --font-mono:      'JetBrains Mono', monospace;
  
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.25rem;   /* 20px */
  --text-2xl:   1.5rem;    /* 24px */
  --text-3xl:   1.875rem;  /* 30px */
  --text-4xl:   2.25rem;   /* 36px */
  --text-5xl:   3rem;      /* 48px */
  --text-6xl:   3.75rem;   /* 60px */
  
  --leading-tight:   1.1;
  --leading-snug:    1.375;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;
  
  /* Spacing (4px base) */
  --space-0:   0;
  --space-1:   0.25rem;  /* 4px */
  --space-2:   0.5rem;   /* 8px */
  --space-3:   0.75rem;  /* 12px */
  --space-4:   1rem;     /* 16px */
  --space-5:   1.25rem;  /* 20px */
  --space-6:   1.5rem;   /* 24px */
  --space-8:   2rem;     /* 32px */
  --space-10:  2.5rem;   /* 40px */
  --space-12:  3rem;     /* 48px */
  --space-14:  3.5rem;   /* 56px */
  --space-16:  4rem;     /* 64px */
  --space-20:  5rem;     /* 80px */
  --space-24:  6rem;     /* 96px */
  
  /* Border radius */
  --radius-sm:    0.375rem;  /* 6px */
  --radius-md:    0.5rem;    /* 8px */
  --radius-lg:    0.75rem;   /* 12px */
  --radius-xl:    1rem;      /* 16px */
  --radius-2xl:   1.5rem;    /* 24px */
  --radius-full:  9999px;
  
  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,23,42,.03);
  --shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 4px 6px rgba(15,23,42,.05), 0 2px 4px rgba(15,23,42,.03);
  --shadow-lg:  0 10px 15px rgba(15,23,42,.06), 0 4px 6px rgba(15,23,42,.04);
  --shadow-xl:  0 20px 25px rgba(15,23,42,.08), 0 10px 10px rgba(15,23,42,.03);
  --shadow-2xl: 0 25px 50px rgba(15,23,42,.12);
  
  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 350ms;
  --duration-slower:500ms;
  
  /* Z-index scale */
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-fixed:      300;
  --z-modal:      400;
  --z-popover:    500;
  --z-toast:      600;
  --z-tooltip:    700;
  
  /* Container */
  --container-max:72rem;  /* 1152px */
  --container-pad:1.5rem; /* 24px */

  color-scheme: light;


  }
  
  /* Dark mode (optional) */
 
  
  /* =============================================================
  RESET & BASE
  ============================================================= */
  *,
  *::before,
  *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  }
  
  @media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
   animation-duration: 0.01ms !important;
   animation-iteration-count: 1 !important;
   transition-duration: 0.01ms !important;
  }
  }
  
  body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  }
  
  /* Accessibility focus */
  :focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  }
  
  /* Selection */
  ::selection {
  background: var(--color-brand-light);
  color: var(--color-brand);
  }
  
  /* Links */
  a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
  }
  
  /* Media */
  img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
  
  /* Forms */
  input, textarea, select, button {
  font: inherit;
  color: inherit;
  }
  
  /* Container utility */
  .container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  }
  
  /* =============================================================
  BUTTONS
  ============================================================= */
  .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  }
  .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  
  .btn--primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
  }
  .btn--primary:hover:not(:disabled) {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  }
  .btn--primary:active:not(:disabled) { transform: translateY(0); }
  
  .btn--secondary {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
  }
  .btn--secondary:hover:not(:disabled) {
  background: var(--color-brand-light);
  }
  
  .btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
  }
  .btn--ghost:hover:not(:disabled) {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
  }
  
  .btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
  .btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
  
  /* =============================================================
  CARDS
  ============================================================= */
  .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  }
  .card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg);
  }
  .card__body { padding: var(--space-6); }
  .card__title { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 400; color: var(--color-text); }
  .card__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed);
  margin-top: var(--space-2); }
  
  .card__number {
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-4);
  }
  
  /* =============================================================
  FORM ELEMENTS
  ============================================================= */
  .form-group { margin-bottom: var(--space-5); }
  .form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  }
  .form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
  }
  .form-input:hover { border-color: var(--color-border-strong); }
  .form-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
  }
  .form-input::placeholder { color: var(--color-text-faint); }
  .form-input:disabled { background: var(--color-bg); cursor: not-allowed; }
  
  /* =============================================================
  BADGES
  ============================================================= */
  .badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  }
  .badge--brand    { background: var(--color-brand-light);  color: var(--color-brand); }
  .badge--accent   { background: var(--color-accent-light); color: var(--color-accent); }
  .badge--success  { background: rgba(16,185,129,.12);        color: var(--color-success); }
  .badge--outline  { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }
  
  /* =============================================================
  HEADER / NAVIGATION
  ============================================================= */
  .header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base), background-color var(--duration-base);
  }
  .header--scrolled { box-shadow: var(--shadow-sm); }
  
  .header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  }
  
  .header__logo img { height: 79px; width: auto; }
  
  /* Desktop nav */
  .nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  }
  .nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--duration-fast);
  }
  .nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
  transition: width var(--duration-base) var(--ease-out);
  }
  .nav__link:hover,
  .nav__link[aria-current="page"] {
  color: var(--color-brand);
  }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after {
  width: 100%;
  }
  
  .nav__cta {
  margin-left: var(--space-2);
  color: #fff !important;
  padding: var(--space-3) var(--space-6) !important;
  font-size: var(--text-sm) !important;
}
  
  /* Mobile menu button */
  .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  }
  .nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #0F172A;  
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-in-out);
  transform-origin: center;
  }
  .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); }

  .nav-close {
    display: none;
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-hover);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 18px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    z-index: 1;
  }
  
 
  
  /* Mobile nav panel */
  @media (max-width: 768px) {

  .nav-toggle { display: flex; }
  .nav-close { display: flex; }

  .nav {

    box-shadow: -8px 0 40px rgba(15,23,42,.25);
    height: 100dvh;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(100%, 320px);
    padding: calc(72px + var(--space-6)) var(--space-6) var(--space-6);
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    transform: translateX(100%);
    overflow-y: auto;
    z-index: var(--z-fixed);
    pointer-events: none;

  }
  .nav__list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  }
  .nav--open { pointer-events: auto; }
  .nav__item { width: 100%; border-bottom: 1px solid var(--color-border); }
  .nav__item:last-child { border: none; }
  .nav__link { display: block; padding: var(--space-4) 0; font-size: var(--text-lg); }
  .nav__link::after { display: none; }
  .nav__cta { width: 100%; margin: var(--space-4) 0 0; text-align: center; }
  }
  
  /* Backdrop for mobile menu */
  .nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--duration-base);
  z-index: calc(var(--z-fixed) - 1);
  }
  .nav-backdrop--visible { display: block; opacity: 1; }
  
  /* =============================================================
  HERO SECTION
  ============================================================= */
  .hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
  }
  
  .hero__content { z-index: 1; }
  
  .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  }
  
  .hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  line-height: var(--leading-tight);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  letter-spacing: -.02em;
  }
  .hero__title em { font-style: italic; color: var(--color-accent); }
  
  .hero__description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-8);
  }
  
  .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
  
  .hero__contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  }
  .hero__contact a { font-weight: 600; color: var(--color-brand); }
  .hero__contact a:hover { text-decoration: underline; }
  
  /* Hero visual */
  .hero__visual {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  }
  
  .hero__slides { position: relative; width: 100%; height: 100%; }
  .hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duration-slower) var(--ease-out);
  will-change: opacity;
  }
  .hero__slide--active { opacity: 1; }
  
  /* Loading spinner */
  .hero__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  z-index: 1;
  transition: opacity var(--duration-base) var(--ease-out),
             visibility var(--duration-base);
  }
  .hero__loader--hidden { opacity: 0; visibility: hidden; }
  .hero__loader svg {
  width: 40px;
  height: 40px;
  color: var(--color-brand);
  animation: spin 1s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* Dots navigation */
  .hero__dots {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
  }
  .hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  }
  .hero__dot--active { background: #fff; transform: scale(1.3); }
  
  /* Mobile hero */
  @media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: var(--space-10); padding: var(--space-10)
  var(--container-pad); text-align: center; }
  .hero__eyebrow { margin: 0 auto var(--space-5); }
  .hero__description { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__contact { justify-content: center; }
  .hero__visual { aspect-ratio: 1/1; max-width: 400px; margin: 0 auto; }
  }
  
  /* =============================================================
  STAT BAR
  ============================================================= */
  .stats {
  background: var(--color-brand);
  color: #fff;
  padding: var(--space-10) var(--container-pad);
  }
  .stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6);
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  }
  .stats__value { font-family: var(--font-serif); font-size: var(--text-5xl); line-height: 1; font-weight: 400; }
  .stats__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: var(--space-1);
  }
  
  /* =============================================================
  SECTIONS
  ============================================================= */
  .section { padding: var(--space-20) var(--container-pad); }
  .section--alt { background: var(--color-bg); }
  .section__header { max-width: 40rem; margin: 0 auto var(--space-12); text-align: center; }
  .section__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  }
  .section__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  line-height: var(--leading-tight);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  }
  .section__description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  }
  
  /* Grid layout */
  .grid { display: grid; gap: var(--space-6); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  
  @media (max-width: 1024px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  }
  
  /* =============================================================
  ANIMATIONS & UTILITIES
  ============================================================= */
  @keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slide-in-right { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0);
  } }
  @keyframes scale-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
  
  /* Utility animation classes */
  .animate-fade-in-up    { animation: fade-in-up var(--duration-slower) var(--ease-out) forwards; opacity: 0; }
  .animate-fade-in       { animation: fade-in var(--duration-slow) var(--ease-out) forwards; opacity: 0; }
  .animate-slide-in-right { animation: slide-in-right var(--duration-slow) var(--ease-out) forwards; opacity: 0; }
  .animate-scale-in      { animation: scale-in var(--duration-slow) var(--ease-out) forwards; opacity: 0; }
  
  /* Optional staggered delays via inline style */
  @media (prefers-reduced-motion: no-preference) {
  [style*="--delay"] { animation-delay: calc(var(--delay, 0) * 100ms); }
  }
  
  /* Hover lift effect for cards/buttons */
  .lift-on-hover {
  transition: transform var(--duration-base) var(--ease-out),
             box-shadow var(--duration-base) var(--ease-out);
  }
  .lift-on-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  }
  
  /* Icon spin on hover */
  .icon-spin:hover { animation: spin .6s var(--ease-out); }
  
  /* Shimmer skeleton */
  @keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
  }
  .skeleton {
  background: linear-gradient(90deg,
   var(--color-border) 25%,
   var(--color-border-strong) 50%,
   var(--color-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  }
  
  /* Performance utilities (global overrides) */
  .performance-mode *,
  .performance-mode *::before,
  .performance-mode *::after {
  animation-duration: .01s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01s !important;
  }
  
  /* Scroll-reveal utility */
  .scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  }
  .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
  }
  body.performance-mode .scroll-reveal {
  opacity: 1;
  transform: none;
  transition: none;
  }
  
  /* =============================================================
  PAGE HEADER (secondary pages: proceso, servicios, contacto)
  ============================================================= */
  .page-header {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-20) var(--container-pad) var(--space-12);
  text-align: center;
  }
  .page-header .badge { margin-bottom: var(--space-5); }
  .page-header__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
  line-height: var(--leading-tight);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -.02em;
  }
  .page-header__title em { font-style: italic; color: var(--color-accent); }
  .page-header__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  }
  
  /* =============================================================
  PROCESS STEPS
  ============================================================= */
  .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  }
  .step { position: relative; text-align: left; }
  .step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  }
  .step__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  }
  .step__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
  .step__line {
  display: none;
  position: absolute;
  top: 24px;
  left: calc(100% + var(--space-4) / 2);
  width: var(--space-8);
  height: 2px;
  background: var(--color-border-strong);
  }
  .step:not(:last-child) .step__line { display: block; }
  
  @media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step__line { display: none !important; }
  }
  @media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  }
  
  /* =============================================================
  WHY / DETAIL GRID (icon cards)
  ============================================================= */
  .why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  }
  .why-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-base) var(--ease-out);
  }
  .why-item:hover { border-color: var(--color-brand); box-shadow: var(--shadow-lg); }
  .why-item__icon { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
  .why-item__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  }
  .why-item__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }
  
  @media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }
  
  /* =============================================================
  TESTIMONIALS
  ============================================================= */
  .testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  }
  .testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  }
  .testimonial__stars { color: var(--color-warning); letter-spacing: .1em; margin-bottom: var(--space-4); }
  .testimonial__quote {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  }
  .testimonial__author { display: flex; align-items: center; gap: var(--space-3); }
  .testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
  }
  .testimonial__name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
  .testimonial__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
  
  @media (max-width: 1024px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .testimonials { grid-template-columns: 1fr; } }
  
  /* =============================================================
  CTA BAND
  ============================================================= */
  .cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  background: var(--color-brand);
  color: #fff;
  padding: var(--space-12) var(--container-pad);
  }
  .cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  }
  .cta-band__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  display: block;
  }
  .cta-band__title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
  }
  .cta-band__text { color: rgba(255,255,255,.8); }
  .cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
  .cta-band .btn--primary { background: #fff; color: var(--color-brand); border-color: #fff; }
  .cta-band .btn--primary:hover { background: rgba(255,255,255,.9); }
  .cta-band .btn--secondary { color: #fff; border-color: rgba(255,255,255,.5); }
  .cta-band .btn--secondary:hover { background: rgba(255,255,255,.12); }
  .cta-band__tel { font-weight: 600; color: #fff; }
  .cta-band__tel:hover { text-decoration: underline; }
  
  @media (max-width: 768px) {
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }
  }
  
  /* =============================================================
  INFO BAR
  ============================================================= */
  .info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-16) var(--container-pad);
  }
  .info-bar__item { display: flex; flex-direction: column; gap: var(--space-1); }
  .info-bar__item strong {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  }
  .info-bar__item span,
  .info-bar__item a { font-size: var(--text-sm); color: var(--color-text-muted); }
  .info-bar__item a:hover { color: var(--color-brand); }
  
  @media (max-width: 1024px) { .info-bar { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) { .info-bar { grid-template-columns: 1fr; } }
  
  /* =============================================================
  SERVICES GRID (servicios.html)
  ============================================================= */
  
  .services-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) 0;
    }
    @media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
  
  /* Individual service card */
  .svc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  /* Fix: fuerza una capa de composición propia en Safari para evitar el
     bug de "repintado fantasma" (ghosting) al hacer scroll con overflow:hidden + border-radius */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
  }
  .svc:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-lg);
  }
  
  /* Number badge (01, 02, …) */
  .svc-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-brand);
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  margin: var(--space-4) auto var(--space-2); /* center vertically */
  /* Fix: misma capa de composición propia para el círculo, que es donde
     se veía el número fantasma superpuesto */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  }
  
  /* Service name */
  .svc-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 var(--space-4) var(--space-2);
  }
  
  /* Service description */
  .svc-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0 var(--space-4) var(--space-3);
  flex-grow: 1; /* push price to bottom */
  }
  
  /* Price tag */
  .svc-price {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-brand);
    margin: var(--space-2) var(--space-4) var(--space-2);
    align-self: flex-start;
  }
  
  /* List of features */
  .svc-list {
  list-style: none;
  margin: var(--space-2) var(--space-4) var(--space-4);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  }
  .svc-list li {
  position: relative;
  padding-left: var(--space-3);
  margin-bottom: var(--space-1);
  }
  .svc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-brand);
  }
  
  /* =============================================================
  FOOTER
  ============================================================= */
  
  .footer {
  background: var(--color-bg);          /* light background */
  color: var(--color-text-muted);      /* default footer text colour */
  padding: var(--space-14) var(--container-pad);
  margin-top: auto;
  position: relative;
  overflow: hidden;
  }
  
  /* Optional subtle top-border separator */
  .footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  top: -1px;
  background: linear-gradient(
     90deg,
     transparent,
     var(--color-border-strong),
     transparent
  );
  }
  
  /* Inner layout */
  .footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
  }
  
  /* Copyright text – use the same colour as the Facebook/Instagram/WhatsApp links */
  .footer__copyright {
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-accent);
  }
  
  /* Social / link group */
  .footer__links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
  }
  
  /* Individual link */
  .footer__link {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition:
     color var(--duration-fast) var(--ease-out),
     transform var(--duration-base) var(--ease-out);
  }
  
  /* Hover / focus states */
  .footer__link:hover,
  .footer__link:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  }
  
  /* Active (pressed) state */
  .footer__link:active {
  transform: translateY(0);
  }
  
  /* Icon hover scaling */
  .footer__link svg,
  .footer__link i {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
  }
  .footer__link:hover svg,
  .footer__link:hover i,
  .footer__link:focus-visible svg,
  .footer__link:focus-visible i {
  transform: scale(1.1);
  }
  
  /* Responsive tweak – stack vertically on very narrow screens */
  @media (max-width: 480px) {
  .footer__inner {
     flex-direction: column;
     align-items: flex-start;
     gap: var(--space-4);
  }
  .footer__copyright {
    order: -1;
    margin-bottom: var(--space-3);
  }
  }


  #servicios-preview {
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
  }
  
  #servicios-preview::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(63,193,255,0.25) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    animation: neonPulse 3.5s ease-in-out infinite;
  }
  
  #servicios-preview::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    background-image: url('/img/logo_podoembellece.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }
  
  @keyframes neonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
  }
  
  #servicios-preview .container {
    position: relative;
    z-index: 1;
  }

  @media (max-width: 480px) {
    .services-grid,
    .grid--auto {
      grid-template-columns: 1fr;
    }
    .header__inner { height: 70px; }
    .header__logo img { height: 56px; }
    #servicios-preview::before,
    #servicios-preview::after {
      width: 400px;
      height: 400px;
    }
  }