/* ==========================================================================
   Tacontodo — site styles
   Shared by every page · automatic dark and light themes
   ========================================================================== */

@font-face {
  font-family: 'Urbanist';
  src: url(fonts/urbanist.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RBNo2';
  src: url(fonts/rbno2.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  color-scheme: dark light;

  /* Brand */
  --accent: #F16553;
  --accent-text: #F16553;

  /* Surfaces */
  --bg: #111518;
  --bg-alt: #0C0F11;
  --bg-deep: #0A0D0F;
  --card: #151A1E;
  --card-hover: #192026;
  --nav-bg: #0C0F11;

  /* Text */
  --text: #fff;
  --text-secondary: #E4E9EC;
  --text-tertiary: #C3CBD0;
  --muted: #8F9AA1;
  --muted-alt: #7E8991;

  /* Lines, icons and shadows */
  --line: rgba(255, 255, 255, .08);
  --line-alt: rgba(255, 255, 255, .12);
  --icon-bg: #fff;
  --icon-fg: #0C0F11;
  --social-bg: #1F2A31;
  --social-fg: #fff;
  --dots-color: rgba(255, 255, 255, .25);
  --nav-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  --card-shadow: 0 14px 30px rgba(0, 0, 0, .4);

  /* Type families */
  --font-body: 'Urbanist', system-ui, sans-serif;
  --font-display: 'RBNo2', sans-serif;

  /* Type scale */
  --text-size-lead: 20px;
  --text-size-body: 18px;
  --text-size-small: 15px;
  --text-size-ui: 15px;
  --display-size-section: 48px;
  --display-size-card: 28px;
  --display-size-label: 20px;

  /* Height of the fixed navigation bar */
  --nav-height: 74px;

  /* Raised buttons: soft gradient, light edge on top, layered shadows.
     Coral and gray glass let the background show through; paper is the light-theme ghost. */
  --button-bg-glass: linear-gradient(180deg, rgba(244, 107, 88, .88), rgba(238, 96, 77, .82));
  --button-bg-solid: linear-gradient(180deg, #F46B58, #EE604D);
  --button-bg: var(--button-bg-glass);
  --button-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 2px rgba(0, 0, 0, .28), 0 5px 14px rgba(0, 0, 0, .26);
  --button-shadow-pressed: inset 0 2px 5px rgba(120, 30, 20, .35), 0 1px 1px rgba(0, 0, 0, .2);
  --glass-bg: linear-gradient(180deg, rgba(52, 58, 63, .62), rgba(22, 26, 29, .58));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .25), inset 0 0 0 1.5px rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .3), 0 5px 14px rgba(0, 0, 0, .28);
  --glass-shadow-pressed: inset 0 2px 5px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .6);
  --paper-bg: linear-gradient(180deg, #FFFFFF, #F4F5F6);
  --paper-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(17, 21, 24, .10), 0 1px 2px rgba(17, 21, 24, .10), 0 4px 10px rgba(17, 21, 24, .08);
  --paper-shadow-pressed: inset 0 2px 4px rgba(17, 21, 24, .14), inset 0 0 0 1px rgba(17, 21, 24, .10);
  --ghost-bg: var(--glass-bg);
  --ghost-fg: #fff;
  --ghost-shadow: var(--glass-shadow);
  --ghost-shadow-pressed: var(--glass-shadow-pressed);
}

@media (prefers-color-scheme: light) {
  :root {
    --accent-text: #C8432F;

    --bg: #FBF8F3;
    --bg-alt: #F2EDE5;
    --bg-deep: #E9E2D8;
    --card: #FFFFFF;
    --card-hover: #FFFFFF;
    --nav-bg: #FBF8F3;

    --text: #111518;
    --text-secondary: #2A343B;
    --text-tertiary: #4A545B;
    --muted: #55626A;
    --muted-alt: #55626A;

    --line: rgba(17, 21, 24, .10);
    --line-alt: rgba(17, 21, 24, .14);
    --icon-bg: #111518;
    --icon-fg: #fff;
    --social-bg: #111518;
    --social-fg: #fff;
    --dots-color: rgba(17, 21, 24, .25);
    --nav-shadow: 0 4px 18px rgba(17, 21, 24, .12);
    --card-shadow: 0 14px 30px rgba(17, 21, 24, .14);

    --button-bg: var(--button-bg-solid);
    --button-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(190, 60, 45, .2), 0 4px 10px rgba(190, 60, 45, .16);
    --ghost-bg: var(--paper-bg);
    --ghost-fg: var(--text);
    --ghost-shadow: var(--paper-shadow);
    --ghost-shadow-pressed: var(--paper-shadow-pressed);
  }
}

@media (max-width: 1024px) {
  :root {
    --display-size-section: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --text-size-lead: 18px;
    --text-size-body: 16px;
    --text-size-small: 14px;
    --display-size-section: 32px;
    --display-size-card: 24px;
    --display-size-label: 18px;
  }
}


/* ==========================================================================
   Base
   ========================================================================== */

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

::selection {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-size-body);
  font-weight: 400;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section {
  padding: 0 40px;
}

.section > .container {
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .section {
    padding: 0 32px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 0 20px;
  }
}

.section-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--display-size-section);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}


