/* ============================================================
   LIBRERIA COLORS — Styles
   Playful, colorful, friendly — like paint splashes on a white wall
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-white: #FFFFFF;
  --color-bg: #FAFBFD;
  --color-bg-alt: #F0F4F8;
  --color-text: #2C3E50;
  --color-text-light: #64748B;
  --color-text-muted: #94A3B8;

  /* Brand primaries — from the logo, slightly refined */
  --color-red: #E84C3D;
  --color-green: #2ECC71;
  --color-blue: #3498DB;
  --color-yellow: #F1C40F;

  /* Pastel palette — soft versions for backgrounds & accents */
  --color-red-pastel: #FDEAEA;
  --color-green-pastel: #E8F8F0;
  --color-blue-pastel: #EBF5FB;
  --color-yellow-pastel: #FEF9E7;
  --color-pink-pastel: #FDE8F0;
  --color-purple-pastel: #F0E6FA;
  --color-orange-pastel: #FEF0E6;

  /* Deeper shades for hover states */
  --color-red-deep: #C0392B;
  --color-green-deep: #27AE60;
  --color-blue-deep: #2980B9;

  --font-main: 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50px;

  --shadow-sm: 0 2px 12px rgba(44,62,80,0.06);
  --shadow-md: 0 4px 24px rgba(44,62,80,0.08);
  --shadow-lg: 0 8px 40px rgba(44,62,80,0.1);
  --shadow-xl: 0 16px 56px rgba(44,62,80,0.13);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;

  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.loading { overflow: hidden; }

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-blue-deep); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-book {
  width: 60px;
  height: 40px;
  position: relative;
  perspective: 300px;
}

.loader-page {
  position: absolute;
  width: 30px;
  height: 40px;
  right: 0;
  top: 0;
  border-radius: 0 6px 6px 0;
  transform-origin: left center;
  animation: pageTurn 1.2s ease-in-out infinite;
}

.loader-page:nth-child(1) { background: var(--color-red); }
.loader-page:nth-child(2) { background: var(--color-yellow); animation-delay: 0.2s; }
.loader-page:nth-child(3) { background: var(--color-green); animation-delay: 0.4s; }

@keyframes pageTurn {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(-180deg); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 16px rgba(44,62,80,0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo img {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover img { transform: scale(1.04); }

.navbar-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  transition: width var(--transition-normal);
  background: var(--color-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover { color: var(--color-text); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language Toggle */
.lang-toggle {
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast);
  color: var(--color-text);
}

.lang-toggle:hover { background: var(--color-blue-pastel); }

.lang-option { opacity: 0.35; transition: opacity var(--transition-fast); }
.lang-option.active { opacity: 1; color: var(--color-blue); }
.lang-separator { opacity: 0.2; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 3px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-xs);
}

.mobile-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-link:hover { background: var(--color-bg-alt); }

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  animation: kenBurns 30s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.3) 0%,
    rgba(255,255,255,0.55) 35%,
    rgba(255,255,255,0.85) 65%,
    rgba(255,255,255,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.hero-logo {
  width: clamp(280px, 45vw, 480px);
  height: auto;
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.12));
}

/* Logo blocks — fall in one by one */
.logo-block {
  opacity: 0;
  animation: blockDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.block-1 { animation-delay: 0.2s; transform-origin: 268px 651px; }
.block-2 { animation-delay: 0.5s; transform-origin: 442px 651px; }
.block-3 { animation-delay: 0.8s; transform-origin: 616px 651px; }
.block-4 { animation-delay: 0.35s; transform-origin: 351px 674px; }
.block-5 { animation-delay: 0.65s; transform-origin: 533px 674px; }
.block-6 { animation-delay: 0.95s; transform-origin: 707px 674px; }

@keyframes blockDrop {
  0% {
    opacity: 0;
    transform: translateY(-120px) rotate(-12deg) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(8px) rotate(2deg) scale(1.03);
  }
  80% {
    transform: translateY(-3px) rotate(-1deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Logo letters — fade in after blocks land */
.logo-letter {
  opacity: 0;
  animation: letterReveal 0.6s ease forwards;
}

.letter-1 { animation-delay: 1.1s; }
.letter-2 { animation-delay: 1.25s; }
.letter-3 { animation-delay: 1.4s; }
.letter-4 { animation-delay: 1.55s; }
.letter-5 { animation-delay: 1.7s; }
.letter-6 { animation-delay: 1.85s; }

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 2.5s forwards;
}

.hero-cta {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 38px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 2.9s forwards;
  box-shadow: 0 4px 16px rgba(232, 76, 61, 0.25);
}

.hero-cta:hover {
  background: var(--color-red-deep);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 76, 61, 0.35);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.8; }
}

/* Wave Separators */
.wave-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
  overflow: hidden;
}

.section-cream { background: var(--color-white); }
.section-sand { background: var(--color-bg); }
.section-dark { background: var(--color-text); color: var(--color-white); }

.section > .container { position: relative; z-index: 1; }

/* Section titles */
.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.section-title-light { color: var(--color-white); }

/* Colored dots decoration under titles */
.section-title-decoration {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: 16px;
  margin-bottom: var(--space-xl);
}

.section-title-decoration svg { display: none; }

.section-title-decoration::before,
.section-title-decoration::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

#nosaltres .section-title-decoration::before { background: var(--color-red); }
#nosaltres .section-title-decoration::after { background: var(--color-green); }
#oferim .section-title-decoration::before { background: var(--color-blue); }
#oferim .section-title-decoration::after { background: var(--color-yellow); }
#serveis .section-title-decoration::before { background: var(--color-green); }
#serveis .section-title-decoration::after { background: var(--color-red); }
#trobans .section-title-decoration::before { background: var(--color-yellow); }
#trobans .section-title-decoration::after { background: var(--color-blue); }

/* Subtle pastel blobs as section backgrounds */
.section::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#nosaltres::before {
  width: 500px; height: 500px;
  top: -200px; right: -200px;
  background: var(--color-red-pastel);
}

