/* ================================================================
   Polish layer (November 2026): motion, touch feedback and compact phone layouts.
   Linked last from MainLayout (/pulido/polish.css). It changes how sections sit and move, not what they say.
   - Phones: long stacks become swipe rows, sections sit closer, the header slims on scroll.
   - Everywhere: scroll reveals, button and card feedback, page-to-page fade.
   The matching script is /pulido/polish.js.
   ================================================================ */

:root {
  --pl-spring: cubic-bezier(.32, 1.4, .54, 1);
  --pl-ease: cubic-bezier(.22, 1, .36, 1);
  --pl-coral: #ef7973;
  --pl-pink: #f58fa4;
  --pl-yellow: #ffdc57;
}

/* ---------- page-to-page fade (browsers that support it) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pl-out .18s ease both; }
::view-transition-new(root) { animation: pl-in .28s var(--pl-ease) both; }
@keyframes pl-out { to { opacity: 0; } }
@keyframes pl-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- scroll progress + slim header ---------- */
.pl-progress { position: fixed; z-index: 1200; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--pl-p, 0)); background: linear-gradient(90deg, var(--pl-yellow), var(--pl-coral), var(--pl-pink)); pointer-events: none; }
body .site-header { transition: box-shadow .25s ease; }
body.pl-scrolled .site-header { box-shadow: 0 10px 30px rgba(120, 50, 50, .16); }
body .site-header .header-top { transition: max-height .3s var(--pl-ease), padding .3s var(--pl-ease), opacity .2s ease; max-height: 140px; overflow: hidden; }
body .nav-strip a { position: relative; transition: background .2s, color .2s, transform .15s; }
body .nav-strip a:active { transform: scale(.95); }
body .nav-strip a.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 5px; height: 3px; border-radius: 3px; background: #fff; opacity: .9; }

/* ---------- touch and hover feedback ---------- */
body .pill-button, body .landing-card, body .featured-event-card, body .round-service, body .curso-aviso__btn, body .big-whatsapp, body .coming-soon-button {
  transition: transform .22s var(--pl-spring), box-shadow .22s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
body .pill-button:active, body .landing-card:active, body .featured-event-card:active, body .round-service:active, body .curso-aviso__btn:active, body .big-whatsapp:active { transform: scale(.96); }
@media (hover: hover) {
  body .pill-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(200, 80, 70, .26); }
  body .landing-card:hover, body .featured-event-card:hover, body .review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(120, 50, 50, .18); }
  body .round-service:hover { transform: translateY(-4px) scale(1.03); }
  body .preview-mosaic img, body .event-gallery img, body .featured-event-card img, body .landing-photos img { transition: transform .5s var(--pl-ease), filter .3s; }
  body .preview-mosaic img:hover, body .event-gallery img:hover, body .landing-photos img:hover { transform: scale(1.04); }
  body .featured-event-card:hover img { transform: scale(1.06); }
}
body .review-card { transition: transform .25s var(--pl-spring), box-shadow .25s ease; }
/* light sweep across the main buttons */
body .pill-button.coral, body .curso-aviso__btn { position: relative; overflow: hidden; isolation: isolate; }
body .pill-button.coral::after, body .curso-aviso__btn::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%); transform: translateX(-120%); animation: pl-shine 4.2s ease-in-out 1.2s infinite; }
@keyframes pl-shine { 45%, 100% { transform: translateX(120%); } }
/* the WhatsApp button breathes so it is easy to find */
body .whatsapp-float { animation: pl-breathe 3.2s ease-in-out infinite; }
@keyframes pl-breathe { 50% { box-shadow: 0 0 0 9px rgba(37, 211, 102, .16), 0 12px 26px rgba(20, 90, 50, .28); } }
body .step-bubble, body .curso-aviso img { animation: pl-float 5s ease-in-out infinite; }
@keyframes pl-float { 50% { transform: translateY(-6px); } }

/* ---------- scroll reveals (only when the script is running) ---------- */
.pl-js .pl-rv { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .6s var(--pl-ease), transform .7s var(--pl-ease); transition-delay: calc(var(--pl-i, 0) * 70ms); }
.pl-js .pl-rv.pl-in { opacity: 1; transform: none; }
.pl-js .section-title h2, .pl-js .display-label { background-image: linear-gradient(90deg, var(--pl-yellow), var(--pl-coral)); background-repeat: no-repeat; background-position: 50% 100%; background-size: 0 4px; padding-bottom: 10px; transition: background-size .8s var(--pl-ease) .2s, opacity .6s var(--pl-ease), transform .7s var(--pl-ease); }
.pl-js .section-title h2.pl-in, .pl-js .display-label.pl-in { background-size: 72px 4px; }

