/* ========================================
   Lavadero De Autos Las Casitas
   Diseño premium
   ======================================== */

/* --- Variables --- */
:root {
  --color-primary: #0C1B33;
  --color-primary-light: #1A6B8A;
  --color-accent: #D49420;
  --color-accent-hover: #C0841A;
  --color-bg: #F5F3EE;
  --color-white: #FFFFFF;
  --color-text: #1C1C1E;
  --color-text-light: #7C7C80;
  --color-border: #E2DDD6;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --shadow-sm: 0 1px 3px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 4px 20px rgba(12, 27, 51, 0.08);
  --shadow-lg: 0 10px 40px rgba(12, 27, 51, 0.10);
  --shadow-xl: 0 20px 60px rgba(12, 27, 51, 0.14);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Typography --- */
.section {
  padding: 110px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  background: rgba(26, 107, 138, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.75;
  max-width: 55ch;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 14px 32px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(212, 148, 32, 0.30);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 148, 32, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary--large {
  padding: 16px 32px 16px 38px;
  font-size: 1.05rem;
}

.btn-primary--full {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 14px 32px;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 12px 28px;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--color-primary);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px 11px 24px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: auto;
}

.btn-card:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
}

.btn-card:active {
  transform: scale(0.98);
}

/* Button-in-button icon */
.btn-inner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-primary:hover .btn-inner-icon,
.btn-secondary:hover .btn-inner-icon,
.btn-outline:hover .btn-inner-icon,
.btn-card:hover .btn-inner-icon {
  transform: translateX(2px) scale(1.05);
}

.btn-primary:active .btn-inner-icon,
.btn-secondary:active .btn-inner-icon {
  transform: translateX(4px) scale(0.98);
}

.btn-outline .btn-inner-icon {
  background: rgba(12, 27, 51, 0.12);
}

.btn-outline:hover .btn-inner-icon {
  background: rgba(255, 255, 255, 0.20);
}

.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 20px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-whatsapp-nav:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
}

/* --- Navbar (Floating Island) --- */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: var(--transition);
  width: calc(100% - 32px);
  max-width: 800px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px 0 24px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  box-shadow: 0 2px 24px rgba(12, 27, 51, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.navbar.scrolled {
  top: 12px;
}

.navbar.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 32px rgba(12, 27, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-accent);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 8px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary-light);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(26, 107, 138, 0.50) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(212, 148, 32, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(12, 27, 51, 0.80) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
}

/* --- Hero Floating Bubbles --- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -30px;
  left: var(--x, 50%);
  width: var(--s, 16px);
  height: var(--s, 16px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), var(--c, rgba(255, 255, 255, 0.08)));
  border-radius: 50%;
  animation: bubbleRise var(--d, 6s) ease-in-out infinite;
  animation-delay: calc(var(--d, 6s) * var(--p, 0.5) * -1);
  opacity: 0.55;
  will-change: transform;
}

.bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 20%;
  background: rgba(255, 255, 255, 0.50);
  border-radius: 50%;
  transform: rotate(-30deg);
}

/* Hero bubble colors (nth-child cycling through brand palette) */
.hero-particles .bubble:nth-child(1) { --c: rgba(255,200,50,0.45); }
.hero-particles .bubble:nth-child(2) { --c: rgba(80,200,255,0.40); }
.hero-particles .bubble:nth-child(3) { --c: rgba(255,150,130,0.35); }
.hero-particles .bubble:nth-child(4) { --c: rgba(180,130,255,0.35); }
.hero-particles .bubble:nth-child(5) { --c: rgba(80,220,190,0.40); }
.hero-particles .bubble:nth-child(6) { --c: rgba(255,160,180,0.35); }
.hero-particles .bubble:nth-child(7) { --c: rgba(255,200,50,0.35); }
.hero-particles .bubble:nth-child(8) { --c: rgba(140,220,140,0.35); }
.hero-particles .bubble:nth-child(9) { --c: rgba(80,200,255,0.40); }
.hero-particles .bubble:nth-child(10) { --c: rgba(255,150,130,0.35); }
.hero-particles .bubble:nth-child(11) { --c: rgba(180,130,255,0.40); }
.hero-particles .bubble:nth-child(12) { --c: rgba(80,220,190,0.35); }

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: var(--p, 0.5);
  }
  50% {
    transform: translateY(-45vh) translateX(20px) scale(1);
  }
  85% {
    opacity: var(--p, 0.5);
  }
  100% {
    transform: translateY(-90vh) translateX(-10px) scale(0.8);
    opacity: 0;
  }
}