/* ==========================================================================
   Buttons
   .button is the call-to-action; .site-nav__cta shares its box and type.
   ========================================================================== */

.button,
.site-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--button-bg);
  color: #fff;
  box-shadow: var(--button-shadow);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: scale .15s ease, translate .2s ease, filter .2s ease, box-shadow .15s ease;
}

.button:active {
  scale: .985;
  box-shadow: var(--button-shadow-pressed);
}

.button--ghost:active,
.site-nav__cta:active,
.back-to-top:active {
  scale: .985;
  box-shadow: var(--ghost-shadow-pressed);
}

@media (hover: hover) {
  .button:hover,
  .site-nav__cta:hover {
    translate: 0 -2px;
    filter: brightness(1.07);
  }
}

.button--ghost,
.site-nav__cta,
.back-to-top {
  background: var(--ghost-bg);
  color: var(--ghost-fg);
  box-shadow: var(--ghost-shadow);
}

/* Gray glass in both themes where the button sits on the video or floats over the page */
.site-nav__cta,
.hero__actions .button--ghost,
.back-to-top {
  --ghost-bg: var(--glass-bg);
  --ghost-fg: #fff;
  --ghost-shadow: var(--glass-shadow);
  --ghost-shadow-pressed: var(--glass-shadow-pressed);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}


/* ==========================================================================
   Navigation bar
   Transparent over the hero; solid once the page scrolls (.is-scrolled).
   Three columns on desktop keep the links centred on every page.
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 40px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .3s ease, padding .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  pointer-events: none;
  transition: opacity .3s ease;
}

.site-nav > * {
  position: relative;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--nav-bg);
  box-shadow: var(--nav-shadow);
}

.site-nav.is-scrolled::before {
  opacity: 0;
}

.site-nav__logo img {
  display: block;
  width: auto;
  height: 40px;
}

.site-nav__logo .logo-dark {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  color: #fff;
  font-size: var(--text-size-ui);
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  text-transform: uppercase;
  transition: color .3s ease;
}

.site-nav.is-scrolled .site-nav__link {
  color: var(--text);
  text-shadow: none;
}

.site-nav .site-nav__link:hover {
  color: var(--accent);
}

.site-nav__cta {
  justify-self: end;
}

@media (prefers-color-scheme: light) {
  .site-nav.is-scrolled .site-nav__logo .logo-light {
    display: none;
  }

  .site-nav.is-scrolled .site-nav__logo .logo-dark {
    display: block;
  }

  .site-nav.is-scrolled .site-nav__cta {
    --ghost-bg: var(--paper-bg);
    --ghost-fg: var(--text);
    --ghost-shadow: var(--paper-shadow);
    --ghost-shadow-pressed: var(--paper-shadow-pressed);
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 10px 16px;
  }

  .site-nav__logo img {
    height: 52px;
  }

  .site-nav ul {
    display: none;
  }

  .site-nav__cta {
    margin-left: auto;
  }
}


/* ==========================================================================
   Action bar
   Order / call buttons and back-to-top, shown once the visitor scrolls.
   Full-width bar on phones, floating buttons on larger screens.
   ========================================================================== */

