/* ==========================================================================
   Sahtén, comida árabe y empanadas (Córdoba, Argentina)
   Dirección: la noche del logo. Negro cálido y dorado del logo, arena clara
   para leer, terracota de las empanadas como acento. Cinzel (las mismas
   mayúsculas del "SAHTEN" del logo) en los títulos; Alegreya Sans, tipografía
   argentina, en el texto. El arco apuntado del logo recorta las fotos.
   Índice
   1. Fuentes y tokens
   2. Base
   3. Utilidades y componentes (botones, enlaces, arco, patrón)
   4. Cabecera
   5. Hero
   6. Secciones (estructura común)
   7. La cocina (carta y arcos)
   8. Picada árabe
   9. Cómo pedir
   10. Horarios y ubicación
   11. Cierre
   12. Pie
   13. Botón de WhatsApp
   14. Movimiento
   ========================================================================== */

/* 1. Fuentes y tokens
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-normal-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-normal-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-normal-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-normal-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-italic-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colores tomados del logo */
  --ink: #14110c;         /* negro cálido del fondo del logo */
  --gold: #d2ab5a;        /* dorado del arco y las letras */
  --gold-soft: #e8cf95;   /* brillo del dorado */

  /* De apoyo: arena de la masa, terracota de las empanadas, verde del perejil */
  --sand: #f4ecdc;
  --sand-deep: #e9dcc3;
  --line: #d6c7a6;
  --terracotta: #a5461c;  /* acento sobre fondo claro (AA en texto) */
  --olive: #5f6b3a;
  --ink-soft: #5b5245;    /* texto secundario sobre arena */
  --ink-line: #2b251d;    /* líneas sobre el negro */
  --mist: #b8ad99;        /* texto secundario sobre el negro */
  --white: #fdfbf6;
  --whatsapp: #25d366;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --section-space: clamp(72px, 9vw, 136px);
  --header-height: 72px;
  --radius: 4px;
  --focus: var(--gold);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 2px 4px rgba(20, 17, 12, 0.1), 0 20px 48px rgba(20, 17, 12, 0.28);

  /* patrón de estrellas de ocho puntas, muy tenue, sobre el negro */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d2ab5a' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M48 8l9.6 23.4L81 41.4 57.6 51 48 74.4 38.4 51 15 41.4l23.4-10z'/%3E%3Cpath d='M48 20.3l6.4 15.4 15.4 6.4-15.4 6.4L48 63.9l-6.4-15.4-15.4-6.4 15.4-6.4z'/%3E%3Cpath d='M0 0l8 8M96 0l-8 8M0 96l8-8M96 96l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 980px) {
  :root {
    --header-height: 84px;
  }
}

/* 2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--sand :focus-visible {
  outline-color: var(--terracotta);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* 3. Utilidades y componentes
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

/* media estrella, para el 4,6 */
.icon--half {
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 60%, transparent 60%);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Rótulo de sección: versalitas doradas con una estrella antes */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.hero .eyebrow,
.section--ink .eyebrow,
.closing .eyebrow {
  color: var(--gold);
}

@media (max-width: 479px) {
  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--small {
  min-height: 46px;
  padding: 8px 20px;
  font-size: 1rem;
}

.btn--big {
  min-height: 62px;
  padding: 14px 34px;
  font-size: 1.125rem;
}

/* texto negro sobre dorado: el blanco no alcanza contraste AA */
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: #2a241b;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(253, 251, 246, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.link-arrow .icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* El arco: recorta la foto con la forma del arco del logo y le pone un
   filete dorado por fuera, separado por el color del fondo */
.arch {
  position: relative;
  padding: 10px;
}

.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  clip-path: url(#arco);
}

.arch::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--arch-bg, var(--sand));
  clip-path: url(#arco);
}

.arch picture,
.arch img {
  position: relative;
  z-index: 1;
}

.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: url(#arco);
}