/* --- Full-Screen Floating Bubbles (cartoon-style, multi-color, with pop) --- */
.bubbles-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.bubble-float {
  position: absolute;
  bottom: -80px;
  left: var(--x, 50%);
  width: var(--s, 30px);
  height: var(--s, 30px);
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.05) 45%),
    radial-gradient(circle at 50% 50%, var(--c, rgba(255,255,255,0.5)) 0%, rgba(0,0,0,0.08) 80%);
  border-radius: 50%;
  animation: bubbleFloat var(--d, 14s) ease-in-out infinite;
  animation-delay: calc(var(--d, 14s) * var(--p, 0.5) * -1);
  opacity: 0;
  will-change: transform;
  box-shadow:
    inset 0 -6px 8px rgba(0,0,0,0.06),
    0 0 24px var(--c, transparent),
    0 0 60px var(--c, transparent);
  border: 1.5px solid rgba(255,255,255,0.35);
  filter: saturate(1.2);
}

/* Highlight reflection */
.bubble-float::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 14%;
  width: 42%;
  height: 26%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: rotate(-30deg);
}

/* Cartoon pop droplets */
.bubble-float::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
  animation: popDroplets var(--d, 14s) ease-out infinite;
  animation-delay: calc(var(--d, 14s) * var(--p, 0.5) * -1);
  pointer-events: none;
}

/* Cartoon float + squash-and-stretch pop */
@keyframes bubbleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.1);
    opacity: 0;
  }
  4% {
    opacity: 1;
    transform: translateY(-2vh) translateX(3px) scale(0.6);
  }
  25% {
    transform: translateY(-24vh) translateX(14px) scale(0.95);
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) translateX(5px) scale(1.05);
    opacity: 1;
  }
  70% {
    transform: translateY(-70vh) translateX(-6px) scale(1.1);
    opacity: 0.95;
  }
  83% {
    transform: translateY(-82vh) translateX(-14px) scale(1.2);
    opacity: 0.9;
  }
  /* --- Cartoon squash & stretch wobble --- */
  87% {
    transform: translateY(-86vh) translateX(-18px) scale(1.5, 0.7);
    opacity: 0.95;
  }
  89% {
    transform: translateY(-88vh) translateX(-19px) scale(0.6, 1.6);
    opacity: 0.9;
  }
  91% {
    transform: translateY(-89vh) translateX(-20px) scale(1.7, 0.6);
    opacity: 0.95;
  }
  /* --- Big stretch before pop --- */
  93% {
    transform: translateY(-90vh) translateX(-21px) scale(2.2);
    opacity: 0.9;
    box-shadow:
      inset 0 -6px 8px rgba(0,0,0,0.06),
      0 0 60px var(--c, transparent),
      0 0 100px var(--c, transparent);
  }
  /* --- POP! vanishes instantly --- */
  94.5% {
    transform: translateY(-91vh) translateX(-22px) scale(0.01);
    opacity: 0;
    box-shadow: none;
  }
  100% {
    transform: translateY(-95vh) translateX(-22px) scale(0.01);
    opacity: 0;
  }
}

/* Droplets burst outward on pop */
@keyframes popDroplets {
  0%, 92% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    box-shadow: none;
  }
  93.5% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow:
      10px -8px 0 0 var(--c),
      -10px -6px 0 0 var(--c),
      8px 10px 0 0 var(--c),
      -7px 9px 0 0 var(--c);
  }
  95% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow:
      18px -14px 0 0 var(--c),
      -18px -10px 0 0 var(--c),
      14px 18px 0 0 var(--c),
      -14px 16px 0 0 var(--c),
      22px 2px 0 0 var(--c),
      -20px 4px 0 0 var(--c),
      6px -22px 0 0 var(--c),
      -4px 20px 0 0 var(--c);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
    box-shadow:
      30px -24px 0 0 rgba(255,255,255,0.1),
      -30px -18px 0 0 rgba(255,255,255,0.1),
      24px 30px 0 0 rgba(255,255,255,0.1),
      -24px 26px 0 0 rgba(255,255,255,0.1);
  }
}

/* --- Car Wash Animation --- */
.car-wash-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* --- Tunnel structure --- */
.tunnel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18%;
  width: 240px;
  height: 130px;
  color: rgba(255, 255, 255, 0.40);
}

.tunnel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Brush swing animation */
.brush-group {
  transform-origin: center 36px;
  animation: brushSwing 2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
}

