/* =========================================================
   El Pintor Joselito — Design Tokens
========================================================= */
:root {
  /* Brand colors (from logo) */
  --color-blue: #1565D8;
  --color-blue-light: #4A9FE8;
  --color-blue-deep: #0D4EA6;
  --color-red: #E31E24;
  --color-red-deep: #B8151A;
  --color-yellow: #FFC530;
  --color-yellow-deep: #F5A300;

  /* Neutrals */
  --color-ink: #12203A;
  --color-ink-soft: #4A5568;
  --color-navy: #12203A; /* fixed dark-navy brand surface, does not invert in dark mode */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FC;
  --color-border: #E2E6F0;
  --color-white: #FFFFFF;

  /* Semantic */
  --color-primary: var(--color-blue);
  --color-primary-deep: var(--color-blue-deep);
  --color-secondary: var(--color-red);
  --color-accent: var(--color-yellow);

  /* Typography */
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing (8pt scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Radius / shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(18, 32, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 32, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 32, 58, 0.16);

  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --header-h: 84px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F1729;
    --color-bg-alt: #16203A;
    --color-ink: #F4F6FB;
    --color-ink-soft: #B7C0D6;
    --color-border: #253253;
    --color-white: #16203A;
  }
}

/* =========================================================
   Splash intro
========================================================= */
body.has-splash { overflow: hidden; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--color-navy);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms ease, visibility 700ms ease;
}
.splash.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,32,58,0.55) 0%, rgba(18,32,58,0.25) 45%, rgba(18,32,58,0.75) 100%);
}

.splash-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  text-align: center;
  animation: splashFadeIn 900ms ease both;
}
.splash-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.45));
  animation: splashPulse 2.6s ease-in-out infinite;
}
.splash-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  letter-spacing: -0.01em;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.splash-controls {
  position: absolute;
  z-index: 2;
  bottom: var(--space-5);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
}
.splash-sound {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.splash-sound:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
.splash-sound svg { width: 22px; height: 22px; }
.splash-sound .icon-unmuted { display: none; }
.splash-sound[aria-pressed="true"] .icon-muted { display: none; }
.splash-sound[aria-pressed="true"] .icon-unmuted { display: block; }

.splash-progress {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: rgba(255,255,255,0.15);
}
.splash-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-red));
  transition: width 120ms linear;
}

@media (max-width: 640px) {
  .splash-logo { width: 120px; }
  .splash-controls { bottom: var(--space-4); gap: var(--space-2); }
  .splash-skip { padding: 12px 20px; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
  .splash-content { animation: none; }
}

/* =========================================================
   Reset
========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0;
  color: var(--color-ink);
}
p { margin: 0; }
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-red-deep); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-blue); color: var(--color-blue); }

.btn-accent {
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}
.btn-accent:hover { background: var(--color-yellow-deep); }

.btn-white {
  background: #fff;
  color: var(--color-red);
}
.btn-white:hover { background: var(--color-navy); color: #fff; }

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-header { display: none; }

/* =========================================================
   Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(15,23,41,0.85); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-4);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 56px; width: auto; border-radius: 10px; box-shadow: var(--shadow-sm); }

.main-nav ul {
  display: flex;
  gap: var(--space-5);
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--color-ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-blue);
  font-size: 0.9rem;
}
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-ink);
  margin: 0 auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-7);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.45) 55%, rgba(255,255,255,0.7) 100%),
    url('../assets/img/paint-cans-bg.webp');
  background-size: cover;
  background-position: center;
}
@media (prefers-color-scheme: dark) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(15,23,41,0.75) 0%, rgba(15,23,41,0.62) 55%, rgba(15,23,41,0.8) 100%),
      url('../assets/img/paint-cans-bg.webp');
  }
}
.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.16;
  z-index: 0;
}
.shape-blue { width: 480px; height: 480px; background: var(--color-blue); top: -160px; left: -160px; }
.shape-red { width: 420px; height: 420px; background: var(--color-red); bottom: -180px; right: -100px; }
.shape-yellow { width: 280px; height: 280px; background: var(--color-yellow); top: 40%; left: 60%; opacity: 0.2; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
}
.eyebrow.center { justify-content: center; width: 100%; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-blue { background: var(--color-blue); }
.dot-red { background: var(--color-red); }
.dot-yellow { background: var(--color-yellow-deep); }

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.text-stroke {
  color: var(--color-red);
  position: relative;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 540px;
  margin-bottom: var(--space-5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

.hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  position: relative;
}
.hero-stat-num, .hero-stat-suffix {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-blue);
}
.hero-stat-label {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.paint-can-wrap { position: relative; width: 100%; max-width: 460px; }
.house-illustration {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 45px rgba(18,32,58,0.35));
}

.floaty {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  animation: floaty 4s ease-in-out infinite;
}
.floaty svg { width: 16px; height: 16px; }
.floaty-1 { top: 8%; left: -4%; color: var(--color-yellow-deep); animation-delay: 0s; }
.floaty-2 { bottom: 6%; right: -2%; color: var(--color-blue); animation-delay: 1.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
   Trust strip
========================================================= */
.trust-strip {
  background: var(--color-navy);
  padding: var(--space-4) 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
}
.trust-item svg { width: 20px; height: 20px; color: var(--color-yellow); flex-shrink: 0; }

/* =========================================================
   Sections
========================================================= */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-navy);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 640px; margin: 0 auto var(--space-7); text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.section-sub { color: var(--color-ink-soft); font-size: 1.05rem; }
.section-sub.light { color: rgba(255,255,255,0.75); }