.section--ink .arch,
.hero .arch {
  --arch-bg: var(--ink);
}

/* 4. Cabecera
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

/* el logo es un JPG de 150 px: se muestra redondo y chico, nunca ampliado */
.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.brand__tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

@media (min-width: 980px) {
  .brand__logo {
    width: 50px;
    height: 50px;
  }
}

.header__toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid rgba(253, 251, 246, 0.35);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.header__toggle-icon {
  display: grid;
  gap: 6px;
  width: 20px;
}

.header__toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 28px;
  padding-block: 12px;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.nav__list a {
  display: inline-block;
  padding-block: 10px;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__list a:hover {
  color: var(--gold-soft);
}

@media (max-width: 1059px) {
  .js .header__toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
  }

  .js .nav.is-open {
    display: flex;
  }

  .js .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav__list a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding-block: 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 1.125rem;
  }

  .js .nav__cta {
    width: 100%;
    min-height: 56px;
  }
}

/* 5. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(56px, 8vw, 104px);
  background: var(--ink) var(--pattern);
  color: var(--white);
  overflow: hidden;
}

/* el patrón se desvanece hacia abajo, para no competir con el texto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 12, 0) 0%, rgba(20, 17, 12, 0.6) 55%, var(--ink) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Dos líneas en escritorio, tres o cuatro en el celular */
.hero__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.2rem + 4vw, 3.875rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero__title em,
.section__title em,
.closing__title em {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.hero__lead {
  max-width: 32em;
  margin-top: 24px;
  color: var(--mist);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--mist);
  font-size: 1rem;
}

.rating strong {
  color: var(--white);
}

.rating__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.rating__stars .icon {
  width: 16px;
  height: 16px;
}

.hero__figure {
  width: min(100%, 440px);
  margin-inline: auto;
}

.arch--hero img {
  aspect-ratio: 4 / 5;
}

.hero__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__caption .icon {
  width: 12px;
  height: 12px;
}

@media (max-width: 479px) {
  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
  }

  .hero__title {
    font-size: clamp(2.375rem, 4.3vw, 3.875rem);
  }

  .hero__figure {
    justify-self: end;
    margin-inline: 0;
  }
}

/* 6. Secciones
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--sand {
  background: var(--sand);
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section--ink {
  background: var(--ink) var(--pattern);
  color: var(--white);
}

/* el patrón se apaga hacia el texto */
.section--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 12, 0) 0%, rgba(20, 17, 12, 0.7) 60%, var(--ink) 100%);
  pointer-events: none;
}

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

.section__intro {
  display: grid;
  gap: 8px;
}

.section__intro .section__lead {
  margin-top: 16px;
}

.section__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.section--sand .section__title em {
  color: var(--terracotta);
}

.section__lead {
  max-width: 32em;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

.section--ink .section__lead {
  color: var(--mist);
}

@media (min-width: 900px) {
  .section__intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: clamp(40px, 6vw, 96px);
  }

  .section__intro .section__lead {
    margin-top: 0;
  }
}

/* 7. La cocina
   ========================================================================== */

.kitchen__grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(40px, 5vw, 64px);
}

/* La carta: nombre en Cinzel, descripción abajo, filete entre ítems */
.carta {
  border-top: 1px solid var(--ink);
}

.carta__item {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.carta dt {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.carta dd {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.arcos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.arcos__cap {
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.kitchen__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  margin-top: clamp(40px, 5vw, 64px);
}

@media (max-width: 479px) {
  .kitchen__actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .kitchen__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(48px, 6vw, 96px);
  }

  .arcos {
    gap: 32px 24px;
  }

  /* los arcos de la derecha bajan un poco, como en un patio con columnas */
  .arcos__item:nth-child(even) {
    margin-top: 48px;
  }
}

/* 8. Picada árabe
   ========================================================================== */

.picada__grid {
  display: grid;
  gap: 44px;
}

.picada__figure {
  width: min(100%, 480px);
  margin-inline: auto;
}

.arch--big img {
  aspect-ratio: 4 / 5;
}

.ticks {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  color: var(--white);
}

.ticks li {
  display: flex;
  gap: 12px;
}

.ticks .icon {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  color: var(--gold);
}

.picada__actions {
  margin-top: 36px;
}

@media (max-width: 479px) {
  .picada__actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .picada__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 112px);
  }

  .picada__figure {
    margin-inline: 0;
  }
}