#oferim::before {
  width: 450px; height: 450px;
  bottom: -150px; left: -200px;
  background: var(--color-blue-pastel);
}

#serveis::before {
  width: 400px; height: 400px;
  top: -100px; left: -150px;
  background: var(--color-green-pastel);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-left { transform: translateX(-30px) translateY(0); }
.reveal-left.visible { transform: translateX(0) translateY(0); }

.reveal-right { transform: translateX(30px) translateY(0); }
.reveal-right.visible { transform: translateX(0) translateY(0); }

/* ---------- About / Nosaltres ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Memory photo box */
.memory-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.memory-frame {
  background: #fff;
  padding: 10px 10px 40px;
  max-width: 380px;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.14),
    0 2px 6px rgba(0,0,0,0.08);
  transform: rotate(-2deg);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.memory-frame.tilt-right { transform: rotate(2.5deg); }
.memory-frame.tilt-left  { transform: rotate(-2.5deg); }

.memory-viewport {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}

.memory-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(60px) rotate(4deg);
  transition: none;
}

.memory-img.active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.memory-img.leaving {
  opacity: 0;
  transform: translateX(-60px) rotate(-4deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.memory-caption {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 10px;
  min-height: 1.2em;
  transition: opacity 0.3s ease;
}

.memory-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.memory-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--color-text-muted);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.memory-dot.active {
  background: var(--color-red);
  border-color: var(--color-red);
  transform: scale(1.2);
}

.memory-dot:hover:not(.active) {
  border-color: var(--color-text-light);
}

@media (max-width: 1024px) {
  .memory-frame { max-width: 340px; margin: 0 auto; }
}

.about-text p {
  margin-bottom: var(--space-sm);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.85;
  color: var(--color-text-light);
}

.about-text p:last-of-type { margin-bottom: var(--space-lg); }

/* Counters */
.about-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 2px dashed var(--color-bg-alt);
}

.counter-item { text-align: center; }

.counter-number {
  display: block;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.counter-item:nth-child(1) .counter-number { color: var(--color-red); }
.counter-item:nth-child(2) .counter-number { color: var(--color-blue); }
.counter-item:nth-child(3) .counter-number { color: var(--color-green); }

.counter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Products / Què oferim (v2 — visible cards) ---------- */
/* ---------- Products Grid (Què oferim) ---------- */
.products-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.product-v2 {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.product-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Color accent on top */
.product-v2::before {
  content: '';
  display: block;
  height: 4px;
}

.product-v2:nth-child(1)::before { background: var(--color-red); }
.product-v2:nth-child(2)::before { background: var(--color-blue); }
.product-v2:nth-child(3)::before { background: var(--color-green); }
.product-v2:nth-child(4)::before { background: var(--color-yellow); }
.product-v2:nth-child(5)::before { background: var(--color-red); }
.product-v2:nth-child(6)::before { background: var(--color-blue); }

/* Photo area */
.product-v2-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-v2-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-v2:hover .product-v2-img > img {
  transform: scale(1.05);
}

/* Collage for toys/games */
.product-v2-img-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 3px;
}

.product-v2-img-collage > img {
  border-radius: 6px;
}

.product-v2-img-collage-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* Icon fallback for items without photo */
.product-v2-img-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-pink-pastel);
  color: var(--color-text-light);
}