.action-bar {
  display: none;
}

.back-to-top {
  flex: 0 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: scale .15s ease, box-shadow .15s ease;
}

.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  body {
    padding-bottom: 70px;
  }

  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 97;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-alt);
    background: var(--nav-bg);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .18);
    transform: translateY(110%);
    transition: transform .25s ease;
  }

  .action-bar.is-visible {
    transform: none;
  }

  .action-bar .button {
    flex: 0 1 auto;
    min-width: 0;
  }

}

@media (min-width: 861px) {
  .action-bar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 97;
    display: flex;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease;
  }

  .action-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .action-bar .button--ghost {
    --ghost-bg: var(--glass-bg);
    --ghost-fg: #fff;
    --ghost-shadow: var(--glass-shadow);
    --ghost-shadow-pressed: var(--glass-shadow-pressed);
  }
}


/* ==========================================================================
   Hero (always dark: it sits on the video)
   ========================================================================== */

#inicio {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100vh;
  padding: 130px 72px 90px;
  overflow: hidden;
  background: #111518;
  color: #fff;
  text-align: center;
}

#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #111518;
  opacity: .68;
}

/* Video and overlay sit behind the hero content */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__logo {
  margin-bottom: 10px;
}

.hero__logo img {
  display: block;
  width: 460px;
  height: auto;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, .45));
}

.hero__title {
  max-width: 620px;
  margin-top: 14px;
  color: #fff;
  font-size: var(--text-size-lead);
  font-weight: 400;
  line-height: 1.5;
}

.hero__tagline {
  max-width: 620px;
  margin-top: 8px;
  color: #E6EAED;
  font-size: var(--text-size-body);
  font-weight: 400;
  line-height: 1.6;
}

.hero__actions {
  margin: 32px 0 34px;
  --button-bg: var(--button-bg-glass);
}

.hero__hours {
  color: #B9C2C8;
  font-size: var(--text-size-body);
  font-weight: 400;
  line-height: 1.8;
}

.hero__hours strong {
  color: #fff;
  font-size: var(--text-size-lead);
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 1024px) {
  #inicio {
    padding: 120px 40px 80px;
  }

  .hero__logo img {
    width: 380px;
  }
}

@media (max-width: 767px) {
  #inicio {
    min-height: calc(100vh - 110px);
    min-height: calc(100svh - 110px);
    padding: 100px 20px 44px;
  }

  .hero__logo img {
    width: 300px;
  }
}


/* ==========================================================================
   Social counters
   ========================================================================== */

.social-stats {
  padding: 56px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.social-stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.social-stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}

.social-stats__item + .social-stats__item::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: -12px;
  width: 1px;
  background: var(--line-alt);
}

.social-stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  transition: background .25s, color .25s, transform .25s;
}

.social-stats__icon svg {
  display: block;
  width: 56%;
  height: 56%;
}

.social-stats__item:hover .social-stats__icon {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.social-stats__number {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
}

.social-stats__number b {
  color: var(--accent-text);
  font-weight: 700;
}

.social-stats__label {
  margin-top: 10px;
  padding-left: .12em;
  color: var(--muted);
  font-size: var(--text-size-ui);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .social-stats__inner {
    gap: 16px;
  }

  .social-stats__item {
    padding: 0 2px;
  }

  .social-stats__label {
    font-size: 12px;
    letter-spacing: .08em;
  }
}

@media (max-width: 700px) {
  .social-stats {
    padding: 40px 16px;
  }

  .social-stats__inner {
    max-width: 1100px;
  }

  .social-stats__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .social-stats__number {
    font-size: clamp(30px, 9vw, 44px);
  }
}


/* ==========================================================================
   Favorites
   ========================================================================== */

#favoritos {
  background: var(--bg);
}

#favoritos > .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1100px;
  padding: 72px 0 80px;
}

.favorites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.favorite-card {
  display: flex;
  flex-direction: column;
  width: calc((100% - 80px) / 3);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: translate .25s ease, box-shadow .25s ease, scale .15s ease, border-color .25s;
}

