/* =========================================================
   MIRADOR DE LAS CAMELIAS
   BEBIDAS CALIENTES
========================================================= */

:root {
  --bg: #f6f1e8;
  --surface: #fbf8f2;
  --surface-dark: #eee5d7;

  --text: #2d2925;
  --muted: #7b7368;

  --accent: #aa8a52;
  --accent-dark: #8f703f;

  --border: rgba(45, 41, 37, 0.12);

  --shadow:
    0 20px 60px rgba(44, 36, 26, 0.08);
}


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: "DM Sans", sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.6;

  overflow-x: hidden;
}


body.modal-open {
  overflow: hidden;
}


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


button,
a {
  font: inherit;
}


button {
  border: 0;
}


a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   CONTENEDOR
========================================================= */

.page-shell {
  width: 100%;
  min-height: 100vh;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

  width: min(1280px, calc(100% - 48px));

  margin: 0 auto;

  height: 104px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 14px;

  flex-shrink: 0;
}


.brand-mark {

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border: 1px solid var(--text);

  font-family: "Playfair Display", serif;
  font-size: 20px;
}


.brand-copy {

  display: flex;
  flex-direction: column;

  line-height: 1.05;
}


.brand-copy strong {

  font-family: "Playfair Display", serif;

  font-size: 17px;
  font-weight: 500;

  letter-spacing: 0.12em;
}


.brand-copy small {

  margin-top: 5px;

  color: var(--accent);

  font-size: 9px;

  letter-spacing: 0.18em;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.desktop-nav {

  display: flex;
  align-items: center;

  gap: 34px;

  margin-left: auto;
}


.desktop-nav a {

  position: relative;

  font-size: 11px;

  letter-spacing: 0.13em;

  color: #61594f;

  transition:
    color 0.25s ease;
}


.desktop-nav a::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 0;
  height: 1px;

  background: var(--accent);

  transition:
    width 0.3s ease;
}


.desktop-nav a:hover,
.desktop-nav a.is-active {

  color: var(--text);
}


