/* ============================================================
   ANDERSON FRIO GROUP — Premium Refrigeration Web 2026
   Design system: Industrial precision · Ice palette · Editorial typography
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Color palette — cold, technical, trustworthy */
  --c-ink:           #06142E;   /* deepest navy — body text on light */
  --c-navy:          #0A2A5E;   /* primary navy */
  --c-navy-2:        #143A75;   /* lighter navy */
  --c-ice:           #06D4F0;   /* signature ice cyan */
  --c-ice-soft:      #5DE5F5;   /* lighter ice */
  --c-frost:         #E6F4F8;   /* very light blue-white */
  --c-mist:          #F4F7FA;   /* surface gray-blue */
  --c-line:          #DCE4EE;   /* subtle borders */
  --c-line-dark:     #1F3A6B;   /* borders on dark */
  --c-white:         #FFFFFF;
  --c-muted:         #5A6B85;   /* secondary text */
  --c-muted-dark:    #8FA4C2;   /* secondary text on dark */
  --c-success:       #1FB97A;
  --c-whatsapp:      #25D366;

  /* Gradients */
  --g-deep:        linear-gradient(135deg, #06142E 0%, #0A2A5E 60%, #143A75 100%);
  --g-ice:         linear-gradient(135deg, #06D4F0 0%, #5DE5F5 100%);
  --g-frost-fade:  linear-gradient(180deg, rgba(230,244,248,0) 0%, #E6F4F8 100%);
  --g-overlay:     linear-gradient(180deg, rgba(6,20,46,0.55) 0%, rgba(6,20,46,0.85) 100%);

  /* Typography */
  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", "Courier New", monospace;

  /* Type scale (clamp for fluid) */
  --fs-xs:   0.78rem;
  --fs-sm:   0.88rem;
  --fs-base: 1rem;
  --fs-md:   1.06rem;
  --fs-lg:   clamp(1.15rem, 1.04rem + 0.4vw, 1.32rem);
  --fs-xl:   clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-2xl:  clamp(1.85rem, 1.5rem + 1.5vw, 2.5rem);
  --fs-3xl:  clamp(2.4rem, 1.8rem + 2.5vw, 3.6rem);
  --fs-4xl:  clamp(3rem, 2.2rem + 3.5vw, 4.8rem);

  /* Spacing */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem;
  --s-4: 1rem;     --s-5: 1.5rem;  --s-6: 2rem;
  --s-7: 3rem;     --s-8: 4rem;    --s-9: 5rem;
  --s-10: 6rem;    --s-11: 8rem;

  /* Layout */
  --container:  1240px;
  --container-narrow: 920px;
  --radius-sm:  6px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Shadows */
  --sh-sm:  0 1px 2px rgba(6,20,46,0.06);
  --sh-md:  0 8px 24px -6px rgba(6,20,46,0.10), 0 2px 6px -2px rgba(6,20,46,0.06);
  --sh-lg:  0 24px 48px -12px rgba(6,20,46,0.18), 0 4px 12px -2px rgba(6,20,46,0.08);
  --sh-xl:  0 40px 80px -20px rgba(6,20,46,0.22);
  --sh-ice: 0 20px 60px -10px rgba(6,212,240,0.35);

  /* Motion */
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-mid:  320ms;
  --t-slow: 600ms;

  /* Z layers */
  --z-header: 100;
  --z-fab:    90;
  --z-modal:  200;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-ice); }

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

h1 { font-size: var(--fs-4xl); font-weight: 700; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }

p { color: var(--c-muted); }

::selection { background: var(--c-ice); color: var(--c-ink); }

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--c-white); }

/* Focus visible — keyboard nav */
:focus-visible {
  outline: 2px solid var(--c-ice);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   3. UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-navy);
  padding: 6px 14px 6px 12px;
  background: var(--c-frost);
  border-radius: 999px;
  border: 1px solid rgba(6,212,240,0.25);
  margin-bottom: var(--s-5);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-ice);
  box-shadow: 0 0 0 3px rgba(6,212,240,0.25);
}
.eyebrow.on-dark {
  background: rgba(6,212,240,0.10);
  color: var(--c-ice-soft);
  border-color: rgba(6,212,240,0.3);
}

.section-title {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title h2 {
  margin-bottom: var(--s-4);
}
.section-title p {
  font-size: var(--fs-lg);
  max-width: 620px;
  margin: 0 auto;
}

/* Grid */
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background var(--t-mid) var(--ease),
              color var(--t-mid) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px; height: 18px;
  transition: transform var(--t-fast) var(--ease);
}

.btn:hover { transform: translateY(-2px); color: inherit; }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(0); }