/* 9. Cómo pedir
   ========================================================================== */

.steps__list {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: paso;
}

.step {
  position: relative;
  padding-left: 72px;
}

.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.step__title {
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step__text {
  margin-top: 8px;
  color: var(--ink-soft);
}

.step__text a {
  display: inline-block;
  padding-block: 8px;
  margin-block: -8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (min-width: 760px) {
  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
  }

  .step {
    padding-left: 0;
  }

  .step__num {
    position: static;
  }

  .step__title {
    padding-top: 20px;
  }
}

/* 10. Horarios y ubicación
   ========================================================================== */

.visit__grid {
  display: grid;
  gap: 44px;
}

.hours {
  width: 100%;
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.hours th,
.hours td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.hours th {
  width: 45%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hours td {
  font-weight: 500;
  text-align: right;
}

.contacts {
  margin-top: 28px;
}

.contacts a {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 4px 14px;
  min-height: 68px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.contacts a:hover {
  color: var(--terracotta);
}

.contacts .icon {
  width: 22px;
  height: 22px;
  color: var(--terracotta);
}

.contacts__label {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contacts__value {
  font-weight: 700;
  text-align: right;
}

.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.map iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  background: var(--sand-deep);
}

.map__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.map__link:hover {
  background: var(--sand);
}

@media (min-width: 900px) {
  .visit__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(48px, 7vw, 104px);
  }
}

/* 11. Cierre
   ========================================================================== */

.closing {
  position: relative;
  padding-block: var(--section-space);
  background: var(--ink) var(--pattern);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing__star {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.closing__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.3rem + 4.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

.closing__text {
  max-width: 30em;
  margin-top: 20px;
  color: var(--mist);
  font-size: 1.1875rem;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

@media (max-width: 479px) {
  .closing__actions,
  .closing__actions .btn {
    width: 100%;
  }
}

/* 12. Pie
   ========================================================================== */

.footer {
  padding-top: 64px;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  color: var(--mist);
  font-size: 1rem;
}

.footer__grid {
  display: grid;
  gap: 40px;
}

.footer__brand p {
  max-width: 24em;
  margin-top: 18px;
}

.footer__col p + p {
  margin-top: 10px;
}

.footer__heading {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--gold-soft);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  /* la holgura de abajo deja el botón de WhatsApp lejos del texto */
  padding-block: 20px 88px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.875rem;
}

.footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
}

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

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

/* 13. Botón de WhatsApp
   ========================================================================== */

.whats-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 95;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(20, 17, 12, 0.4);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.whats-float:hover {
  background: #4be083;
  transform: translateY(-2px);
}

.whats-float:focus-visible {
  outline-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ink);
}

.whats-float .icon {
  width: 28px;
  height: 28px;
}

@media (min-width: 900px) {
  .whats-float {
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
  }
}

/* 14. Movimiento
   ========================================================================== */

.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.motion-ok [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.motion-ok .arcos__item:nth-child(2)[data-reveal],
.motion-ok .step:nth-child(2)[data-reveal] { transition-delay: 0.1s; }
.motion-ok .arcos__item:nth-child(3)[data-reveal],
.motion-ok .step:nth-child(3)[data-reveal] { transition-delay: 0.2s; }
.motion-ok .arcos__item:nth-child(4)[data-reveal] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .whats-float:hover,
  .btn:hover {
    transform: none;
  }
}