.favorite-card:hover {
  border-color: var(--accent);
}

.favorite-card:active {
  scale: .985;
}

@media (hover: hover) {
  .favorite-card:hover {
    translate: 0 -4px;
    box-shadow: var(--card-shadow);
  }
}

.favorite-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.favorite-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  animation: photo-drift 12s ease-in-out infinite alternate;
  will-change: transform;
}

.favorite-card:nth-child(2n) .favorite-card__photo img {
  transform-origin: 30% 60%;
  animation-direction: alternate-reverse;
}

.favorite-card:nth-child(3n) .favorite-card__photo img {
  transform-origin: 70% 40%;
  animation-duration: 15s;
}

.favorite-card:nth-child(1) .favorite-card__photo img { animation-delay: -2s; }
.favorite-card:nth-child(2) .favorite-card__photo img { animation-delay: -5s; }
.favorite-card:nth-child(3) .favorite-card__photo img { animation-delay: -8s; }
.favorite-card:nth-child(4) .favorite-card__photo img { animation-delay: -3s; }
.favorite-card:nth-child(5) .favorite-card__photo img { animation-delay: -6s; }
.favorite-card:nth-child(6) .favorite-card__photo img { animation-delay: -9s; }

@keyframes photo-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.16) translate(-2.5%, -2%); }
}

/* Placeholder label shown on the shared image until each dish has its own photo */
.favorite-card__photo::after {
  content: "FOTO PENDIENTE";
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(10, 13, 15, .7);
  color: #fff;
  font: 700 15px/1 var(--font-body);
  letter-spacing: .12em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.favorite-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 204px;
  padding: 20px 22px 24px;
}

.favorite-card h3 {
  min-height: 2.2em;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--display-size-card);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.favorite-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: var(--text-size-body);
  font-weight: 400;
  line-height: 1.5;
}

.favorite-card__cta {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent-text);
  font-size: var(--text-size-ui);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  #favoritos > .container {
    gap: 44px;
    padding: 56px 0 63px;
  }
}

/* Phones and small tablets: horizontal swipe carousel */
@media (max-width: 900px) {
  .favorites {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .favorites::-webkit-scrollbar {
    display: none;
  }

  .favorite-card {
    flex: 0 0 78%;
    width: auto;
    max-width: 340px;
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  #favoritos > .container {
    gap: 36px;
    padding: 48px 0 53px;
  }

  .favorite-card__photo::after {
    padding: 9px 18px;
    font-size: 13px;
  }
}


/* ==========================================================================
   Ticker strip
   ========================================================================== */

.ticker {
  width: 100%;
  max-width: 100vw;
  padding: 13px 0;
  overflow: hidden;
  background: var(--accent);
  color: #0A0D0F;
  contain: paint;
  font-family: var(--font-display);
  font-size: var(--display-size-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.ticker__track {
  display: inline-flex;
  width: max-content;
}

.ticker__group {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.ticker i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0A0D0F;
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: ticker-scroll 90s linear infinite;
  }
}

@media (max-width: 560px) {
  .ticker {
    padding: 11px 0;
  }

  .ticker__group {
    gap: 26px;
    padding-right: 26px;
  }
}


/* ==========================================================================
   About
   ========================================================================== */

#nosotros {
  background: var(--bg-alt);
}

#nosotros > .container {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1240px;
  padding: 100px 0;
}

.about__image {
  flex: 0 0 44%;
  padding: 10px 10px 10px 0;
}

.about__image img {
  display: block;
  width: 100%;
  height: 480px;
  border-radius: 18px;
  object-fit: cover;
}

.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 10px;
  text-align: center;
}

.about__text p {
  color: var(--text-tertiary);
  font-size: 18px;
  line-height: 1.65;
}

.about__text .section-title {
  margin-bottom: 6px;
}

@media (max-width: 1024px) {
  #nosotros > .container {
    flex-direction: column;
    gap: 20px;
    padding: 72px 0 40px;
  }

  .about__image {
    flex: none;
    width: 100%;
    padding: 0;
  }

  .about__image img {
    height: 360px;
  }

  .about__text {
    gap: 26px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  #nosotros > .container {
    padding: 56px 0 32px;
  }

  .about__image img {
    height: 280px;
  }

  .about__text {
    gap: 22px;
  }

  .about__text p {
    font-size: 17px;
  }
}