.product-v2-img-icon svg {
  width: 80px;
  height: 80px;
}

/* Text area */
.product-v2-info {
  padding: var(--space-md);
}

.product-v2-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-v2-info p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .products-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .products-grid-v2 { grid-template-columns: 1fr; }
}

/* ---------- Books / Llibres ---------- */
.section-llibres {
  background: #F2F7FF;
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
}

.llibres-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.llibres-visual {
  display: flex;
  min-height: 400px;
}

.llibres-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.llibres-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.llibres-text > p {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.llibres-text strong {
  color: var(--color-text);
  font-weight: 700;
}

.llibres-cta-box {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-red-pastel);
  border-radius: var(--radius-lg);
  text-align: center;
}

.llibres-cta-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.llibres-cta-box p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.llibres-cta-btn {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(232, 76, 61, 0.25);
}

.llibres-cta-btn:hover {
  background: var(--color-red-deep);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 76, 61, 0.35);
}

@media (max-width: 1024px) {
  .llibres-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .llibres-photo {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .llibres-cta-box {
    padding: var(--space-md);
  }
}

/* ---------- Papereria Section ---------- */
.section-papereria {
  background-color: #FFFAD1;
  background-image: radial-gradient(circle, rgba(160,120,0,0.13) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
}

.papereria-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.papereria-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(100,70,0,0.5);
  background: rgba(255,255,255,0.65);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.papereria-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.dict-entry {
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(160,120,0,0.14);
  margin-bottom: var(--space-md);
}

.dict-pronunciation {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(100,70,0,0.48);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.dict-grammar {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(80,50,0,0.52);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(160,120,0,0.12);
  line-height: 1.5;
}

.dict-definitions {
  padding-left: 1.5em;
  margin-bottom: var(--space-sm);
}

.dict-definitions li {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.dict-definitions li::marker {
  font-weight: 800;
  color: rgba(100,70,0,0.45);
}

.dict-example {
  font-style: italic;
  font-size: 0.86rem;
  color: var(--color-text-light);
  margin-top: 7px;
  padding-left: 10px;
  border-left: 2px solid rgba(160,120,0,0.22);
  line-height: 1.6;
}

.dict-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(80,50,0,0.58);
  background: rgba(160,120,0,0.07);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.papereria-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1.5px solid rgba(0,0,0,0.1);
}

.papereria-text {
  min-width: 0;
  overflow: hidden;
}

.papereria-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.papereria-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.papereria-marquee-track span {
  flex-shrink: 0;
  background: rgba(255,255,255,0.72);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  border: 1.5px solid rgba(160,120,0,0.17);
  white-space: nowrap;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.papereria-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.papereria-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 8px 12px 40px rgba(120,80,0,0.17), -4px -4px 20px rgba(255,255,255,0.7);
  transform: rotate(2.5deg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.papereria-photo:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 12px 16px 50px rgba(120,80,0,0.22);
}

@media (max-width: 1024px) {
  .papereria-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .papereria-visual { order: -1; }
  .papereria-photo {
    max-width: 380px;
    margin: 0 auto;
    display: block;
    transform: rotate(0deg);
  }
}

@media (max-width: 768px) {
  .papereria-marquee-track span {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

/* ---------- Infantil Section ---------- */
.section-infantil {
  background: #FFF2F4;
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
}

.infantil-wrap {
  position: relative;
  min-height: 420px;
  padding: var(--space-xl) 0;
}

/* Floating baby SVGs */
.baby-float {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  transition: transform 4s ease-in-out;
}

/* Left side */
.bf-teddy {
  width: 95px;
  top: 0;
  left: 0;
  transform: rotate(-8deg);
}

.bf-block {
  width: 58px;
  top: 50%;
  left: 3%;
  transform: rotate(12deg) translateY(-50%);
}

.bf-star {
  width: 44px;
  bottom: 10px;
  left: 7%;
  transform: rotate(-12deg);
}

/* Right side */
.bf-rattle {
  width: 65px;
  top: 5px;
  right: 2%;
  transform: rotate(10deg);
}

.bf-notes {
  width: 58px;
  top: 48%;
  right: 4%;
  transform: rotate(-6deg) translateY(-50%);
}

.bf-heart {
  width: 42px;
  bottom: 15px;
  right: 8%;
  transform: rotate(12deg);
}

/* Centered content */
.infantil-center {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.infantil-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.infantil-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.infantil-body {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.infantil-fotos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: var(--space-lg);
}

.infantil-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.infantil-foto.visible {
  transform: rotate(var(--rot, 0deg));
}

.infantil-foto:hover {
  transform: rotate(0deg) scale(1.12) !important;
  z-index: 2;
}

.infantil-foto img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: 6px;
  transition: box-shadow 0.3s ease;
}

.infantil-foto:hover img {
  box-shadow: var(--shadow-xl);
}

.infantil-foto span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .baby-float { opacity: 0.45; }
  .bf-teddy { width: 70px; left: -5px; }
  .bf-block { width: 45px; }
  .bf-rattle { width: 50px; }
  .bf-notes { width: 45px; }
}

@media (max-width: 768px) {
  .baby-float { display: none; }
  .infantil-wrap { min-height: auto; padding: var(--space-md) 0; }
  .infantil-foto img { width: 90px; height: 90px; }
  .infantil-fotos { gap: 12px; }
}

/* ---------- Regals i Joguines Section ---------- */
.section-regals {
  background: #F3E8FF;
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
}

.regals-wrap {
  position: relative;
  overflow: hidden;
}

.regals-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Floating decorative SVGs */
.regals-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.rd-star   { width: 80px; top: 5%; left: 6%; animation: floatSlow 6s ease-in-out infinite; }
.rd-gift   { width: 70px; top: 12%; right: 8%; animation: floatSlow 7s ease-in-out infinite 1s; }
.rd-dice   { width: 65px; bottom: 20%; left: 4%; animation: floatSlow 8s ease-in-out infinite 0.5s; }
.rd-puzzle { width: 75px; bottom: 10%; right: 5%; animation: floatSlow 6.5s ease-in-out infinite 2s; }
.rd-heart  { width: 55px; top: 45%; left: 10%; animation: floatSlow 7.5s ease-in-out infinite 1.5s; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.regals-headline {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.regals-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* Category list */
.regals-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: left;
}

.regals-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  backdrop-filter: blur(4px);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.regals-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.regals-cat svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: #8B24E8;
}

.regals-cat div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.regals-cat strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text);
}

.regals-cat span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.regals-closing {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 600px) {
  .regals-categories { grid-template-columns: 1fr; }
  .regals-deco { opacity: 0.5; }
  .rd-star { width: 50px; } .rd-gift { width: 45px; }
  .rd-dice { width: 40px; } .rd-puzzle { width: 50px; }
  .rd-heart { width: 35px; }
}

/* ---------- Argentina Section ---------- */
.section-argentina {
  background: #ECF5FF;
  overflow: hidden;
}

.argentina-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.argentina-stripe {
  position: absolute;
  left: 0;
  right: 0;
  height: 35%;
  opacity: 0.18;
  background: #75AADB; /* Celeste argentino */
}

.argentina-stripe-top { top: 0; }
.argentina-stripe-bottom { bottom: 0; }

.section-argentina .container {
  position: relative;
  z-index: 1;
}

.argentina-whisper {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.section-argentina .section-title {
  margin-bottom: var(--space-xs);
}

.argentina-intro {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.argentina-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.argentina-item {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.argentina-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #75AADB, #F6B40E, #75AADB);
}

.argentina-item:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-xl);
}

.argentina-item:nth-child(even):hover {
  transform: translateY(-8px) rotate(1deg);
}

.argentina-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto var(--space-sm);
  transition: transform var(--transition-normal);
}

.argentina-item:hover .argentina-icon {
  transform: scale(1.15);
}

.argentina-icon svg {
  width: 100%;
  height: 100%;
}

.argentina-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
}

.argentina-item h3[data-lang="es"] {
  margin-bottom: 4px;
}

.argentina-item p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.5;
}

