/* ============================
   Quinta Essenza - Identidad visual
   Editorial claro con hero fotográfico oscuro (madera + azul marino)
   ============================ */

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --cream: #f7f6f2;
  --ink: #1c1a17;
  --ink-soft: rgba(28, 26, 23, 0.6);
  --line: rgba(28, 26, 23, 0.14);

  --navy: #0c2038;
  --neon: #2dd8f5;
  --wood: #6b4423;
  --wood-dark: #1c1108;
  --gold: #b8974f;
}

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

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--ink);
}

/* ---------- Header (compartido) ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: relative;
  z-index: 10;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 650px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1rem;
    align-items: center;
    text-align: center;
  }

  .site-nav {
    gap: 1.2rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ---------- Hero fotográfico ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__texture {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--wood) 0px, var(--wood) 11px,
      var(--wood-dark) 11px, var(--wood-dark) 22px,
      #4a2f18 22px, #4a2f18 23px
    ),
    linear-gradient(180deg, rgba(4, 10, 18, 0.55) 0%, rgba(4, 10, 18, 0.9) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__badge {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(243, 237, 224, 0.6);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.1);
  animation: fadeSlideUp 0.7s ease both;
}

.hero__badge-fallback {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: rgba(243, 237, 224, 0.9);
}

.hero__badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__eyebrow {
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(243, 237, 224, 0.85);
  margin-bottom: 0.6rem;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}

.hero__title {
  position: relative;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 1px;
  color: #ffffff;
  animation: fadeSlideUp 0.7s ease 0.16s both;
}

.hero__subtitle {
  position: relative;
  z-index: 2;
  margin-top: 0.6rem;
  font-style: italic;
  color: rgba(243, 237, 224, 0.75);
  font-size: 1rem;
  animation: fadeSlideUp 0.7s ease 0.22s both;
}

/* ---------- Contenido ---------- */

.page-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 800px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.info-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}

.info-panel__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.info-panel__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.info-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--navy);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-links svg {
  width: 17px;
  height: 17px;
}

.social-links a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.rating-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  animation: fadeSlideUp 0.7s ease 0.4s both;
}

.rating-prompt {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.star {
  font-size: 2.6rem;
  color: var(--line);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.star:hover {
  transform: scale(1.15);
}

.star.hovered,
.star.selected {
  color: var(--navy);
}

.rating-feedback {
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feedback-form {
  margin-top: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-form label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.feedback-form textarea {
  width: 100%;
  resize: vertical;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.submit-btn {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.submit-btn:hover {
  opacity: 0.85;
}

.feedback-thanks {
  color: #2f6b3f;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

/* ---------- Footer (compartido) ---------- */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- Secciones Premium ---------- */

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.gallery-section, .menu-section, .reservation-section {
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.6s ease;
}

.gallery-item video {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.menu-split-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.menu-split-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(12, 32, 56, 0.15);
  min-height: 380px;
}

.menu-split-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.menu-split-row:nth-child(even) .menu-split-text {
  order: 2;
}

.menu-split-row:nth-child(even) .menu-split-img {
  order: 1;
}

.menu-split-text {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #f3ede0;
  position: relative;
  overflow: hidden;
}

.menu-split-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.menu-split-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.25rem;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 2;
}

.menu-split-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(243, 237, 224, 0.8);
  max-width: 340px;
  position: relative;
  z-index: 2;
}

.menu-split-img {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.menu-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.menu-split-row:hover .menu-split-img img {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-split-row,
  .menu-split-row:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .menu-split-row:nth-child(even) .menu-split-text {
    order: 1;
  }
  .menu-split-row:nth-child(even) .menu-split-img {
    order: 2;
  }
  .menu-split-text {
    padding: 3rem 1.5rem;
  }
  .menu-split-img {
    height: 300px;
  }
}

.reservation-section {
  text-align: center;
}

.reservation-box {
  background: var(--navy);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(12, 32, 56, 0.15);
  position: relative;
  overflow: hidden;
}

.reservation-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.reservation-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.reservation-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.btn-premium {
  position: relative;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

/* Animaciones Scroll */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Menú Completo Interactivo ---------- */

.full-menu-section {
  padding: 4rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.full-menu-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink-soft);
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.tab-btn {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn.active {
  color: var(--navy);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1.05rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.menu-categories-wrapper {
  margin-bottom: 3rem;
  overflow: hidden;
}

.menu-categories {
  display: none;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: opacity 0.3s ease;
}

.menu-categories.active {
  display: flex;
}

.cat-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 0.6rem 1.4rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 10px rgba(12, 32, 56, 0.1);
}

.menu-items-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  min-height: 200px;
  transition: opacity 0.2s ease;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px dashed rgba(28, 26, 23, 0.08);
  padding-bottom: 1rem;
  animation: fadeSlideUp 0.5s ease both;
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding-right: 1.5rem;
}

.menu-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.menu-item-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.menu-item-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Responsividad para Móviles */
@media (max-width: 768px) {
  .menu-items-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .menu-tabs {
    gap: 0.5rem;
  }
  
  .tab-btn {
    font-size: 1.3rem;
    padding: 0.5rem 0.8rem;
  }

  .menu-categories-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .menu-categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 1rem;
    width: max-content;
  }
  
  .cat-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1.1rem;
  }
}

