/* ===== Variables ===== */
:root {
  color-scheme: dark;
  --bg: #13100e;
  --surface: #1c1714;
  --surface-2: #26201b;
  --border: #3a302a;
  --text: #f2e9df;
  --muted: #b3a497;
  --accent: #e0814f;
  --accent-hover: #f0976a;
  --on-accent: #1a120d;
  --radius: 14px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }


.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;            
  text-decoration: none;   
  transition: opacity 0.2s ease;
}

.logo-wrapper:hover {
  opacity: 0.9;             
}

.logo__img {
  width: 46px;              
  height: 46px;        
  object-fit: contain;
  border-radius: 50%;
}

.logo__text {
  font-family: 'Playfair Display', serif; 
  font-style: italic;                  
  font-weight: 600;
  font-size: 1.45rem;                 
  color: #f3d57d;                    
  letter-spacing: 0.5px;
  line-height: 1;
}


@media (max-width: 480px) {
  .logo__img {
    width: 38px;
    height: 38px;
  }
  
  .logo__text {
    font-size: 1.25rem;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ===== Navegación ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 16, 14, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav__menu a:hover,
.nav__menu a[aria-current="page"] { border-color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__menu a.cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2);
  color: var(--text);
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}
.nav__menu a.cart:hover,
.nav__menu a.cart[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.cart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Header / Hero ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 8, 7, 0.85) 0%, rgba(10, 8, 7, 0.35) 70%, rgba(10, 8, 7, 0.1) 100%);
}
.hero__content { position: relative; max-width: 1200px; }
.hero__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 14ch;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero__text {
  max-width: 45ch;
  font-size: 1.1rem;
  margin: 0 0 2rem;
  color: #e6dbcf;
}

/* ===== Secciones ===== */
.section { padding: 5rem 0; }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0;
}

/* ===== Carrusel ===== */
.slider { position: relative; }
.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.slider__track {
  display: flex;
  transition: transform 0.7s ease;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 8;
}
.slide__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.slide__link:hover img { transform: scale(1.03); }
.slide__link:focus-visible { outline-offset: -4px; }
.slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 2rem 2rem;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 8, 7, 0.85), transparent);
}
.slide__caption h3 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin: 0 0 0.25rem;
}
.slide__caption p { margin: 0; color: #e6dbcf; }

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(28, 23, 20, 0.85);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.slider__btn {
  display: grid;
  place-items: center;
}
.slider__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider__btn:hover { background: var(--accent); color: var(--on-accent); }
.slider__btn--prev { left: 1rem; }
.slider__btn--next { right: 1rem; }

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: var(--border);
  cursor: pointer;
  transition: width 0.3s, background-color 0.3s;
}
.slider__dot[aria-current="true"] { width: 32px; background: var(--accent); }

@media (max-width: 600px) {
  .slide { aspect-ratio: 4 / 5; }
  .slider__btn { width: 38px; height: 38px; }
}

/* ===== Página de productos ===== */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-header__title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.5rem;
}
.page-header__text { color: var(--muted); margin: 0 0 1.5rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips a {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  background: var(--surface);
  transition: background-color 0.2s, color 0.2s;
}
.chips a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.products { padding-bottom: 4rem; }

/* Contenedor de cada sección */
.category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  scroll-margin-top: 84px;
}
.category__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.category__num {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--accent);
}
.category__title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin: 0;
}

/* 5 divs por sección */
.category__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.product {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.product:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -12px rgba(10, 8, 7, 0.35);
}
.product__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: var(--border);
}
.product__name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  flex: 1;
  text-wrap: balance;
}
.product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product__price { font-weight: 600; }
.product__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.product__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.product__btn:hover { background: var(--accent-hover); }
.product__btn.is-added { background: var(--accent-hover); transform: scale(1.15); }

.status { text-align: center; color: var(--muted); padding: 3rem 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  transform: translate(-50%, 1rem);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Página de la cesta ===== */
.basket { padding-bottom: 4rem; max-width: 820px; }
.basket__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.basket__list { list-style: none; margin: 0; padding: 0; }
.basket__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.basket__item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.basket__info { flex: 1; min-width: 0; }
.basket__name { font-family: var(--font-title); font-size: 1.1rem; margin: 0; }
.basket__unit { color: var(--muted); font-size: 0.85rem; margin: 0; }
.basket__subtotal { font-weight: 600; margin: 0; min-width: 5rem; text-align: right; }

.qty { display: flex; align-items: center; gap: 0.5rem; }
.qty__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}
.qty__btn:hover { background: var(--border); }
.qty__value { min-width: 1.5rem; text-align: center; font-weight: 600; }

.basket__summary { padding-top: 1.5rem; }
.basket__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}
.basket__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}
.basket__empty { text-align: center; padding: 2rem 0; }
.basket__empty p { color: var(--muted); margin: 0 0 1.25rem; }

.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1f8f4e;
  color: #fff;
}
.btn--whatsapp:hover { background: #18733e; transform: translateY(-2px); }
.btn--whatsapp svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .basket__box { padding: 1rem; }
  .basket__item { flex-wrap: wrap; }
  .basket__info { flex-basis: calc(100% - 80px); }
  .qty { margin-left: 80px; }
  .basket__subtotal { margin-left: auto; }
  .basket__actions .btn { flex: 1; text-align: center; justify-content: center; }
}

@media (max-width: 1024px) {
  .category__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .category { padding: 1.25rem; }
  .category__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .category__grid { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.horario {
  font-size: 0.82rem;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;    
  max-width: 320px;           
  width: 100%;                  
}

.horario__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.horario__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 1rem;                
  white-space: nowrap;        
}

.horario__item span:first-child {
  font-weight: 500;
  color: #e5e7eb;
  text-transform: capitalize;
}

.horario__item--closed span:last-child {
  color: #f87171;
  font-weight: 500;
}
.footer {
  background: #0c0a08;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.footer__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 0 1rem;
}
.footer--simple { padding-top: 0; }
.footer--simple .footer__bottom { margin-top: 0; border-top: 0; }
.footer__col p { margin: 0 0 0.75rem; }
.footer__heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 2rem 0 1rem;
}
.footer__map .footer__heading { margin-top: 0; }

.social {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(234, 217, 198, 0.3);
  transition: background-color 0.2s, border-color 0.2s;
}
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
}
.footer__bottom {
  width: 100%;              
  grid-column: 1 / -1;      
  text-align: center;     
  margin-top: 2rem;        
  padding-top: 1.5rem;         
  border-top: 1px solid rgba(255, 255, 255, 0.08); 
}

.footer__bottom p {
  font-size: 0.85rem;
  color: #9ca3af;
}

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Accesibilidad */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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