/* =============================================================
   CparraStudio — Capa de Animaciones (Dopamina)
   Cargar DESPUÉS de styles.css
   ============================================================= */

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  z-index: 200;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(184, 98, 63, 0.5);
}

/* ---------- Ripple Effect ---------- */
[data-ripple], .btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 700ms var(--ease-soft) forwards;
}

.btn-ghost .ripple,
.btn-light .ripple { background: rgba(184, 98, 63, 0.22); }

@keyframes ripple-out {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* ---------- Magnetic Buttons ---------- */
[data-magnetic] {
  transition: transform 200ms var(--ease-soft);
  will-change: transform;
}

/* ---------- Card 3D Tilt ---------- */
.tilt {
  transform-style: preserve-3d;
  transition: transform 280ms var(--ease-soft);
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(20px);
}

/* ---------- Floating Emojis Layer ---------- */
.emoji-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.float-emoji {
  position: absolute;
  font-size: 28px;
  opacity: 0;
  animation: float-up var(--dur, 9s) var(--ease-soft) infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 4px 12px rgba(58, 42, 32, 0.15));
  user-select: none;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(40vh) translateX(0) rotate(0deg) scale(0.7);
  }
  15% { opacity: var(--max-op, 0.7); }
  85% { opacity: var(--max-op, 0.7); }
  100% {
    opacity: 0;
    transform: translateY(-20vh) translateX(var(--drift, 60px)) rotate(var(--rot, 25deg)) scale(1);
  }
}

/* Emoji burst on click (for forms, calendar, etc.) */
.burst-emoji {
  position: fixed;
  font-size: 28px;
  pointer-events: none;
  z-index: 9998;
  animation: burst 1400ms cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  20%  { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(1.2); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx, 0px) * 1.6), calc(-50% + var(--by, 0px) * 1.6 + 60px)) scale(0.7) rotate(var(--brot, 0deg)); opacity: 0; }
}

/* ---------- Confetti ---------- */
.confetti-piece {
  position: fixed;
  width: 10px; height: 14px;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  animation: confetti-fall 2.6s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
  display: inline-block;
  line-height: 1;
  user-select: none;
}

.confetti-piece.emoji {
  filter: drop-shadow(0 4px 8px rgba(58, 42, 32, 0.18));
}

@keyframes confetti-fall {
  0%   { opacity: 1; transform: translateY(-20vh) translateX(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) translateX(var(--cx, 0px)) rotate(var(--crot, 720deg)); }
}

/* ---------- Gold burst (click celebration on CTAs) ---------- */
.gold-burst-piece {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: goldBurstFly 780ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  box-shadow:
    0 0 6px rgba(255, 215, 100, 0.95),
    0 0 14px rgba(252, 246, 186, 0.75),
    0 0 22px rgba(184, 152, 92, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  will-change: transform, opacity;
}
@keyframes goldBurstFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05) rotate(20deg);
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px)))
      scale(0.45)
      rotate(var(--rot, 360deg));
  }
}
@media (prefers-reduced-motion: reduce) {
  .gold-burst-piece { display: none; }
}

/* ---------- Word reveal (hero h1) ---------- */
.word-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  animation: word-in 700ms var(--ease-soft) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 300ms);
}

.word-reveal-em {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.4em);
  animation: word-in 700ms var(--ease-soft) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 300ms);
}

@keyframes word-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ---------- Counter (stats glow on first reveal) ---------- */
.counter {
  display: inline-block;
  transition: color 600ms var(--ease-soft);
}

.counter.counting { color: var(--gold-deep); }

/* ---------- Calendar bloom on hover ---------- */
.cal-day.available {
  position: relative;
  overflow: visible;
}

.cal-day.available::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--r-md);
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease-soft);
  z-index: -1;
}

.cal-day.available:hover::after { opacity: 0.4; }

.cal-day.selected {
  animation: pop-in 400ms var(--ease-soft);
}

@keyframes pop-in {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1.06); }
}

/* ---------- Sparkle inline accent ---------- */
.sparkle {
  display: inline-block;
  animation: sparkle-spin 4s linear infinite;
  color: var(--gold);
}