/* ---------- swipe rows ---------- */
.pl-dots { display: none; }
.pl-chips { display: none; }

@media (max-width: 759px) {
  /* sections sit closer together */
  body .section-space { padding-top: 34px !important; padding-bottom: 34px !important; }
  body .landing-section { padding-top: 30px !important; padding-bottom: 30px !important; }
  body .landing-hero { padding-top: 28px !important; padding-bottom: 26px !important; }
  body .section-title { margin-bottom: 16px !important; }
  body .section-title p, body .gallery-intro p { margin-top: 6px; }

  /* slim header once you scroll: only the menu strip stays */
  body.pl-scrolled .site-header .header-top { max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; opacity: 0; }

  /* home hero: photo no taller than a third of the screen, copy right under it */
  body .owner-home-hero__media img { height: 300px !important; max-height: 38vh !important; object-fit: cover !important; object-position: 50% 28% !important; }
  body .owner-home-hero__copy { padding: 22px 20px 20px !important; gap: 12px !important; }
  body .owner-home-hero h1 { font-size: clamp(34px, 10.5vw, 44px) !important; line-height: 1.02 !important; margin: 0 !important; }
  body .owner-home-hero__intro { font-size: 15.5px !important; line-height: 1.4 !important; margin: 0 !important; }
  body .hero-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
  body .hero-buttons .pill-button { width: 100%; padding-left: 10px; padding-right: 10px; text-align: center; justify-content: center; }
  body .owner-home-hero__grid { min-height: 0 !important; padding-bottom: 92px !important; }
  body .hero-proof { margin-bottom: 8px !important; }
  body .gallery-preview { padding-top: 92px !important; }
  body .reviews-section { padding-top: 34px !important; padding-bottom: 34px !important; }
  body .service-area-band { padding-top: 22px !important; padding-bottom: 22px !important; }
  body .welcome-section { padding-top: 24px !important; padding-bottom: 26px !important; }
  body .curso-aviso { padding: 12px 0 !important; }
  body .curso-aviso__in { flex-wrap: nowrap !important; gap: 10px !important; }
  body .curso-aviso__txt > span { display: none !important; }
  body .curso-aviso__btn { width: auto !important; padding: 0 14px !important; font-size: 14px !important; white-space: nowrap; }
  body .curso-aviso__tools { font-size: 12.5px !important; }
  body .curso-aviso img { width: 40px !important; height: 40px !important; }
  body .curso-aviso strong { font-size: 16.5px !important; }
  body .curso-aviso span { font-size: 13.5px !important; }
  body .curso-aviso__btn { min-height: 42px !important; }

  /* long stacks become rows you swipe sideways */
  body .pl-row {
    display: flex !important; grid-template-columns: none !important; flex-wrap: nowrap !important; gap: 12px !important;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* the script stretches each row to the screen edges (--pl-l / --pl-r) so cards peek in from the side */
    margin-left: calc(var(--pl-l, 0px) * -1) !important; margin-right: calc(var(--pl-r, 0px) * -1) !important;
    padding: 6px 16px 10px !important; scroll-padding: 0 16px;
    column-count: auto !important; columns: auto !important; max-width: none !important; width: auto !important;
  }
  body .pl-row::-webkit-scrollbar { display: none; }
  body .pl-row > * { flex: 0 0 var(--pl-w, 82%) !important; width: auto !important; max-width: none !important; scroll-snap-align: center; margin: 0 !important; min-width: 0; }
  body .featured-events-home__grid.pl-row { --pl-w: 78%; }
  body .reviews-grid.pl-row { --pl-w: 80%; align-items: flex-start; }
  body .booking-steps.pl-row { --pl-w: 58%; }
  body .offered-grid.pl-row { --pl-w: 38%; }
  body .preview-mosaic.pl-row { --pl-w: 62%; }
  body .preview-mosaic.pl-row > img { height: 230px !important; object-fit: cover; border-radius: 18px; }
  body .about-highlights-v4__grid.pl-row { --pl-w: 80%; }
  body .service-tiles.pl-row { --pl-w: 86%; }
  body .service-tiles.pl-row > .service-tile { border-radius: 22px; overflow: hidden; min-height: 0 !important; height: 380px !important; }
  body .landing-photos.pl-row { --pl-w: 70%; }

  /* dots under each swipe row */
  .pl-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 0; }
  .pl-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(160, 100, 100, .28); transition: width .3s var(--pl-ease), background .3s; }
  .pl-dots i.on { width: 20px; background: var(--pl-coral); }
  /* quick-jump chips above long rows */
  .pl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 14px 10px; margin: 0; }
  .pl-chips::-webkit-scrollbar { display: none; }
  .pl-chips button { flex: none; min-height: 38px; padding: 0 14px; border: 1.5px solid rgba(239, 121, 115, .45); border-radius: 999px; background: #fff; color: #b4483b; font: 700 13.5px/1 inherit; font-family: inherit; white-space: nowrap; transition: background .2s, color .2s, transform .15s; }
  .pl-chips button:active { transform: scale(.95); }
  .pl-chips button.on { background: var(--pl-coral); border-color: var(--pl-coral); color: #fff; }

  /* card lists: two per row */
  body .landing-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 10px !important; }
  body .landing-cards .landing-card { padding: 12px 12px !important; min-height: 0 !important; min-width: 0 !important; overflow-wrap: anywhere; }
  body .landing-cards .landing-card > * { min-width: 0; }
  body .landing-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px !important; }
  body .landing-actions .pill-button { width: 100%; padding-left: 8px; padding-right: 8px; text-align: center; justify-content: center; }
  body .landing-includes { gap: 8px !important; }
  body .landing-includes > * { padding-top: 10px !important; padding-bottom: 10px !important; }

  /* about: photos no taller than a third of the screen */
  body .owner-about-hero-v4__media img { height: 300px !important; max-height: 38vh !important; object-fit: cover !important; object-position: 50% 22% !important; }
  body .owner-about-hero-v4__copy { padding: 24px 20px 26px !important; }
  body .owner-working-card-v4 img { height: 250px !important; object-fit: cover !important; }
  body .landing-cards .landing-card h3, body .landing-cards .landing-card strong { font-size: 15px !important; line-height: 1.2 !important; }
  body .landing-cards .landing-card p, body .landing-cards .landing-card span { font-size: 12.5px !important; line-height: 1.3 !important; }

  /* about: story paragraphs fold after the first */
  body .pl-fold > *:nth-child(n+2) { display: none; }
  body .pl-fold.pl-open > * { display: block; }
  .pl-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 42px; padding: 0 16px; border: 1.5px solid rgba(239, 121, 115, .5); border-radius: 999px; background: #fff; color: #b4483b; font: 700 14px/1 inherit; font-family: inherit; }

  /* footer: links in two columns, less air */
  body .site-footer .footer-layout { grid-template-columns: 1fr 1fr !important; gap: 14px 18px !important; padding-top: 14px !important; padding-bottom: 14px !important; }
  body .site-footer .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
  body .site-footer .footer-brand img { max-width: 132px; height: auto; }
  body .site-footer .footer-brand p { margin: 0; font-size: 13px; line-height: 1.35; }
  body .site-footer .footer-links { display: grid; grid-template-columns: 1fr; gap: 2px; align-content: start; }
  body .site-footer .footer-links a { padding: 5px 0; font-size: 14.5px; }
  body .site-footer .footer-layout h2 { margin: 0 0 6px; font-size: 15px; }
  body .site-footer .footer-layout p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; }
  body .site-footer .footer-bottom { padding-top: 10px !important; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; font-size: 12.5px; gap: 4px; }
  body .follow-section { padding-top: 22px !important; padding-bottom: 22px !important; }
  body .ready-section { min-height: 0 !important; }
  body .ready-content { padding-top: 34px !important; padding-bottom: 34px !important; }
}
@media (min-width: 760px) { .pl-more { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .pl-js .pl-rv { opacity: 1; transform: none; transition: none; }
  body .pill-button.coral::after, body .curso-aviso__btn::after, body .whatsapp-float, body .step-bubble, body .curso-aviso img { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