/* =========================================================
   Services
========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--color-ink-soft); font-size: 0.95rem; }

/* =========================================================
   Showcase
========================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.showcase-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.showcase-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.showcase-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.showcase-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-3);
  background: linear-gradient(0deg, rgba(18,32,58,0.85) 0%, rgba(18,32,58,0) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========================================================
   Resultados
========================================================= */
.resultados-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.resultados-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.resultados-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resultados-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.resultados-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(18,32,58,0.85) 0%, rgba(18,32,58,0) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

/* =========================================================
   Before / After compare
========================================================= */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.ba-compare { margin: 0; }
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-after { z-index: 1; }
.ba-before { z-index: 2; will-change: clip-path; }
.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  background: rgba(18,32,58,0.75);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-handle svg {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  -webkit-appearance: none;
  appearance: none;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
}
.ba-compare figcaption {
  text-align: center;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ink-soft);
}

.ba-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.ba-gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ba-gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ba-gallery-item img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.ba-process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.ba-process img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.ba-process-copy h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: var(--space-3); }
.ba-process-copy p { color: var(--color-ink-soft); margin-bottom: var(--space-4); }

/* =========================================================
   Process
========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.process-step {
  text-align: center;
  padding: var(--space-4);
  position: relative;
}
.process-num {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
}
.process-step:nth-child(2) .process-num { background: var(--color-red); }
.process-step:nth-child(3) .process-num { background: var(--color-yellow-deep); }
.process-step:nth-child(4) .process-num { background: var(--color-blue-deep); }
.process-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--color-ink-soft); font-size: 0.92rem; }

/* =========================================================
   Swatches
========================================================= */
.colores-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}
.colores-photo-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}
.colores-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.colores-photo-stack .colores-photo { height: 260px; }
.colores-photo-sm { height: 160px !important; }
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.swatch {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.swatch:hover { transform: scale(1.03); }

/* =========================================================
   Why choose us
========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: center;
}
.why-list { margin: var(--space-4) 0 var(--space-5); display: flex; flex-direction: column; gap: 14px; }
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.why-list svg {
  width: 22px; height: 22px;
  color: var(--color-yellow);
  flex-shrink: 0;
  background: rgba(255,197,48,0.15);
  border-radius: 50%;
  padding: 4px;
}
.why-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.why-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card-alt { background: var(--color-red); border-color: var(--color-red); }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--color-yellow); }
.stat-card-alt .stat-num { color: #fff; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* =========================================================
   Testimonials
========================================================= */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.testimonial-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stars { color: var(--color-yellow-deep); letter-spacing: 3px; font-size: 1.1rem; }
.testimonial-card p { color: var(--color-ink-soft); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author div { display: flex; flex-direction: column; font-size: 0.9rem; }
.testimonial-author span { color: var(--color-ink-soft); font-size: 0.82rem; }

/* =========================================================
   CTA banner
========================================================= */
.cta-banner {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--color-blue) 88%, transparent) 0%, color-mix(in srgb, var(--color-blue-deep) 90%, transparent) 55%, color-mix(in srgb, var(--color-red) 88%, transparent) 130%),
    url('../assets/img/paint11.jpg');
  background-size: cover;
  background-position: center;
  padding: var(--space-7) 0;
}
.cta-banner-inner { text-align: center; color: #fff; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: var(--space-3); }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: var(--space-5); }
.cta-banner-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); }