@keyframes brushSwing {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

/* --- Car --- */
.car-wrapper {
  position: absolute;
  bottom: 22%;
  font-size: 0;
  animation: carDrive 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
  color: rgba(255, 255, 255, 0.25);
  filter: grayscale(0.4) brightness(0.5);
  width: 180px;
  height: 90px;
}

.car-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes carDrive {
  0% {
    left: -22%;
    filter: grayscale(0.4) brightness(0.5);
  }
  16% {
    left: 35%;
    filter: grayscale(0.4) brightness(0.5);
  }
  28% {
    left: 35%;
    filter: grayscale(0.2) brightness(0.7);
  }
  40% {
    left: 35%;
    filter: grayscale(0) brightness(1.15) saturate(1.2);
  }
  46% {
    left: 42%;
    filter: grayscale(0) brightness(1.25) saturate(1.25);
  }
  66% {
    left: 108%;
    filter: grayscale(0) brightness(1.25) saturate(1.25);
  }
  100% {
    left: 108%;
    filter: grayscale(0) brightness(1.25) saturate(1.25);
  }
}

/* --- Wash Spray Drops --- */
.wash-spray {
  position: absolute;
  bottom: 27%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 50px;
  pointer-events: none;
  animation: sprayVisibility 10s ease-in-out infinite;
}

@keyframes sprayVisibility {
  0%, 14% { opacity: 0; }
  16% { opacity: 1; }
  42% { opacity: 1; }
  44% { opacity: 0; }
  100% { opacity: 0; }
}

.drop {
  position: absolute;
  bottom: 0;
  left: var(--x, 50%);
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, rgba(180, 220, 255, 0.45));
  border-radius: 2px;
  animation: sprayDrop 0.5s ease-in infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}

@keyframes sprayDrop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(50px);
    opacity: 0;
  }
}

/* --- Foam burst --- */
.foam-burst {
  position: absolute;
  bottom: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 40px;
  pointer-events: none;
  animation: sprayVisibility 10s ease-in-out infinite;
  animation-delay: 0.5s;
}

.foam-puff {
  position: absolute;
  bottom: 0;
  left: var(--x, 50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05));
  border-radius: 50%;
  animation: foamPuff 1.2s ease-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}

@keyframes foamPuff {
  0% {
    transform: translateY(0) scale(0.3);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  50% {
    transform: translateY(-28px) translateX(10px) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-55px) translateX(-8px) scale(0.5);
    opacity: 0;
  }
}

/* --- Glow ring after wash --- */
.glow-ring {
  position: absolute;
  bottom: 24%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 148, 32, 0.30), transparent 70%);
  animation: glowFlash 10s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes glowFlash {
  0%, 36% { opacity: 0; transform: translateX(-50%) scale(0.4); }
  40% { opacity: 1; transform: translateX(-50%) scale(1.1); }
  46% { opacity: 0.5; transform: translateX(-50%) scale(1.3); }
  52% { opacity: 0; transform: translateX(-50%) scale(1.6); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.4); }
}

/* --- Sparkle star --- */
.sparkle-star {
  position: absolute;
  bottom: 36%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: var(--color-accent);
  animation: sparkleTwinkle 10s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(212, 148, 32, 0.6);
}

@keyframes sparkleTwinkle {
  0%, 38% { opacity: 0; transform: translateX(-50%) scale(0) rotate(0deg); }
  42% { opacity: 1; transform: translateX(-50%) scale(1.3) rotate(25deg); }
  48% { opacity: 0.7; transform: translateX(-50%) scale(1) rotate(0deg); }
  54% { opacity: 0; transform: translateX(-50%) scale(0.2) rotate(-15deg); }
  100% { opacity: 0; transform: translateX(-50%) scale(0) rotate(0deg); }
}

/* --- Hero Wave Divider --- */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  height: 80px;
  pointer-events: none;
  animation: waveShimmer 6s ease-in-out infinite;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes waveShimmer {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* --- Foam Divider (background particles between sections) --- */
.foam-divider {
  position: relative;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.foam-dot {
  position: absolute;
  top: -20px;
  left: var(--x, 50%);
  width: var(--s, 8px);
  height: var(--s, 8px);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.10));
  border-radius: 50%;
  animation: foamFloat var(--d, 4s) ease-in-out infinite;
  animation-delay: calc(var(--d, 4s) * -0.5);
  will-change: transform;
}

@keyframes foamFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-16px) scale(1.3);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 120px 0 100px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(212, 148, 32, 0.12);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.70);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Servicios (Double-Bezel Cards) --- */
.servicios {
  background: var(--color-white);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.servicio-card {
  display: flex;
}

.servicio-card-outer {
  flex: 1;
  padding: 2px;
  background: linear-gradient(135deg, rgba(12, 27, 51, 0.04), rgba(26, 107, 138, 0.04));
  border-radius: var(--radius-xl);
}

.servicio-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 26px;
  background: var(--color-bg);
  border-radius: calc(var(--radius-xl) - 2px);
  transition: var(--transition);
  border: 1px solid rgba(12, 27, 51, 0.03);
}

.servicio-card:hover .servicio-card-outer {
  background: linear-gradient(135deg, rgba(212, 148, 32, 0.15), rgba(26, 107, 138, 0.10));
}