@keyframes sparkle-spin {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
  50%  { transform: rotate(180deg) scale(1.18); opacity: 0.6; }
}

/* ---------- Section emoji ornaments (decorative big background emojis) ---------- */
.section-ornament {
  position: absolute;
  font-size: clamp(120px, 18vw, 240px);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: rotate(-15deg);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---------- Image parallax-ish on scroll ---------- */
.parallax {
  transition: transform 60ms linear;
  will-change: transform;
}

/* ---------- Hover lift utility ---------- */
.lift-hover {
  transition: transform var(--t-med) var(--ease-soft), box-shadow var(--t-med) var(--ease-soft);
}

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

/* ---------- Hero h1 wrapping (preserves block layout for word spans) ---------- */
.hero-h1 .word-reveal,
.hero-h1 .word-reveal-em { white-space: nowrap; }

/* ---------- Image reveal with mask ---------- */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1200ms var(--ease-soft);
}

.img-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* ---------- Checkmark line drawing (gracias.html) ---------- */
.check-circle svg path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 900ms var(--ease-soft) 400ms forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* ---------- Pulse for trust elements ---------- */
.pulse-soft {
  animation: pulse-soft 2.4s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Page entrance fade ---------- */
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

main, body > .navbar { animation: page-in 600ms var(--ease-soft); }

/* ---------- Filter buttons emoji burst origin ---------- */
.filter-btn {
  position: relative;
  overflow: visible;
}

/* ---------- Card 3D tilt limit on touch ---------- */
@media (pointer: coarse) {
  .tilt { transform: none !important; }
}

/* ---------- Brand hover ---------- */
.brand:hover .brand-script {
  animation: wiggle 600ms var(--ease-soft);
}

@keyframes wiggle {
  0%, 100% { transform: translateY(0.18em) rotate(0deg); }
  25% { transform: translateY(0.15em) rotate(-6deg); }
  75% { transform: translateY(0.21em) rotate(6deg); }
}

/* ---------- Hero overlay vignette enhance ---------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(58, 42, 32, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Stats counter container glow on reveal ---------- */
.stats.reveal.visible .stat {
  animation: stat-in 700ms var(--ease-soft) both;
}
.stats.reveal.visible .stat:nth-child(1) { animation-delay: 100ms; }
.stats.reveal.visible .stat:nth-child(2) { animation-delay: 200ms; }
.stats.reveal.visible .stat:nth-child(3) { animation-delay: 300ms; }
.stats.reveal.visible .stat:nth-child(4) { animation-delay: 400ms; }

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

/* ---------- Floating "10% off" badge enhanced animation ---------- */
.lead-card::before {
  animation: badge-attention 4.5s ease-in-out infinite;
}

@keyframes badge-attention {
  0%, 90%, 100% { transform: rotate(-8deg) scale(1); }
  92% { transform: rotate(-12deg) scale(1.12); }
  94% { transform: rotate(-4deg) scale(1.12); }
  96% { transform: rotate(-12deg) scale(1.12); }
  98% { transform: rotate(-8deg) scale(1); }
}

/* ---------- Demo modal: subtle entrance from above ---------- */
.demo-modal-overlay.active .demo-modal {
  animation: modal-in 500ms var(--ease-soft) both;
}

@keyframes modal-in {
  0% { transform: translateY(-30px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ---------- Course card hover: gold border sweep ---------- */
.course-card { position: relative; overflow: hidden; }
.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  pointer-events: none;
  transition: border-color var(--t-med) var(--ease-soft);
}
.course-card:hover::after { border-color: var(--gold); }

/* ---------- Service card: subtle inner glow on hover ---------- */
.service-card:hover .image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(184, 98, 63, 0.25));
  z-index: 1;
}

/* =============================================================
   MOBILE MENU DRAWER (replaces fullscreen overlay)
   ============================================================= */

/* Bulletproof hidden state — visibility + opacity + pointer-events. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 320ms ease, visibility 0s linear 0s;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 42, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 320ms var(--ease-soft);
  cursor: pointer;
}

.mobile-menu.open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100vh;
  height: 100dvh; /* iOS Safari fix */
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -24px 0 60px rgba(58, 42, 32, 0.22);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid rgba(184, 152, 92, 0.22);
  flex-shrink: 0;
  background: rgba(245, 239, 230, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 18px -8px rgba(26, 20, 16, 0.20);
  position: sticky;
  top: 0;
  z-index: 2;
}

.mobile-menu-header .brand {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
}

/* Logo grande en menú abierto — antes heredaba 44px (apenas se veía). */
.mobile-menu-header .brand-logo {
  height: 56px;
  max-width: 220px;
}

.mobile-menu-header .brand-script {
  font-family: var(--font-script);
  font-size: 2.2em;
  line-height: 0.5;
  color: var(--terracotta);
  margin-right: -0.05em;
  transform: translateY(0.18em);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms var(--ease-soft);
  flex-shrink: 0;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(90deg);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: var(--s-3) 0;
  flex: 1;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 18px var(--s-5);
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: all 200ms var(--ease-soft);
  border-left: 3px solid transparent;
  letter-spacing: -0.01em;
  min-height: 56px;
}

.mobile-menu-link:hover,
.mobile-menu-link:active,
.mobile-menu-link.active {
  background: var(--champagne);
  border-left-color: var(--terracotta);
  color: var(--terracotta-deep);
}

.mobile-menu-link .ico {
  font-size: 22px;
  width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-link .label {
  flex: 1;
}

.mobile-menu-link .chevron {
  opacity: 0.4;
  font-size: 18px;
  font-family: var(--font-body);
  transition: transform 200ms var(--ease-soft), opacity 200ms var(--ease-soft);
}

.mobile-menu-link.active .chevron {
  opacity: 1;
  color: var(--terracotta);
}

.mobile-menu-link:hover .chevron,
.mobile-menu-link:active .chevron {
  transform: translateX(4px);
  opacity: 1;
}

.mobile-menu-cart {
  padding: 0 var(--s-5);
  border-top: 1px solid var(--hairline);
  flex-shrink: 0;
}

.mobile-menu-cart-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-4) 0;
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.mobile-menu-cart-row:hover .ico,
.mobile-menu-cart-row:active .ico { transform: scale(1.12); }

.mobile-menu-cart-row .ico {
  font-size: 22px;
  transition: transform 200ms var(--ease-soft);
}

.mobile-menu-cart-row .label { flex: 1; }

.mobile-menu-cart-row .cart-count {
  position: static;
  transform: scale(1);
  min-width: 26px;
  height: 26px;
  border-radius: 13px;
  padding: 0 9px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  letter-spacing: 0;
}

.mobile-menu-cart-row .cart-count:not(.visible) {
  background: var(--champagne);
  color: var(--ink-faded);
}

.mobile-menu-footer {
  padding: var(--s-5);
  background: var(--champagne);
  flex-shrink: 0;
}

.mobile-menu-footer .btn {
  margin-bottom: var(--s-4);
}

.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: var(--s-5);
}