.argentina-footer-text {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .argentina-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

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

  .argentina-item {
    padding: var(--space-md) var(--space-xs);
  }

  .argentina-icon {
    width: 70px;
    height: 70px;
  }
}

/* ---------- Services / Serveis ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.service-item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

/* Each service card gets a pastel background */
.service-item:nth-child(1) { background: var(--color-red-pastel); }
.service-item:nth-child(2) { background: var(--color-blue-pastel); }
.service-item:nth-child(3) { background: var(--color-green-pastel); }
.service-item:nth-child(4) { background: var(--color-yellow-pastel); }
.service-item:nth-child(5) { background: var(--color-purple-pastel); }
.service-item:nth-child(6) { background: var(--color-orange-pastel); }

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  transition: transform var(--transition-normal);
}

.service-item:nth-child(1) .service-icon { color: var(--color-red); }
.service-item:nth-child(2) .service-icon { color: var(--color-blue); }
.service-item:nth-child(3) .service-icon { color: var(--color-green); }
.service-item:nth-child(4) .service-icon { color: #D4A000; }
.service-item:nth-child(5) .service-icon { color: #8B24E8; }
.service-item:nth-child(6) .service-icon { color: #E8651B; }

.service-item:hover .service-icon { transform: scale(1.1); }

.service-icon svg { width: 100%; height: 100%; }

.service-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Services CTA */
/* ---------- Copisteria Section ---------- */
.section-copisteria {
  background-color: #FDFDFD;
  background-image:
    linear-gradient(rgba(52, 152, 219, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 152, 219, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
}

.copisteria-wrap {
  position: relative;
}

/* Notebook margin line + punch holes */
.copi-margin {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(24px, calc(50% - 570px - 50px));
  width: 50px;
  pointer-events: none;
  z-index: 0;
}

.copi-margin-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: rgba(220, 50, 50, 0.22);
}

.copi-hole {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.13);
}

.copi-hole:nth-child(2) { top: 10%; }
.copi-hole:nth-child(3) { top: 33%; }
.copi-hole:nth-child(4) { top: 56%; }
.copi-hole:nth-child(5) { top: 79%; }

@media (max-width: 480px) {
  .copi-margin { display: none; }
}

/* Copisteria intro text */
.copisteria-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-xl);
}

.copisteria-hook {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.copisteria-body {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  color: var(--color-text-light);
  line-height: 1.75;
}

.services-cta {
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-blue-pastel);
  border-radius: var(--radius-lg);
}

.services-cta-pro {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md) !important;
}