/* Primary — deep navy with ice border on hover */
.btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
  box-shadow: var(--sh-md);
}
.btn-primary:hover {
  background: var(--c-navy);
  color: var(--c-white);
  box-shadow: 0 16px 32px -8px rgba(6,20,46,0.4);
}

/* Ice — signature accent */
.btn-ice {
  background: var(--c-ice);
  color: var(--c-ink);
  box-shadow: var(--sh-ice);
}
.btn-ice:hover {
  background: var(--c-ice-soft);
  color: var(--c-ink);
}

/* WhatsApp variant */
.btn-whatsapp {
  background: var(--c-whatsapp);
  color: var(--c-white);
  box-shadow: 0 12px 24px -6px rgba(37,211,102,0.4);
}
.btn-whatsapp:hover {
  background: #1ebd5a;
  color: var(--c-white);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-outline:hover {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
}

.btn-outline.on-dark {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline.on-dark:hover {
  background: var(--c-white);
  color: var(--c-ink);
  border-color: var(--c-white);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  padding: 12px 18px;
}
.btn-ghost:hover {
  color: var(--c-navy);
  background: var(--c-mist);
}

.btn-lg { padding: 16px 32px; font-size: var(--fs-md); }
.btn-sm { padding: 10px 18px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 18px 0;
  transition: background var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease),
              padding var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(6,20,46,0.06), 0 8px 24px -12px rgba(6,20,46,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(6,20,46,0.12));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--c-muted);
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 999px;
  position: relative;
  transition: all var(--t-fast) var(--ease);
}
.nav a:hover {
  background: var(--c-mist);
  color: var(--c-navy);
}
.nav a.active {
  color: var(--c-navy);
  background: var(--c-frost);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-mist);
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease);
}
.nav-toggle:hover { background: var(--c-frost); }
.nav-toggle svg { width: 20px; height: 20px; color: var(--c-ink); }

/* Mobile-only CTA inside nav drawer (hidden on desktop) */
.nav .btn-mobile { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .header-cta .btn:not(.nav-toggle) { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 28px 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t-mid) var(--ease-out);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 14px;
    border-bottom: 1px solid var(--c-line);
  }
  .nav a:last-child { border-bottom: 0; }

  .nav .btn-mobile {
    display: inline-flex;
    margin-top: 24px;
    justify-content: center;
  }
}

/* Body lock when nav open */
body.nav-locked { overflow: hidden; }

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 100px;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}

/* Layered atmospheric background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(6,212,240,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(20,58,117,0.6) 0%, transparent 60%),
    var(--g-deep);
  z-index: -2;
}

/* Technical grid pattern overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 240px);
}

.hero-content { max-width: 640px; }

.hero h1 {
  color: var(--c-white);
  font-size: clamp(2.5rem, 1.8rem + 3.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: var(--s-5);
}
.hero h1 .accent {
  color: var(--c-ice);
  font-style: italic;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.08em;
  width: 100%; height: 0.12em;
  background: var(--c-ice);
  opacity: 0.18;
  border-radius: 3px;
}

.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.22rem);
  color: var(--c-muted-dark);
  max-width: 540px;
  margin-bottom: var(--s-7);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--s-8);
}
.hero-actions .btn-outline {
  color: var(--c-white);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-outline:hover {
  background: var(--c-white);
  color: var(--c-ink);
  border-color: var(--c-white);
}

/* Hero meta — quick trust signals */
.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-meta-item .num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-ice);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-meta-item .label {
  font-size: 0.82rem;
  color: var(--c-muted-dark);
  line-height: 1.3;
  max-width: 110px;
}

/* Hero visual — image card with floating widget */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin-left: auto;
  width: 100%;
}
.hero-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(6,212,240,0.1), rgba(10,42,94,0.4));
}
.hero-visual-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,20,46,0.55) 100%);
  z-index: 1;
}

/* Floating glass card on hero */
.hero-card {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255,255,255,0.5);
  max-width: 280px;
  z-index: 2;
}
.hero-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-ice);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-card-icon svg { width: 22px; height: 22px; color: var(--c-ink); }
.hero-card-text { display: flex; flex-direction: column; }
.hero-card-text strong {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--c-ink);
  font-weight: 600;
}
.hero-card-text span {
  font-size: 0.8rem;
  color: var(--c-muted);
}

/* Hero badge — top right corner */
.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(6,212,240,0.95);
  color: var(--c-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-ink);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

@media (max-width: 900px) {
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 4; }
  .hero-card { left: 16px; bottom: -20px; max-width: 240px; padding: 14px 18px; }
}