.mobile-menu-social a {
  font-size: var(--fs-13, 0.82rem);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 200ms;
}

.mobile-menu-social a:hover,
.mobile-menu-social a:active {
  color: var(--terracotta-deep);
}

/* Staggered link reveal when menu opens */
.mobile-menu.open .mobile-menu-link {
  animation: menu-link-in 460ms var(--ease-soft) backwards;
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 100ms; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 160ms; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 220ms; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 280ms; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { animation-delay: 340ms; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { animation-delay: 400ms; }

@keyframes menu-link-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hide old fullscreen-overlay style (deprecated, now unused) */
.nav-links.mobile-open {
  display: none !important;
}

/* Hamburger toggle button — refined for mobile menu */
.nav-mobile-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-mobile-toggle.open span { background: transparent !important; }
.nav-mobile-toggle.open span::before {
  top: 0 !important;
  transform: rotate(45deg);
}
.nav-mobile-toggle.open span::after {
  top: 0 !important;
  transform: rotate(-45deg);
}

/* =============================================================
   MOBILE POLISH — Tap targets, iOS fixes, responsive bites
   ============================================================= */

/* Prevent tap-highlight on all interactive elements */
a, button, [role="button"], .filter-btn, .cal-day, .time-slot, .service-pick, .course-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Prevent iOS auto-zoom on input focus (font-size must be 16+) */
input, select, textarea {
  font-size: max(16px, var(--fs-15, 0.95rem));
}

@media (max-width: 768px) {
  /* TAP TARGETS — minimum 44x44 per Apple guideline */
  .btn { min-height: 44px; padding: 14px 24px; }
  .btn-sm { min-height: 40px; padding: 12px 20px; font-size: var(--fs-12); }
  .btn-lg { min-height: 52px; padding: 16px 28px; }

  .filter-btn { min-height: 44px; padding: 10px 18px; font-size: var(--fs-13, 0.82rem); }

  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .nav-mobile-toggle { width: 44px; height: 44px; }

  /* Calendar tap targets */
  .cal-day { min-height: 40px; aspect-ratio: auto; font-size: var(--fs-14); }
  .cal-day-label { padding: var(--s-2) 0; font-size: 10px; }
  .calendar-block { padding: var(--s-5) var(--s-4); }
  .cal-nav button { width: 40px; height: 40px; }

  /* Form inputs ~ comfortable height */
  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 48px;
    padding: 20px 14px 8px;
    font-size: 16px;
  }
  .form-field label { left: 14px; }
  .form-check { padding: var(--s-2) 0; }
  .form-check input { width: 20px; height: 20px; }

  /* Time slots tap targets */
  .time-slot { min-height: 44px; padding: var(--s-2) var(--s-3); display: flex; align-items: center; justify-content: center; }

  /* FAQ tap targets */
  .faq-q { padding: var(--s-4) var(--s-2); min-height: 56px; font-size: var(--fs-18); gap: var(--s-2); }
  .faq-q .toggle { width: 32px; height: 32px; flex-shrink: 0; }

  /* Hero tightening */
  .hero { padding-top: 100px; min-height: auto; padding-bottom: var(--s-7); }
  .hero-h1 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.05; }
  .hero-h1 .script-word { font-size: 1.2em; }
  .hero-sub { font-size: var(--fs-16); }
  .hero-actions { gap: var(--s-2); width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 14px 18px; font-size: var(--fs-12); }
  .hero-trust { gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-4); }
  .hero-trust .avatars img { width: 30px; height: 30px; }
  .hero-trust .trust-text { font-size: var(--fs-12); line-height: 1.3; }

  /* Lead card mobile */
  .lead-card { padding: var(--s-5) var(--s-4); }
  .lead-card::before {
    width: 56px; height: 56px;
    font-size: var(--fs-18);
    top: -14px; right: 8px;
  }
  .lead-card h3 { font-size: var(--fs-24); }
  .lead-card-sub { font-size: var(--fs-13, 0.82rem); }

  /* Stats stack 2x2 */
  .stats { padding: var(--s-5) var(--s-4); gap: var(--s-3); }
  .stat .num { font-size: clamp(1.5rem, 5vw, 2rem); }
  .stat .label { font-size: 10px; letter-spacing: 0.12em; }

  /* Section ornaments shrink on mobile */
  .section-ornament { font-size: clamp(80px, 25vw, 140px); }

  /* Service / Course cards spacing */
  .service-card .body, .course-card .body, .price-card { padding: var(--s-5); }
  .service-card .body h3 { font-size: var(--fs-20); }

  /* Section padding tighter */
  .section { padding: var(--s-8) 0; }
  .section-header { margin-bottom: var(--s-6); }

  /* Footer mobile */
  .footer-bottom { flex-direction: column; gap: var(--s-2); text-align: center; }

  /* Demo modal mobile */
  .demo-modal { padding: var(--s-6) var(--s-4); }
  .demo-modal h3 { font-size: var(--fs-24); }
  .demo-modal .demo-flow { padding: var(--s-4); }
  .demo-modal .demo-actions { flex-direction: column; gap: var(--s-2); width: 100%; }
  .demo-modal .demo-actions .btn { width: 100%; }

  /* Checkout mobile */
  .checkout-stepper { flex-wrap: wrap; gap: var(--s-2); }
  .checkout-stepper .step-divider { display: none; }
  .checkout-stepper .label-txt { display: none; }
  .checkout-form-card { padding: var(--s-5); }
}