/* ==========================================================================
   Reviews carousel
   ========================================================================== */

#resenas {
  background: var(--bg);
}

#resenas > .container {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1100px;
  padding: 72px 0 80px;
}

.reviews {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text);
}

.reviews__viewport {
  overflow: hidden;
}

.reviews__track {
  display: flex;
  transition: transform .6s ease;
}

.reviews__page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 12px;
}

.reviews__stars {
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 3px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: border-color .25s, background .25s;
}

.review-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
}

.review-card .reviews__stars {
  align-self: flex-start;
  font-size: 18px;
}

/* Every review shows exactly six lines (longer ones end in "…"), so all cards share one height */
.review-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  height: 9.6em;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--text-size-body);
  font-weight: 400;
  line-height: 1.6;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.review-card__avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-size-body);
  font-weight: 700;
  letter-spacing: 0;
}

.review-card__name {
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-size-body);
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__link {
  color: var(--muted);
  font-size: var(--text-size-ui);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  margin: 21px 0 0;
}

.reviews__dots button {
  box-sizing: content-box;
  width: 10px;
  height: 10px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background-color: var(--dots-color);
  background-clip: content-box;
  cursor: pointer;
}

.reviews__dots button.is-active {
  background-color: var(--accent);
}

.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--text-size-small);
}

.reviews__summary b {
  color: var(--text-tertiary);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.reviews__summary .reviews__stars {
  font-size: 17px;
  letter-spacing: 2px;
}

/* Fills the stars up to the actual rating (--rating, out of 5) */
.reviews__stars--rating {
  --rating: 4.3;
  background: linear-gradient(90deg, var(--accent) calc(var(--rating) * 20%), var(--dots-color) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reviews__count {
  flex: 0 0 100%;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

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

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

@media (max-width: 1024px) {
  #resenas > .container {
    gap: 44px;
    padding: 56px 0 63px;
  }
}

@media (max-width: 767px) {
  #resenas > .container {
    gap: 36px;
    padding: 48px 0 53px;
  }
}

/* Phones: one card per view, with the next card peeking in */
@media (max-width: 560px) {
  .reviews__viewport {
    margin: 0 -20px;
  }

  .reviews__track {
    padding: 0 20px;
  }

  .reviews__page {
    flex: 0 0 78%;
    max-width: 340px;
    margin-right: 14px;
    padding: 0;
  }
}


/* ==========================================================================
   Location
   ========================================================================== */

#ubicacion {
  background: var(--bg-alt);
}

#ubicacion > .container {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  padding: 100px 0;
}

.location__info {
  flex: 0 0 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.location__details {
  text-align: center;
}

.location__details p {
  margin: 0 0 40px;
  font-size: var(--text-size-body);
  font-weight: 400;
}

.location__details p:last-child {
  margin: 0;
}

.location__details a {
  text-decoration: none;
}

.location__label {
  display: block;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: var(--display-size-card);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.location__value {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-size-body);
  font-weight: 400;
}

.location__map {
  flex: 1;
  min-width: 0;
  padding: 10px;
}

.location__embed {
  position: relative;
  height: 400px;
  overflow: hidden;
}

/* The map is rendered 15% larger and cropped, which hides the embed's own controls */
.location__embed iframe {
  display: block;
  width: 86.9565%;
  height: 86.9565%;
  border: 0;
  transform: scale(1.15);
  transform-origin: 0 0;
}

@media (prefers-color-scheme: dark) {
  .location__embed iframe {
    filter: invert(92%) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.85);
  }
}

@media (max-width: 1024px) {
  #ubicacion > .container {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 40px 0 72px;
  }

  .location__info {
    flex: none;
    width: 100%;
  }

  .location__map {
    flex: none;
    width: 100%;
  }

  .location__details p {
    margin-bottom: 34px;
  }

  .location__details p:last-child {
    margin-bottom: 0;
  }

  .location__embed {
    height: 470px;
  }
}