.services-cta p {
  margin-bottom: var(--space-xs);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.services-email {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-blue);
  font-weight: 800;
  transition: color var(--transition-fast);
}

.services-email:hover { color: var(--color-blue-deep); }

/* ---------- Find Us / Troba'ns ---------- */
.section-dark {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.section-dark::before {
  width: 250px; height: 250px;
  top: -80px; right: -80px;
  background: var(--color-red);
  opacity: 0.05;
}

.section-dark::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  bottom: -60px; left: -60px;
  background: var(--color-yellow);
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
}

.find-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.find-us-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: background var(--transition-fast), transform var(--transition-normal);
}

.find-us-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.find-us-card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-md);
}

.find-us-card-icon svg { width: 100%; height: 100%; }

.find-us-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

/* Schedule Table */
.schedule-table { width: 100%; border-collapse: collapse; }

.schedule-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.schedule-table tr:last-child { border-bottom: none; }

.schedule-table td {
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  vertical-align: top;
}

.schedule-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-white);
}

/* Map */
.map-container {
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-address {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.map-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-green);
  transition: color var(--transition-fast);
}

.map-link:hover { color: var(--color-white); }

/* Contact List */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.contact-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
}

.contact-icon { width: 20px; height: 20px; flex-shrink: 0; }

.contact-whatsapp { color: #25D366; }
.contact-whatsapp:hover { color: #4AE07F; }
.contact-instagram:hover { color: #E1306C; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-text);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 34px;
  height: 34px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover { transform: translateY(-2px); }
.footer-social a:nth-child(1):hover { color: #E1306C; }
.footer-social a:nth-child(2):hover { color: #25D366; }

.footer-social svg { width: 100%; height: 100%; }

.footer-copy {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float svg { width: 28px; height: 28px; }

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-text);
  border-right: none;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.06); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  cursor: pointer;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--transition-fast);
  z-index: 2;
}

.lightbox-close:hover { transform: scale(1.15) rotate(90deg); }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(0,0,0,0.4);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
}

.lightbox.open .lightbox-img { transform: scale(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .memory-frame { max-width: 300px; }

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

  .find-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-2xl: 3.5rem;
  }

  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .hero-scroll-indicator { bottom: 20px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

  .service-item { padding: var(--space-md) var(--space-sm); }

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

  .whatsapp-float svg { width: 24px; height: 24px; }
  .whatsapp-tooltip { display: none; }

  .services-cta { padding: var(--space-md); }
}

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

  .hero-logo { width: clamp(240px, 70vw, 320px); }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; }
  .hero-logo, .hero-subtitle, .hero-cta { opacity: 1; animation: none; }
  .logo-block, .logo-letter { opacity: 1; animation: none; transform: none; }
}