/* Tablet: switch to hamburger earlier to fit Servicios + Productos in nav */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links { gap: var(--s-5); }
  .nav-link { font-size: 13px; }
}

/* Home page: navbar over dark hero — light text */
body[data-page="home"] .navbar:not(.scrolled) .nav-link,
body[data-page="home"] .navbar:not(.scrolled) .brand .brand-rest,
body[data-page="home"] .navbar:not(.scrolled) .cart-btn,
body[data-page="home"] .navbar:not(.scrolled) .nav-mobile-toggle {
  color: var(--cream);
}
body[data-page="home"] .navbar:not(.scrolled) .brand-script {
  color: var(--gold);
}
body[data-page="home"] .navbar:not(.scrolled) .cart-btn:hover {
  background: rgba(250, 245, 238, 0.18);
}
body[data-page="home"] .navbar:not(.scrolled) .cart-count {
  border-color: rgba(58, 42, 32, 0.3);
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .btn { min-height: 48px; padding: 14px 20px; }
  .btn-sm { min-height: 44px; }
  .btn-lg { min-height: 56px; }
  .filter-btn { min-height: 44px; padding: 10px 14px; font-size: var(--fs-12); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; flex: none; }
}

/* Tiny phones (320-380px) */
@media (max-width: 380px) {
  .container { padding: 0 var(--s-2); }
  .hero-h1 { font-size: clamp(1.6rem, 10vw, 2rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .nav-cta { padding: 8px 14px; font-size: 11px; }
  .brand { font-size: var(--fs-16); }
  .filter-btn { padding: 10px 14px; font-size: var(--fs-12); min-height: 44px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .num { font-size: var(--fs-20); }
  .pricing { gap: var(--s-3); }
  .price-card { padding: var(--s-4); }
  .price-card .amount { font-size: 2.5rem; }
  .lead-card::before { top: -10px; right: 0; width: 44px; height: 44px; font-size: var(--fs-14); }
  .section-ornament { font-size: clamp(60px, 30vw, 100px); }
  .hero-trust .avatars img { width: 26px; height: 26px; }
  .faq-q { font-size: var(--fs-16); min-height: 48px; }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .navbar { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .footer { padding-bottom: max(var(--s-5), env(safe-area-inset-bottom)); }
}

/* Touch device: disable hover-only effects */
@media (hover: none) and (pointer: coarse) {
  .tilt, .service-card, .course-card, .price-card {
    transform: none !important;
  }
  .service-card:hover, .course-card:hover, .price-card:hover {
    transform: translateY(-2px);
  }
  /* Card hover image zoom disabled for touch */
  .service-card .image img,
  .course-card .thumb img,
  .portfolio-item img { transition: none; }
  .service-card:hover .image img,
  .course-card:hover .thumb img,
  .portfolio-item:hover img { transform: none; }
}

/* =============================================================
   NICHE ANIMATIONS — Polaroid Develop · Lipstick Swatches · Shimmer
   ============================================================= */

/* ---------- 1. POLAROID DEVELOP (image reveal like film developing) ---------- */
.img-develop {
  filter: blur(10px) saturate(0.25) brightness(1.15) contrast(0.85);
  opacity: 0.6;
  transition:
    filter 1600ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: filter, opacity;
}

.img-develop.developed {
  filter: blur(0) saturate(1) brightness(1) contrast(1);
  opacity: 1;
}

/* ---------- 2. LIPSTICK SWATCHES ---------- */
.product-swatches {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.product-swatches .swatches-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faded);
  font-weight: 600;
  margin-right: 4px;
}

.product-swatches .swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch-color, var(--gold));
  border: 1.5px solid var(--cream);
  box-shadow: 0 1px 3px rgba(58, 42, 32, 0.18),
              inset 0 -2px 4px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(8px) scale(0.6);
  transition: transform 220ms var(--ease-soft);
  animation: swatch-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 200ms);
  cursor: pointer;
  position: relative;
}

