/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --burgundy: #9D1842;
  --burgundy-light: #b8205a;
  --burgundy-dark: #7a1234;
  --blush: #FDF2F4;
  --blush-mid: #fce8ec;
  --blush-dark: #f5d0d8;
  --cream: #FFFAF8;
  --sand: #f7efeb;
  --text-dark: #2d1f24;
  --text-mid: #5a3d47;
  --text-light: #8a6070;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(157, 24, 66, 0.06);
  --shadow-md: 0 8px 30px rgba(157, 24, 66, 0.10);
  --shadow-lg: 0 20px 60px rgba(157, 24, 66, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, sans-serif;
  --nav-width: 240px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SIDE NAVIGATION ========== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.side-nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.side-nav .logo-icon {
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.70);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--blush);
  border-radius: 4px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  height: 24px;
}

.nav-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.60);
  font-size: 0.82rem;
  transition: var(--transition);
}

.nav-phone:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: var(--burgundy);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--burgundy-light);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: var(--nav-width);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(157, 24, 66, 0.65) 0%,
    rgba(45, 31, 36, 0.55) 50%,
    rgba(157, 24, 66, 0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 40px 24px;
  animation: fadeUp 1s ease forwards;
}

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

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-light);
  border-color: var(--burgundy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== HISTORIA ========== */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-two-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.grid-two-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.grid-two-img:hover img {
  transform: scale(1.03);
}

.grid-two-text .section-tag {
  margin-bottom: 16px;
}

.grid-two-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 24px;
}

.grid-two-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

/* ========== ESPECIALIDADES / CARTA ========== */
.especialidades {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card-img {
  overflow: hidden;
  height: 220px;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

.menu-card-body {
  padding: 28px;
}

.menu-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 10px;
}

.menu-card-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.menu-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

/* ========== GALERÍA ========== */
.galeria {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item.large {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.gallery-item.large img {
  height: 380px;
}

.gallery-item.wide {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
}

.gallery-item.wide img {
  height: 280px;
}

.gallery-item:not(.large):not(.wide) img {
  height: 240px;
}

/* ========== RESERVAR ========== */
.reservar {
  background: linear-gradient(135deg, var(--blush) 0%, var(--sand) 100%);
}

.reservar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.reservar-text .section-tag {
  margin-bottom: 16px;
}

.reservar-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.reservar-text > p {
  color: var(--text-mid);
  font-size: 1.02rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.reservar-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item svg {
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.info-item span,
.info-item a {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.info-item a:hover {
  color: var(--burgundy);
}

/* ========== FORM ========== */
.reservar-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.reservar-form h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--blush-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(157, 24, 66, 0.10);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  color: #2e7d32;
  font-size: 0.92rem;
}

.form-success svg {
  flex-shrink: 0;
  color: #4caf50;
}

/* ========== CONTACTO ========== */
.contacto {
  background: var(--white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contacto-info .section-tag {
  margin-bottom: 16px;
}

.contacto-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.contacto-info > p {
  color: var(--text-mid);
  font-size: 1.02rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dato {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dato svg {
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 3px;
}

.dato span,
.dato a {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.dato a:hover {
  color: var(--burgundy);
}

.contacto-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

.contacto-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.70);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.footer-links h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root {
    --nav-width: 200px;
  }

  .grid-two,
  .reservar-wrapper,
  .contacto-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-width: 0px;
  }

  .side-nav {
    transform: translateX(-100%);
    width: 280px;
    padding: 80px 28px 32px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .hero {
    margin-left: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .grid-two {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-two-img {
    order: -1;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item.large {
    grid-column: 1 / -1;
  }

  .gallery-item.large img {
    height: 280px;
  }

  .gallery-item.wide {
    grid-column: 1 / -1;
  }

  .gallery-item.wide img {
    height: 220px;
  }

  .gallery-item:not(.large):not(.wide) img {
    height: 180px;
  }

  .reservar-wrapper,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .reservar-form-wrap {
    padding: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: 1;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}