/* ------------------------------------------------------------
   7. MARQUEE / SERVICES STRIP
   ------------------------------------------------------------ */
.strip {
  background: var(--c-mist);
  padding: 22px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  position: relative;
}
.strip-track {
  display: flex;
  gap: 60px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.strip-item svg { width: 18px; height: 18px; color: var(--c-ice); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ------------------------------------------------------------
   8. ABOUT
   ------------------------------------------------------------ */
.about { background: var(--c-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,20,46,0.4) 100%);
  z-index: 1;
}

/* Floating "experience" badge */
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-lg);
}
.about-badge .num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--c-ice);
  line-height: 1;
}
.about-badge .label {
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 130px;
}

.about-content h2 {
  margin-bottom: var(--s-5);
}
.about-content > p {
  font-size: var(--fs-md);
  margin-bottom: var(--s-5);
  color: var(--c-muted);
}

.about-points {
  display: grid;
  gap: 14px;
  margin: var(--s-6) 0;
}
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-point-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--c-frost);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-point-icon svg { width: 16px; height: 16px; color: var(--c-navy); }
.about-point-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: var(--c-ink);
  margin-bottom: 2px;
  font-weight: 600;
}
.about-point-text span {
  font-size: 0.93rem;
  color: var(--c-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { aspect-ratio: 4 / 4; max-width: 540px; }
}

/* ------------------------------------------------------------
   9. SERVICES
   ------------------------------------------------------------ */
.services {
  background:
    linear-gradient(180deg, var(--c-white) 0%, var(--c-mist) 100%);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease);
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--c-frost);
  color: var(--c-navy);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-5);
  position: relative;
  transition: all var(--t-mid) var(--ease);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: var(--c-ink);
  color: var(--c-ice);
}

.service-card h3 {
  font-size: 1.32rem;
  margin-bottom: var(--s-3);
  color: var(--c-ink);
}
.service-card p {
  font-size: 0.96rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: var(--s-5);
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-navy);
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-link svg {
  width: 16px; height: 16px;
  transition: transform var(--t-fast) var(--ease);
}
.service-card:hover .service-link { color: var(--c-ink); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* Service number — subtle backdrop digit */
.service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--f-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--c-frost);
  line-height: 1;
  z-index: -1;
  letter-spacing: -0.04em;
}

/* ------------------------------------------------------------
   10. WHY US (Benefits)
   ------------------------------------------------------------ */
.why {
  background: var(--c-ink);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(6,212,240,0.15) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(20,58,117,0.5) 0%, transparent 50%);
  z-index: 0;
}
.why .container { position: relative; z-index: 1; }
.why h2 { color: var(--c-white); }
.why .section-title p { color: var(--c-muted-dark); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-item {
  background: var(--c-ink);
  padding: 36px 30px;
  transition: background var(--t-mid) var(--ease);
  position: relative;
}
.why-item:hover {
  background: linear-gradient(135deg, rgba(6,212,240,0.06), transparent);
}
.why-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(6,212,240,0.12);
  color: var(--c-ice);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-5);
  border: 1px solid rgba(6,212,240,0.2);
}
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 {
  color: var(--c-white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.why-item p {
  color: var(--c-muted-dark);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------
   11. PROCESS (timeline)
   ------------------------------------------------------------ */
.process { background: var(--c-white); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--c-line),
    var(--c-line) 6px,
    transparent 6px,
    transparent 12px
  );
}
.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.process-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  border: 2px solid var(--c-line);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-5);
  position: relative;
  z-index: 1;
  transition: all var(--t-mid) var(--ease);
}
.process-step:hover .process-num {
  background: var(--c-ink);
  color: var(--c-ice);
  border-color: var(--c-ink);
  transform: scale(1.05);
}
.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.92rem;
  color: var(--c-muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-grid::before { display: none; }
  .process-step { display: grid; grid-template-columns: 80px 1fr; text-align: left; gap: 18px; align-items: center; padding: 0; }
  .process-num { margin: 0; }
}

/* ------------------------------------------------------------
   12. PROJECTS GALLERY
   ------------------------------------------------------------ */