.product-swatches .swatch:hover {
  transform: translateY(-2px) scale(1.18);
  z-index: 2;
}

.product-swatches .swatch::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-swatches .swatch:hover::after { opacity: 1; }

@keyframes swatch-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-swatches .swatch-count {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-left: 4px;
  opacity: 0;
  animation: swatch-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 600ms;
}

/* Quick view swatches (larger version) */
.qv-shades .qv-shade {
  position: relative;
}

.qv-shades .qv-shade::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch-color, var(--gold));
  border: 1px solid rgba(58, 42, 32, 0.15);
}

.qv-shades .qv-shade {
  padding-left: 28px;
}

/* ---------- 3. GOLDEN SHIMMER SWEEP ---------- */
.shimmer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 244, 220, 0) 20%,
    rgba(255, 244, 220, 0.45) 45%,
    rgba(255, 244, 220, 0.6) 50%,
    rgba(255, 244, 220, 0.45) 55%,
    rgba(255, 244, 220, 0) 80%,
    transparent 100%
  );
  pointer-events: none;
  animation: shimmer-sweep 4.5s ease-in-out infinite;
  animation-delay: var(--shimmer-delay, 1s);
  z-index: 1;
  transform: translateX(0) skewX(-12deg);
}

@keyframes shimmer-sweep {
  0%   { transform: translateX(0) skewX(-12deg); }
  15%  { transform: translateX(420%) skewX(-12deg); }
  100% { transform: translateX(420%) skewX(-12deg); }
}