@media (max-width: 767px) {
  #ubicacion > .container {
    padding: 32px 0 56px;
  }

  .location__embed {
    height: 320px;
  }
}


/* ==========================================================================
   FAQ
   ========================================================================== */

#preguntas {
  background: var(--bg);
}

#preguntas > .container {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 900px;
  padding: 80px 0 90px;
}

#preguntas .section-title {
  text-align: left;
}

.faq__item {
  border-bottom: 1px solid var(--line-alt);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.faq__question:hover,
.faq__question[aria-expanded="true"] {
  color: var(--accent-text);
}

.faq__icon {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(241, 101, 83, .6);
  border-radius: 50%;
  color: var(--accent-text);
  transition: background .2s, color .2s, border-color .2s;
}

.faq__icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.faq__icon-minus,
.faq__question[aria-expanded="true"] .faq__icon-plus {
  display: none;
}

.faq__question[aria-expanded="true"] .faq__icon {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.faq__question[aria-expanded="true"] .faq__icon-minus {
  display: block;
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq__answer > div {
  overflow: hidden;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer p {
  padding: 0 0 22px;
  color: var(--text-tertiary);
  font-size: var(--text-size-body);
  font-weight: 400;
  line-height: 1.7;
}

.faq__answer a {
  color: var(--accent-text);
}

@media (max-width: 1024px) {
  #preguntas > .container {
    gap: 36px;
    padding: 56px 0 63px;
  }
}

@media (max-width: 767px) {
  #preguntas > .container {
    gap: 28px;
    padding: 48px 0 53px;
  }
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-deep);
}

.site-footer > .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  padding: 40px 0 0;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px;
}

.footer__logo {
  display: block;
  width: 240px;
  height: auto;
}

.footer__logo.logo-dark {
  display: none;
}

@media (prefers-color-scheme: light) {
  .footer__logo.logo-light {
    display: none;
  }

  .footer__logo.logo-dark {
    display: block;
  }
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--social-bg);
  color: var(--social-fg);
  transition: background .25s, transform .25s;
}

.footer__social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__copyright {
  color: var(--muted-alt);
  font-size: var(--text-size-small);
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.footer__links {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__links a {
  display: block;
  color: var(--text);
  font-size: var(--text-size-body);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__links a:hover {
  color: var(--accent-text);
}

@media (min-width: 861px) {
  .footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 94px;
    padding-top: 0;
  }
}

@media (max-width: 1024px) {
  .site-footer > .container {
    padding-top: 36px;
  }

  .footer__top {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .site-footer > .container {
    padding-bottom: 28px;
  }
}

@media (max-width: 767px) {
  .site-footer > .container {
    padding: 32px 0 24px;
  }

  .footer__top {
    flex-direction: column;
    gap: 14px;
  }

  .footer__logo {
    width: 200px;
  }
}


/* ==========================================================================
   Menu page shell (the menu itself is styled in menu/menu.css)
   ========================================================================== */

.menu-page {
  padding: 114px 16px 60px;
  background: var(--bg);
}


/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 20px 70px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.legal-page h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--display-size-section);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.legal-page h2 {
  margin: 32px 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--display-size-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-page p {
  margin: 0 0 12px;
  font-size: var(--text-size-body);
  font-weight: 400;
}

.legal-page b {
  font-size: var(--text-size-body);
  font-weight: 600;
  letter-spacing: 0;
}

.legal-page a {
  color: var(--accent-text);
}

@media (max-width: 767px) {
  .legal-page {
    padding-top: 96px;
  }
}


/* ==========================================================================
   404 page
   ========================================================================== */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
}

.not-found picture img {
  display: block;
  width: 340px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 12px;
}

.not-found__code {
  margin: 0;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: clamp(120px, 26vw, 230px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  text-align: center;
}

.not-found .button-row {
  margin-top: 14px;
}


/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal-enabled .reveal {
    opacity: 0;
    translate: 0 22px;
  }

  .reveal-enabled .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
    transition: opacity .6s ease var(--reveal-delay, 0s), translate .6s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .favorite-card__photo img {
    animation: none;
  }
}