.projects { background: var(--c-mist); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-ink);
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
.gallery-item img, .gallery-item picture {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.gallery-item picture { display: block; }
.gallery-item picture img { transition: transform 800ms var(--ease); }

/* Bento sizes */
.g-sm { grid-column: span 4; grid-row: span 1; }
.g-md { grid-column: span 4; grid-row: span 2; }
.g-lg { grid-column: span 6; grid-row: span 2; }
.g-wide { grid-column: span 8; grid-row: span 1; }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,20,46,0.85) 100%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.gallery-item:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  color: var(--c-white);
  z-index: 2;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--t-mid) var(--ease);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-caption strong {
  font-family: var(--f-display);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.gallery-caption span {
  font-size: 0.82rem;
  color: var(--c-ice-soft);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 140px;
  }
  .g-sm { grid-column: span 3; }
  .g-md { grid-column: span 3; grid-row: span 2; }
  .g-lg { grid-column: span 6; grid-row: span 2; }
  .g-wide { grid-column: span 6; }
  .gallery-caption { transform: translateY(0); opacity: 1; }
  .gallery-item::after { opacity: 0.6; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,20,46,0.92);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.lightbox.active { display: flex; opacity: 1; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--sh-xl);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--c-white);
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------
   13. STATS
   ------------------------------------------------------------ */
.stats { background: var(--c-white); padding: clamp(3rem, 6vw, 5rem) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--c-white);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--t-fast) var(--ease);
}
.stat:hover { background: var(--c-frost); }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.4rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat-num .suffix {
  color: var(--c-ice);
  font-size: 0.7em;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--c-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   14. TESTIMONIALS
   ------------------------------------------------------------ */
.testimonials {
  background: var(--c-mist);
  position: relative;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid var(--c-line);
  position: relative;
  transition: transform var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.testi-quote {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--c-frost);
  font-weight: 700;
  user-select: none;
  pointer-events: none;
}
.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--s-4);
  color: #FFB300;
}
.testi-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testi-text {
  font-size: 0.98rem;
  color: var(--c-ink);
  line-height: 1.6;
  margin-bottom: var(--s-5);
  flex-grow: 1;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--g-deep);
  color: var(--c-white);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
/* Variar el color del avatar para que parezcan personas distintas */
.testi-grid > .testi-card:nth-child(2) .testi-avatar {
  background: linear-gradient(135deg, #06D4F0 0%, #0A2A5E 100%);
}
.testi-grid > .testi-card:nth-child(3) .testi-avatar {
  background: linear-gradient(135deg, #1E40AF 0%, #06142E 100%);
}
.testi-grid > .testi-card:nth-child(4) .testi-avatar {
  background: linear-gradient(135deg, #0EA5E9 0%, #0A2A5E 100%);
}
.testi-grid > .testi-card:nth-child(5) .testi-avatar {
  background: linear-gradient(135deg, #38BDF8 0%, #06142E 100%);
}
.testi-grid > .testi-card:nth-child(6) .testi-avatar {
  background: linear-gradient(135deg, #2563EB 0%, #06D4F0 100%);
}
.testi-info strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-ink);
}
.testi-info span {
  font-size: 0.85rem;
  color: var(--c-muted);
}

/* ------------------------------------------------------------
   15. FAQ
   ------------------------------------------------------------ */
.faq { background: var(--c-white); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-aside h2 { margin-bottom: var(--s-5); }
.faq-aside p { font-size: var(--fs-md); margin-bottom: var(--s-6); }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--c-mist);
  border-radius: var(--radius);
  border: 1px solid transparent;
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
}
/* Override native <details> behavior so .faq-a is always rendered
   and the max-height transition can animate smoothly */
.faq-item > *:not(summary) { display: block; }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item.open {
  background: var(--c-white);
  border-color: var(--c-line);
  box-shadow: var(--sh-md);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
}
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--t-mid) var(--ease);
  border: 1px solid var(--c-line);
}
.faq-icon svg {
  width: 14px; height: 14px;
  transition: transform var(--t-mid) var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--c-ink);
  color: var(--c-ice);
  border-color: var(--c-ink);
}
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid) var(--ease);
}
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 0.96rem;
  color: var(--c-muted);
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 400px;
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ------------------------------------------------------------
   16. CONTACT / QUOTE FORM
   ------------------------------------------------------------ */
.contact {
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-mist) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}

/* Left card — info */
.contact-info {
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(6,212,240,0.18) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(20,58,117,0.4) 0%, transparent 60%);
}
.contact-info > * { position: relative; z-index: 1; }

.contact-info h2 {
  color: var(--c-white);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem);
  margin-bottom: var(--s-4);
}
.contact-info > p {
  color: var(--c-muted-dark);
  margin-bottom: var(--s-7);
  line-height: 1.6;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-bottom: var(--s-7);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(6,212,240,0.15);
  color: var(--c-ice);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(6,212,240,0.25);
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-text small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-muted-dark);
  margin-bottom: 4px;
}
.contact-item-text a, .contact-item-text strong {
  color: var(--c-white);
  font-weight: 600;
  font-size: 1.02rem;
  display: block;
  font-family: var(--f-display);
}
.contact-item-text a:hover { color: var(--c-ice); }

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--c-white);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--t-fast) var(--ease);
}
.contact-socials a:hover {
  background: var(--c-ice);
  color: var(--c-ink);
  border-color: var(--c-ice);
  transform: translateY(-2px);
}
.contact-socials svg { width: 18px; height: 18px; }