/* Apply shimmer subtly to specific premium elements */
.lead-card::before {
  position: relative;
  overflow: hidden;
}

.lead-card::before::after,
.shimmer-badge::after {
  /* badge gets its own shimmer */
}

/* ---------- BACK TO TOP BUTTON ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(184, 98, 63, 0.35);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 280ms var(--ease-soft),
              visibility 0s linear 280ms,
              transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
              background 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 280ms var(--ease-soft),
              visibility 0s linear 0s,
              transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top:hover,
.back-to-top:active {
  background: var(--terracotta-deep);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 17px;
    height: 17px;
  }
}

/* Avoid overlapping with toast on mobile */
@media (max-width: 480px) {
  .shop-toast.show ~ .back-to-top.visible,
  body:has(.shop-toast.show) .back-to-top.visible {
    transform: translateY(-72px) scale(1);
  }
}

/* Push back-to-top above the sticky mobile CTA (floating pill) when visible.
   Pill bar sits at bottom 12px + safe-area, height ~60px → clear it with margin. */
@media (max-width: 767px) {
  body:has(.sticky-mobile-cta.visible) .back-to-top {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* ---------- SCROLL HINT (hero arrow indicator) ---------- */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 245, 238, 0.7);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: scroll-hint-in 800ms ease 1500ms forwards;
}

.scroll-hint .arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(250, 245, 238, 0.8));
  position: relative;
  animation: scroll-hint-pulse 2s ease-in-out infinite;
}

.scroll-hint .arrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(250, 245, 238, 0.8);
  border-bottom: 1px solid rgba(250, 245, 238, 0.8);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes scroll-hint-in {
  to { opacity: 1; }
}

@keyframes scroll-hint-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

@media (max-width: 720px) {
  .scroll-hint { font-size: 9px; bottom: 16px; }
  .scroll-hint .arrow { height: 28px; }
}

/* Hide scroll hint when page is scrolled */
body.scrolled .scroll-hint { opacity: 0; }

/* ---------- Reduced motion overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .float-emoji, .sparkle, .pulse-soft, .lead-card::before,
  .scroll-progress, .shimmer::after, .scroll-hint .arrow { animation: none !important; }
  .word-reveal, .word-reveal-em { opacity: 1; filter: none; transform: none; animation: none; }
  .img-develop { filter: none; opacity: 1; transition: none; }
  .img-develop.developed { filter: none; }
  .product-swatches .swatch { animation: none; opacity: 1; transform: none; }
  .product-swatches .swatch-count { animation: none; opacity: 1; }
  .back-to-top { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .scroll-hint { opacity: 0.5; animation: none; }
}