.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {

  width: 100%;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {

  display: flex;
  align-items: center;
  gap: 14px;
}


.reserve-button {

  padding: 13px 21px;

  border: 1px solid rgba(45, 41, 37, 0.45);

  font-size: 10px;

  letter-spacing: 0.15em;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}


.reserve-button:hover {

  background: var(--text);
  color: var(--bg);
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.menu-toggle {

  display: none;

  width: 42px;
  height: 42px;

  background: transparent;

  cursor: pointer;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 5px;
}


.menu-toggle span {

  width: 22px;
  height: 1px;

  background: var(--text);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}


.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}


.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-nav {

  display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero {

  width: min(1280px, calc(100% - 48px));

  min-height: 650px;

  margin: 35px auto 0;

  display: grid;

  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(0, 1.18fr);

  align-items: center;

  gap: 50px;
}


.hero-copy {

  padding-left: 80px;

  max-width: 570px;
}


.eyebrow {

  margin-bottom: 18px;

  color: var(--accent);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.25em;
}


.hero h1 {

  font-family: "Playfair Display", serif;

  font-size: clamp(52px, 5.2vw, 78px);

  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -0.035em;
}


.hero h1 em {

  color: var(--accent);

  font-weight: 400;
}


.ornament {

  margin: 35px 0 20px;

  color: var(--accent);

  font-size: 18px;
}


.hero-text {

  max-width: 430px;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.8;

  margin-bottom: 30px;
}


/* =========================================================
   BUTTON
========================================================= */

.outline-button {

  display: inline-flex;

  align-items: center;
  gap: 18px;

  padding: 15px 21px;

  border: 1px solid rgba(45, 41, 37, 0.35);

  background: transparent;

  color: var(--text);

  font-size: 10px;

  letter-spacing: 0.15em;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}


.outline-button:hover {

  background: var(--text);

  color: var(--bg);

  border-color: var(--text);
}


.outline-button span {

  font-size: 14px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-visual {

  position: relative;

  min-height: 580px;

  display: flex;

  align-items: center;
  justify-content: center;
}


.hero-halo {

  position: absolute;

  width: 470px;
  height: 470px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(170, 138, 82, 0.15),
      rgba(170, 138, 82, 0) 68%
    );
}


.hero-ring {

  position: absolute;

  width: 500px;
  height: 500px;

  border: 1px solid rgba(170, 138, 82, 0.3);

  border-radius: 50%;
}


.hero-visual img {

  position: relative;
  z-index: 2;

  width: min(500px, 80%);

  height: 540px;

  object-fit: cover;

  border-radius: 3px;

  box-shadow: var(--shadow);
}


.hero-caption {

  position: absolute;

  right: 0;

  bottom: 35px;

  z-index: 4;

  display: flex;

  align-items: center;

  gap: 10px;

  color: var(--muted);

  font-size: 9px;

  letter-spacing: 0.18em;
}


.hero-caption i {

  width: 45px;
  height: 1px;

  background: var(--accent);
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.category-section {

  width: min(1120px, calc(100% - 48px));

  margin: 80px auto 0;
}


.section-kicker {

  margin-bottom: 25px;

  color: var(--accent);

  font-size: 10px;

  letter-spacing: 0.22em;
}


.categories {

  display: flex;

  gap: 10px;

  overflow-x: auto;

  scrollbar-width: none;
}


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


.category-btn {

  flex: 0 0 auto;

  padding: 12px 20px;

  background: transparent;

  border: 1px solid var(--border);

  color: var(--muted);

  cursor: pointer;

  font-size: 10px;

  letter-spacing: 0.13em;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}


.category-btn:hover,
.category-btn.active {

  background: var(--text);

  color: var(--bg);

  border-color: var(--text);
}


/* =========================================================
   PRODUCT SECTION
========================================================= */

.products-section {

  width: min(1120px, calc(100% - 48px));

  margin: 100px auto;
}


.section-heading {

  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 30px;

  margin-bottom: 45px;
}


.section-heading h2 {

  font-family: "Playfair Display", serif;

  font-size: clamp(40px, 4vw, 62px);

  font-weight: 400;

  line-height: 1;
}


.view-all {

  display: inline-flex;

  align-items: center;

  gap: 14px;

  padding: 0;

  background: transparent;

  color: var(--accent-dark);

  font-size: 10px;

  letter-spacing: 0.16em;

  cursor: pointer;
}


.view-all span {

  font-size: 15px;

  transition:
    transform 0.3s ease;
}


.view-all:hover span {

  transform: translateX(5px);
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.menu-container {

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 22px;
}


.menu-card {

  position: relative;

  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);

  cursor: pointer;

  opacity: 0;

  transform: translateY(18px);

  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    box-shadow 0.3s ease;
}


.menu-card.card-visible {

  opacity: 1;

  transform: translateY(0);
}


.menu-card:hover {

  transform: translateY(-6px);

  box-shadow: var(--shadow);
}


.menu-card-image {

  position: relative;

  height: 245px;

  overflow: hidden;

  background: #ebe3d7;
}


.menu-card-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.6s ease;
}


.menu-card:hover
.menu-card-image img {

  transform: scale(1.045);
}


.menu-card-image.no-image {

  display: flex;

  align-items: center;
  justify-content: center;
}


.menu-card-image.no-image::after {

  content: "MIRADOR";

  color: var(--accent);

  font-family: "Playfair Display", serif;

  font-size: 18px;

  letter-spacing: 0.15em;
}


.menu-card-content {

  padding: 21px 20px 23px;
}


.menu-card h3 {

  margin-bottom: 7px;

  font-family: "Playfair Display", serif;

  font-size: 20px;

  font-weight: 500;

  line-height: 1.15;
}


.menu-card p {

  min-height: 22px;

  color: var(--muted);

  font-size: 12px;

  line-height: 1.5;
}


.menu-card .price {

  display: block;

  margin-top: 14px;

  color: var(--accent-dark);

  font-size: 14px;

  font-weight: 600;
}


/* =========================================================
   FEATURE
========================================================= */

.feature-section {

  width: min(1120px, calc(100% - 48px));

  min-height: 500px;

  margin: 130px auto;

  padding: 55px;

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 50px;

  align-items: center;

  background: var(--surface-dark);
}


.feature-copy {

  padding: 25px;
}


.feature-copy h2 {

  font-family: "Playfair Display", serif;

  font-size: clamp(45px, 4vw, 65px);

  font-weight: 400;

  line-height: 0.98;
}


.feature-copy h2 em {

  color: var(--accent);

  font-weight: 400;
}


.feature-copy > p:not(.eyebrow) {

  max-width: 420px;

  margin: 25px 0 30px;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.8;
}


.feature-visual {

  position: relative;

  height: 390px;

  overflow: hidden;
}


.feature-visual img {

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.feature-badge {

  position: absolute;

  right: 18px;
  bottom: 18px;

  padding: 10px 15px;

  background: rgba(246, 241, 232, 0.92);

  color: var(--accent-dark);

  font-size: 9px;

  letter-spacing: 0.16em;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

  width: min(1120px, calc(100% - 48px));

  margin: 0 auto;

  padding: 50px 0 65px;

  display: flex;

  justify-content: space-between;

  gap: 30px;

  border-top: 1px solid var(--border);
}


.site-footer p {

  margin-top: 12px;

  color: var(--muted);

  font-size: 12px;
}


.footer-links {

  display: flex;

  gap: 25px;

  align-items: center;
}


.footer-links a {

  color: var(--accent-dark);

  font-size: 10px;

  letter-spacing: 0.14em;
}


/* =========================================================
   MODAL
========================================================= */

.modal {

  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 25px;

  visibility: hidden;

  opacity: 0;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}


.modal.is-open {

  visibility: visible;

  opacity: 1;
}


.modal-backdrop {

  position: absolute;

  inset: 0;

  background: rgba(30, 25, 20, 0.65);

  backdrop-filter: blur(5px);
}


.product-detail {

  position: relative;

  z-index: 2;

  width: min(850px, 100%);

  max-height: 90vh;

  overflow: auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  background: var(--surface);

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.2);

  transform: translateY(20px);

  transition:
    transform 0.35s ease;
}


.modal.is-open
.product-detail {

  transform: translateY(0);
}


.modal-close {

  position: absolute;

  z-index: 3;

  top: 15px;
  right: 15px;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  background: rgba(246, 241, 232, 0.9);

  border-radius: 50%;

  font-size: 24px;

  cursor: pointer;
}


.detail-image-wrap {

  min-height: 450px;

  background: var(--surface-dark);
}


.detail-image-wrap img {

  width: 100%;
  height: 100%;

  object-fit: cover;
}


.detail-content {

  padding: 55px 45px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}


.detail-content h2 {

  margin-bottom: 20px;

  font-family: "Playfair Display", serif;

  font-size: 40px;

  font-weight: 400;

  line-height: 1;
}


.detail-content p {

  color: var(--muted);

  font-size: 14px;

  line-height: 1.7;
}


.detail-price {

  margin-top: 30px;

  color: var(--accent-dark);

  font-size: 22px;

  font-weight: 600;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {

  position: fixed;

  right: 25px;
  bottom: 25px;

  z-index: 50;

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  background: var(--text);

  color: var(--bg);

  border-radius: 50%;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}


.back-to-top.visible {

  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {

  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}


.reveal.is-visible {

  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .desktop-nav {
    gap: 18px;
  }

  .hero-copy {
    padding-left: 25px;
  }

  .menu-container {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .site-header {

    width: calc(100% - 30px);

    height: 82px;
  }


  .desktop-nav,
  .reserve-button {

    display: none;
  }


  .menu-toggle {

    display: flex;
  }


  .mobile-nav {

    position: fixed;

    top: 82px;
    left: 15px;
    right: 15px;

    z-index: 100;

    display: flex;

    flex-direction: column;

    padding: 15px;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }


  .mobile-nav.is-open {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
  }


  .mobile-nav a {

    padding: 15px;

    border-bottom: 1px solid var(--border);

    font-size: 11px;

    letter-spacing: 0.12em;
  }


  .mobile-nav a:last-child {
    border-bottom: 0;
  }


  .hero {

    width: calc(100% - 30px);

    margin-top: 20px;

    display: flex;

    flex-direction: column;

    gap: 30px;

    min-height: auto;
  }


  .hero-copy {

    padding: 50px 10px 0;

    max-width: none;
  }


  .hero h1 {

    font-size: clamp(47px, 14vw, 65px);
  }


  .hero-text {

    font-size: 13px;
  }


  .hero-visual {

    width: 100%;

    min-height: 430px;
  }


  .hero-halo {

    width: 320px;
    height: 320px;
  }


  .hero-ring {

    width: 345px;
    height: 345px;
  }


  .hero-visual img {

    width: 82%;

    height: 400px;
  }


  .hero-caption {

    right: 5px;

    bottom: 15px;
  }


  .category-section,
  .products-section,
  .feature-section,
  .site-footer {

    width: calc(100% - 30px);
  }


  .category-section {

    margin-top: 60px;
  }


  .products-section {

    margin-top: 75px;

    margin-bottom: 80px;
  }


  .section-heading {

    align-items: flex-start;

    flex-direction: column;

    margin-bottom: 30px;
  }


  .section-heading h2 {

    font-size: 45px;
  }


  .menu-container {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }


  .menu-card-image {

    height: 185px;
  }


  .menu-card-content {

    padding: 17px 14px 18px;
  }


  .menu-card h3 {

    font-size: 17px;
  }


  .menu-card p {

    font-size: 11px;
  }


  .menu-card .price {

    font-size: 13px;
  }


  .feature-section {

    margin-top: 90px;

    margin-bottom: 80px;

    padding: 25px;

    grid-template-columns: 1fr;

    gap: 25px;
  }


  .feature-copy {

    padding: 10px;
  }


  .feature-copy h2 {

    font-size: 47px;
  }


  .feature-visual {

    height: 320px;
  }


  .site-footer {

    flex-direction: column;

    padding-bottom: 45px;
  }


  .footer-links {

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;
  }


  .product-detail {

    grid-template-columns: 1fr;

    max-height: 92vh;
  }


  .detail-image-wrap {

    height: 280px;

    min-height: 0;
  }


  .detail-content {

    padding: 30px 25px 35px;
  }


  .detail-content h2 {

    font-size: 32px;
  }

}


/* =========================================================
   MOBILE PEQUEÑO
========================================================= */

@media (max-width: 430px) {

  .menu-container {

    grid-template-columns: 1fr;
  }


  .menu-card-image {

    height: 230px;
  }


  .hero h1 {

    font-size: 46px;
  }


  .hero-visual img {

    width: 88%;
  }

}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}