/* =========================================================
   FAQ
========================================================= */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: transparent;
  border: none;
  padding: var(--space-4);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-ink);
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); color: var(--color-red); }
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  padding: 0 var(--space-4);
}
.faq-answer p { color: var(--color-ink-soft); padding-bottom: var(--space-4); }
.faq-item.open .faq-answer { max-height: 240px; }

/* =========================================================
   Contact
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: start;
}
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
  transition: border-color var(--transition);
  width: 100%;
  min-height: 48px;
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-blue);
  outline: none;
}
.field-error { display: none; color: var(--color-red); font-size: 0.82rem; }
.form-field.invalid input, .form-field.invalid select, .form-field.invalid textarea { border-color: var(--color-red); }
.form-field.invalid .field-error { display: block; }
.form-success {
  display: none;
  background: rgba(21,101,216,0.1);
  color: var(--color-blue-deep);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
}
.form-success.show { display: block; }

.contact-info-card {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.contact-info-card h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: var(--space-4); }
.contact-info-list { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-4); }
.contact-info-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--color-yellow); flex-shrink: 0; margin-top: 2px; }
.contact-info-list div { display: flex; flex-direction: column; font-size: 0.92rem; }
.contact-info-list strong { font-family: var(--font-heading); }
.contact-info-list span { color: rgba(255,255,255,0.7); }
.contact-info-list span a { color: inherit; transition: color var(--transition); }
.contact-info-list span a:hover { color: var(--color-yellow); }

.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--color-red); transform: translateY(-3px); }

.map-embed {
  position: relative;
  margin-top: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--color-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.map-embed-link:hover { background: var(--color-red-deep); }

/* =========================================================
   Footer
========================================================= */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.8); padding-top: var(--space-7); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
.footer-logo { height: 60px; width: auto; margin-bottom: var(--space-3); border-radius: 8px; background: #fff; padding: 6px 10px; }
.footer-brand p { font-size: 0.9rem; margin-bottom: var(--space-3); max-width: 300px; }
.footer-links h4 { color: #fff; font-size: 1rem; margin-bottom: var(--space-3); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-yellow); }
.footer-links li { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-4) 0;
  text-align: center;
  font-size: 0.85rem;
}

/* =========================================================
   Floating buttons
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transition: transform var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 94px;
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================
   Scroll reveal
========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-visual { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .colores-grid { grid-template-columns: 1fr; }
  .colores-photo-stack { flex-direction: row; }
  .colores-photo-stack .colores-photo { height: 220px; }
  .ba-process { grid-template-columns: 1fr; }
  .ba-process img { max-height: 280px; }
  .ba-gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 400;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 0; padding: var(--space-3) var(--space-4); }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto var(--space-4); }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand-logo { height: 44px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-gallery { grid-template-columns: 1fr 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .resultados-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-stats { gap: var(--space-4); }
  .trust-inner { justify-content: center; text-align: center; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .back-to-top { width: 42px; height: 42px; right: 78px; bottom: 16px; }
}