/* Right card — form */
.contact-form-wrap {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
}
.form-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-navy);
  margin-bottom: var(--s-3);
}
.contact-form-wrap h3 {
  margin-bottom: var(--s-2);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
}
.contact-form-wrap > p {
  margin-bottom: var(--s-6);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row { display: contents; }
.form-row > .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.field label .req { color: #DC2626; }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--c-mist);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: all var(--t-fast) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-ice);
  box-shadow: 0 0 0 4px rgba(6,212,240,0.1);
}
.input::placeholder, .textarea::placeholder { color: #9AA8BD; }
.textarea { resize: vertical; min-height: 120px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6B85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 42px;
}

/* Field error state */
.field.error .input,
.field.error .select,
.field.error .textarea {
  border-color: #DC2626;
  background: #FEF2F2;
}
.field.error .input:focus,
.field.error .select:focus,
.field.error .textarea:focus {
  box-shadow: 0 0 0 4px rgba(220,38,38,0.12);
}
.field-error {
  display: none;
  font-size: 0.8rem;
  color: #DC2626;
  font-weight: 500;
  margin-top: 2px;
  align-items: center;
  gap: 6px;
}
.field-error svg { width: 14px; height: 14px; flex-shrink: 0; }
.field.error .field-error { display: inline-flex; }

.form-submit {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-note {
  font-size: 0.84rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-note svg { width: 14px; height: 14px; color: var(--c-success); flex-shrink: 0; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   17. CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/cta-bg.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: -1;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(6,212,240,0.25) 0%, transparent 50%),
    var(--g-deep);
  opacity: 0.92;
  z-index: -1;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
.cta-inner h2 {
  color: var(--c-white);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  margin-bottom: var(--s-3);
}
.cta-inner p {
  color: var(--c-muted-dark);
  font-size: var(--fs-md);
  max-width: 560px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { justify-content: center; }
}

/* ------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: #04101F;
  color: var(--c-muted-dark);
  padding: clamp(3rem, 6vw, 5rem) 0 var(--s-6);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--s-7);
}
.footer-brand .brand img { width: 50px; height: 50px; }
.footer-brand .brand-name { color: var(--c-white); }
.footer-brand .brand-tag { color: var(--c-muted-dark); }
.footer-brand p {
  margin-top: var(--s-4);
  color: var(--c-muted-dark);
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--c-white);
  font-size: 0.95rem;
  margin-bottom: var(--s-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--f-display);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--c-muted-dark);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--c-ice); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--c-muted-dark);
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  color: var(--c-ice);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a { color: var(--c-muted-dark); }

.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom .legal {
  display: flex;
  gap: 18px;
}
.footer-bottom .legal a { font-size: 0.85rem; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   19. FLOATING BUTTONS
   ------------------------------------------------------------ */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-fab);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-whatsapp);
  color: var(--c-white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37,211,102,0.45);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease);
  z-index: var(--z-fab);
}
.fab:hover {
  transform: translateY(-3px) scale(1.05);
  color: var(--c-white);
  box-shadow: 0 18px 36px rgba(37,211,102,0.6);
}
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--c-whatsapp);
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes fab-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab::before { animation: none; }
}

/* Fab tooltip */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--c-ink);
  color: var(--c-white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.fab-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--c-ink);
}
.fab:hover .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
@media (max-width: 600px) { .fab-tooltip { display: none; } }

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-white);
  display: grid;
  place-items: center;
  z-index: var(--z-fab);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--t-mid) var(--ease);
  box-shadow: var(--sh-lg);
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--c-navy);
  color: var(--c-ice);
}
.scroll-top svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .scroll-top { display: none; }
}

/* ------------------------------------------------------------
   20. ANIMATIONS (reveal on scroll)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 490ms; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ------------------------------------------------------------
   21. TOAST (notifications)
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  box-shadow: var(--sh-xl);
  transform: translateX(120%);
  transition: transform var(--t-mid) var(--ease-out);
  border-left: 4px solid var(--c-ice);
  max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--c-success); }
.toast.error { border-left-color: #DC2626; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ------------------------------------------------------------
   22. PRELOADER
   ------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--c-ink);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 500ms var(--ease), visibility 500ms var(--ease);
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(6,212,240,0.15);
  border-top-color: var(--c-ice);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   END
   ============================================================ */
