/* Giro 21 — colores del logo (verde #00AD21 y crema), formas redondas como ruedas. Mobile first. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-500-800.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --leaf: #00ad21;        /* verde del logo */
  --leaf-dark: #0a6b1f;   /* verde para texto sobre crema (buen contraste) */
  --ink: #0d2614;         /* verde casi negro */
  --ink-soft: #3c5443;
  --cream: #f4f2ed;       /* crema del logo */
  --cream-2: #e8e5dc;
  --line: rgba(13, 38, 20, .14);
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1120px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 12px; border-radius: 99px; }
.skip:focus { left: 8px; }

/* Íconos (archivos SVG/WebP usados como máscara: toman el color del texto) */
.wa-icon, .ig-icon, .wheel {
  display: inline-block; flex-shrink: 0; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.wa-icon { --icon: url("img/whatsapp.svg"); width: 22px; height: 22px; }
.ig-icon { --icon: url("img/instagram.svg"); width: 22px; height: 22px; }
.wheel { --icon: url("img/rueda.webp"); }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gutter);
  background: rgba(244, 242, 237, .95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; text-decoration: none; color: var(--leaf-dark); margin-right: auto; text-transform: uppercase; }
.brand span { color: var(--leaf); margin: 0 1px; }
.nav { display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px;
  font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink);
}
.nav a:first-child { background: var(--ink); color: var(--cream); }
.nav a:hover { background: var(--leaf); color: var(--ink); }
.lang { display: flex; padding: 3px; border-radius: 99px; background: var(--cream-2); }
.lang button {
  font: inherit; font-weight: 700; font-size: .85rem; min-width: 40px; min-height: 34px;
  border: 0; border-radius: 99px; background: none; color: var(--ink-soft); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--leaf); color: var(--ink); }
@media (max-width: 599px) {
  .top { flex-wrap: wrap; row-gap: 6px; padding-block: 8px; }
  .brand { order: 1; }
  .lang { order: 2; }
  .nav { order: 3; width: 100%; justify-content: flex-end; }
  html { scroll-padding-top: 110px; }
}

/* ---------- Botones y links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 26px;
  border-radius: 99px; background: var(--ink); color: var(--cream);
  font-family: var(--text); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #1b3d24; }
.link { display: inline-block; padding: 6px 0; font-weight: 700; color: var(--leaf-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { color: var(--ink); }

/* ---------- 1. Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 44px var(--gutter) 56px; background: var(--leaf); color: var(--ink);
}
/* Rueda grande del logo, de fondo */
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -190px; bottom: -200px;
  background-color: var(--ink); opacity: .08;
  -webkit-mask: url("img/rueda.webp") center / contain no-repeat; mask: url("img/rueda.webp") center / contain no-repeat;
}
.hero-logo { margin: 0 0 22px; width: min(80%, 400px); position: relative; }
.hero-logo img { width: 100%; }
.hero-place { position: relative; font-weight: 700; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px; }
.hero-lead { position: relative; font-size: clamp(1.15rem, 4.6vw, 1.45rem); max-width: 26ch; margin-bottom: 26px; }
.hero .btn { position: relative; }

/* ---------- 2. El negocio ---------- */
.shop { padding: 60px 0 56px; }
.shop h2, .prices h2, .place h2 { font-size: clamp(2.4rem, 11vw, 4.2rem); color: var(--ink); margin-bottom: 26px; }
.services { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 4px; }
.services li {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.services li::before {
  content: ""; grid-row: 1 / span 2; width: 40px; height: 40px; background-color: var(--leaf);
  -webkit-mask: url("img/rueda.webp") center / contain no-repeat; mask: url("img/rueda.webp") center / contain no-repeat;
}
.services h3 { font-size: 1.4rem; letter-spacing: -.01em; }
.services p { margin: 2px 0 0; color: var(--ink-soft); }

/* Carrusel */
.carousel { position: relative; max-width: 960px; margin: 0 auto; padding-inline: var(--gutter); }
.carousel:focus-visible { outline: none; }
.carousel:focus-visible .carousel-track { outline: 3px solid var(--leaf-dark); outline-offset: 3px; }
.carousel-track {
  list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--cream-2); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 1.5px solid rgba(10, 107, 31, .35); border-radius: var(--radius);
}
.slide-empty::before {
  content: ""; width: 56px; height: 56px; background-color: var(--leaf); opacity: .9;
  -webkit-mask: url("img/rueda.webp") center / contain no-repeat; mask: url("img/rueda.webp") center / contain no-repeat;
}
.slide-empty span { font-weight: 700; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf-dark); }
.carousel-arrow {
  position: absolute; top: calc(50% - 30px); z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--cream); border: 1.5px solid var(--ink); color: var(--ink);
  box-shadow: 0 4px 14px rgba(13, 38, 20, .15); transition: background .2s, color .2s;
}
.carousel-arrow::before { content: ""; width: 10px; height: 10px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.carousel-arrow.prev { left: calc(var(--gutter) + 10px); }
.carousel-arrow.prev::before { transform: translateX(2px) rotate(-135deg); }
.carousel-arrow.next { right: calc(var(--gutter) + 10px); }
.carousel-arrow.next::before { transform: translateX(-2px) rotate(45deg); }
.carousel-arrow:hover { background: var(--ink); color: var(--cream); }
.carousel-arrow:focus-visible { outline: 3px solid var(--leaf-dark); outline-offset: 2px; }
.carousel-arrow:disabled { opacity: .35; cursor: default; background: var(--cream); color: var(--ink); }
.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
.carousel-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--leaf-dark); transition: background .2s, width .2s; }
.carousel-dots button[aria-current="true"]::before { background: var(--leaf-dark); width: 22px; border-radius: 99px; }
.carousel-dots button:focus-visible { outline: 2px solid var(--leaf-dark); outline-offset: -4px; border-radius: 50%; }