.servicio-card:hover .servicio-card-inner {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.servicio-icon {
  color: var(--color-primary-light);
  margin-bottom: 22px;
  transition: var(--transition);
}

.servicio-card:hover .servicio-icon {
  color: var(--color-accent);
  transform: scale(1.05);
}

.servicio-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.servicio-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* --- Valores --- */
.valores {
  background: var(--color-bg);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.valor-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  text-align: left;
}

.valor-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.valor-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(26, 107, 138, 0.08);
  color: var(--color-primary-light);
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}

.valor-item:hover .valor-icon-wrapper {
  background: rgba(212, 148, 32, 0.12);
  color: var(--color-accent);
}

.valor-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.valor-item p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Testimonios --- */
.testimonios {
  background: var(--color-white);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.testimonio-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.testimonio-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.testimonio-card--featured {
  background: var(--color-primary);
  border-color: transparent;
}

.testimonio-card--featured .testimonio-text,
.testimonio-card--featured .testimonio-name,
.testimonio-card--featured .testimonio-role {
  color: rgba(255, 255, 255, 0.90);
}

.testimonio-card--featured .testimonio-role {
  color: rgba(255, 255, 255, 0.55);
}

.testimonio-card--featured .testimonio-avatar {
  background: var(--color-accent);
  color: var(--color-primary);
}

.testimonio-stars {
  display: flex;
  gap: 3px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.testimonio-card--featured .testimonio-stars {
  color: var(--color-accent);
}

.testimonio-text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: auto;
  flex: 1;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.testimonio-card--featured .testimonio-author {
  border-top-color: rgba(255, 255, 255, 0.10);
}

.testimonio-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonio-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.testimonio-role {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.testimonios-cta {
  text-align: center;
}

.testimonios-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
}

.testimonios-cta-stars {
  display: flex;
  gap: 4px;
}

.testimonios-cta-content p {
  font-size: 1rem;
  color: var(--color-text-light);
}

.testimonios-cta-content strong {
  color: var(--color-primary);
}

/* --- Galería --- */
.galeria {
  background: var(--color-bg);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-item--tall {
  grid-row: span 2;
}

.galeria-item--wide {
  grid-column: span 2;
}

.galeria-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(12, 27, 51, 0.70);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.galeria-nota {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 28px;
  font-style: italic;
}

/* --- Contacto --- */
.contacto {
  background: var(--color-white);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contacto-info .section-tag {
  margin-bottom: 14px;
}

.contacto-info .section-title {
  margin-bottom: 12px;
}

.contacto-info .section-desc {
  margin-bottom: 0;
  text-align: left;
  margin-left: 0;
}

.contacto-detalles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contacto-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(26, 107, 138, 0.08);
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.contacto-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 3px;
}

.contacto-value {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Form card (double-bezel) */
.form-card-outer {
  padding: 2px;
  background: linear-gradient(135deg, rgba(212, 148, 32, 0.12), rgba(26, 107, 138, 0.08));
  border-radius: var(--radius-2xl);
}

.form-card {
  background: var(--color-bg);
  border-radius: calc(var(--radius-2xl) - 2px);
  padding: 40px 36px;
}

.form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-card > p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(26, 107, 138, 0.10);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  padding-right: 40px;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237C7C80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 18px;
}

/* --- Mapa --- */
.mapa-container {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.mapa-container iframe {
  display: block;
  filter: grayscale(0.3) contrast(1.05);
  transition: var(--transition);
}

.mapa-container iframe:hover {
  filter: grayscale(0) contrast(1);
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-bottom: 22px;
  max-width: 38ch;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 18px;
  opacity: 0.7;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.88rem;
  opacity: 0.65;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  opacity: 0.40;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: var(--transition);
  animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.40); }
  50% { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.65); }
}

/* --- Scroll Reveal (initial states) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1), transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .testimonios-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .bubble {
    animation: none;
    display: none;
  }

  .bubbles-screen {
    display: none;
  }

  .foam-dot {
    animation: none;
    display: none;
  }

  .car-wash-scene {
    display: none;
  }

  .hero-wave {
    height: 40px;
  }

  .navbar {
    top: 12px;
    width: calc(100% - 24px);
  }

  .nav-inner {
    height: 54px;
    padding: 0 6px 0 16px;
    border-radius: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px;
    gap: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: var(--shadow-lg);
  }

  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-whatsapp-nav > span:first-child {
    display: none;
  }

  .btn-whatsapp-nav {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .btn-whatsapp-nav .btn-inner-icon {
    margin: 0;
    width: 22px;
    height: 22px;
    background: none;
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .galeria-item--tall {
    grid-row: span 1;
  }

  .galeria-item--wide {
    grid-column: span 1;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 600px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-content {
    padding: 100px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-card-outer {
    border-radius: var(--radius-xl);
  }

  .form-card {
    border-radius: calc(var(--radius-xl) - 2px);
  }
}