/* Horario */
.hours { margin-top: 30px; background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 22px 22px 10px; }
.hours h3 { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); margin-bottom: 8px; font-family: var(--text); }
.hours dl { margin: 0; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid rgba(244, 242, 237, .14); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--leaf); letter-spacing: -.01em; }

/* ---------- 3. Precios ---------- */
.prices { padding: 56px 0; background: var(--cream-2); }
.price-list { margin: 0 0 26px; }
.price-list div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-top: 1.5px solid var(--ink); }
.price-list div:last-child { border-bottom: 1.5px solid var(--ink); }
.price-list dt { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.price-list dd { margin: 0; font-weight: 700; color: var(--leaf-dark); }

/* ---------- 4. Reseñas ---------- */
.reviews { padding: 60px 0; background: var(--ink); color: var(--cream); }
.score { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.score-num { font-size: clamp(5rem, 24vw, 8.5rem); color: var(--leaf); line-height: .8; letter-spacing: -.04em; }
.score-label { font-family: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; max-width: 10ch; }
.reviews-title { color: rgba(244, 242, 237, .75); margin-bottom: 12px; }
.highlights { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.highlights li { padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--leaf); font-weight: 700; }
.reviews .link { color: var(--leaf); }
.reviews .link:hover { color: var(--cream); }

/* ---------- 5. Lugar ---------- */
.place { padding: 60px 0 40px; }
.address { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 5vw, 1.7rem); margin-bottom: 10px; letter-spacing: -.01em; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; }
.contact-line a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); }
.contact-line a:hover { color: var(--leaf-dark); }
.contact-line .wa-icon, .contact-line .ig-icon { color: var(--leaf-dark); }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); margin-bottom: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.footer { background: var(--ink); color: rgba(244, 242, 237, .8); padding: 22px var(--gutter) 160px; font-size: .9rem; }
.footer p { margin: 0; padding-right: 72px; }
.footer a { color: var(--leaf); white-space: nowrap; }
.footer-ig { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 8px; }
.footer-ig .ig-icon { width: 20px; height: 20px; }

/* ---------- Flotantes ---------- */
.wa-float, .ig-float {
  position: fixed; z-index: 60; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px rgba(13, 38, 20, .35); transition: transform .2s;
}
.wa-float { right: 16px; bottom: 16px; width: 60px; height: 60px; background: #1fa855; }
.wa-float .wa-icon { width: 32px; height: 32px; }
.ig-float { right: 20px; bottom: 88px; width: 52px; height: 52px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ig-float .ig-icon { width: 26px; height: 26px; }
.wa-float:hover, .ig-float:hover { transform: scale(1.06); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--leaf-dark); outline-offset: 3px; }
.hero a:focus-visible, .reviews a:focus-visible, .footer a:focus-visible { outline-color: var(--cream); }

/* Aparecer al bajar: solo cuando el JS marcó el elemento (sin JS, todo visible) */
.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity .45s ease-out, transform .45s ease-out; transition-delay: var(--d, 0s); }
.reveal-pending.is-visible { opacity: 1; transform: none; }

/* =================== Tablet y escritorio =================== */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .hero { padding: 64px var(--gutter) 80px; }
  .hero::before { width: 760px; height: 760px; right: -240px; bottom: -300px; }
  .hero-logo { width: 420px; }
  .shop, .prices, .reviews { padding: 96px 0; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .services li { grid-template-columns: 1fr; border-top: 3px solid var(--leaf); padding-top: 20px; align-items: start; }
  .services li::before { grid-row: auto; margin-bottom: 12px; }
  .carousel-arrow { width: 52px; height: 52px; }
  .carousel-arrow.prev { left: calc(var(--gutter) + 16px); }
  .carousel-arrow.next { right: calc(var(--gutter) + 16px); }
  .hours { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; padding: 28px 32px; margin-top: 44px; }
  .hours h3 { margin: 0; }
  .price-list { max-width: 720px; }
  .reviews-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
  .score { flex-direction: column; align-items: flex-start; margin: 0; }
  .place { padding-top: 96px; }
  .map { aspect-ratio: 16 / 6; }
  .footer { padding-bottom: 24px; }
  .footer p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
