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

:root {
  --brown:  #2C1810;
  --brasa:  #A8331E;
  --cream:  #F5E6D3;
  --gold:   #C9A961;
  --brown2: #4A2518;
  --muted:  #6b5a4a;
  --text:   #1a1a1a;
  --white:  #ffffff;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(44,24,16,.18);
  --shadow-lg: 0 12px 40px rgba(44,24,16,.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: transparent;
  transition: background .3s, backdrop-filter .3s, padding .3s;
}

.nav.scrolled {
  background: rgba(44,24,16,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .9;
  transition: opacity .2s, color .2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-cta {
  background: var(--brasa);
  color: var(--white) !important;
  padding: .5rem 1.2rem !important;
  border-radius: var(--radius);
  opacity: 1 !important;
}

.nav-cta:hover { background: #8f2918; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .25rem;
  background: transparent;
  border: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--brown);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Fraunces', serif;
  color: var(--cream);
  font-size: 2rem;
  font-weight: 600;
  transition: color .2s;
}

.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: brightness(.58);
  will-change: transform;
}

/* Capa de gradiente para dar más drama y legibilidad sin oscurecer demasiado */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,24,16,.35) 0%, rgba(44,24,16,.15) 40%, rgba(44,24,16,.7) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 600;
  margin-bottom: .9rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}

.hero-sub {
  color: var(--cream);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  margin-bottom: 1.5rem;
  opacity: .95;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(201,169,97,.4);
  padding: .5rem 1.1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-rating .stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1em;
}

.hero-rating .rating-text {
  color: var(--cream);
  font-size: .85rem;
  font-weight: 500;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 3rem;
  box-shadow: 0 6px 28px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,.5);
}

.btn-wa svg { flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  opacity: .6;
  animation: bounce 2s infinite;
  z-index: 1;
}

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

/* ===== SECTION HELPERS ===== */
section { padding: 5rem 1.5rem; }

.section-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brasa);
  margin-bottom: .7rem;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

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

/* ===== SOBRE NOSOTROS ===== */
.nosotros { background: var(--white); padding-top: 6rem; }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1150px;
  margin: 0 auto;
  align-items: center;
}

.nosotros-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.nosotros-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nosotros-text .section-title { margin-bottom: 1.25rem; }

.nosotros-text p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(44,24,16,.1);
}

.stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--brasa);
  font-weight: 600;
  line-height: 1;
  margin-bottom: .25rem;
}

.stat span {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== PROPUESTA ===== */
.propuesta { background: var(--cream); }

.propuesta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.prop-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

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

.prop-icon {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  display: block;
}

.prop-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .6rem;
}

.prop-card p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.7;
}

/* ===== MENÚ ===== */
.menu { background: var(--white); }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.dish-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  background: var(--cream);
}

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

.dish-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dish-body { padding: 1.25rem 1.35rem; }

.dish-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .35rem;
}

.dish-body p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .85rem;
  line-height: 1.6;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dish-price {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--brasa);
  font-weight: 700;
}

.dish-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--brown);
  padding: .25rem .7rem;
  border-radius: 2rem;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--brown);
  color: var(--brown);
  font-weight: 700;
  font-size: .9rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.btn-outline:hover { background: var(--brown); color: var(--cream); }

/* ===== TESTIMONIOS ===== */
.testimonios { background: var(--cream); }

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

.testi-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.testi-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.testi-card p {
  color: #3d2f24;
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(44,24,16,.08);
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  color: var(--brown);
  font-size: .95rem;
}

.testi-author span {
  font-size: .8rem;
  color: var(--muted);
}

/* ===== RESERVAS ===== */
.reservas {
  background: var(--brown);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reservas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=1200&q=60&auto=format&fit=crop') center/cover;
  opacity: .12;
}

.reservas-content { position: relative; z-index: 1; }

.reservas .section-title { color: var(--cream); }

.reservas .section-desc { color: rgba(245,230,211,.78); }

.reservas-msg {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,169,97,.3);
  border-radius: 8px;
  padding: 1.1rem 1.5rem;
  color: var(--cream);
  font-size: .9rem;
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-wa-lg {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #25D366;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1.1rem 2.6rem;
  border-radius: 3rem;
  box-shadow: 0 8px 32px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
}

.btn-wa-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,.45);
}

.tel-link {
  display: block;
  color: var(--gold);
  margin-top: 1.25rem;
  font-size: 1rem;
  opacity: .85;
  transition: opacity .2s;
}

.tel-link:hover { opacity: 1; }

/* ===== UBICACIÓN ===== */
.ubicacion { background: var(--cream); }

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ubicacion-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.info-item strong {
  display: block;
  color: var(--brown);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .25rem;
  font-weight: 700;
}

.info-item p, .info-item a {
  color: var(--muted);
  font-size: .97rem;
}

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

.horarios-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .5rem;
}

.horarios-table td {
  padding: .4rem 0;
  color: var(--muted);
  font-size: .95rem;
}

.horarios-table td:first-child { font-weight: 600; color: var(--brown); width: 50%; }

/* FIX: bug del !important con espacio */
.cerrado { color: #a88880 !important; opacity: .75; }

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ===== INSTAGRAM ===== */
.instagram { background: var(--white); }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.insta-item:hover img { transform: scale(1.08); }

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.insta-item:hover .insta-overlay { opacity: 1; }

.insta-overlay svg { color: white; }

.btn-insta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  padding: .9rem 2rem;
  border-radius: 3rem;
  transition: opacity .2s, transform .2s;
}

.btn-insta:hover { opacity: .9; transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: .5rem;
}

.footer-tagline {
  font-size: .88rem;
  opacity: .65;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: .5rem; }

.footer-col a {
  color: rgba(245,230,211,.7);
  font-size: .9rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-col p {
  color: rgba(245,230,211,.7);
  font-size: .9rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: .82rem;
  opacity: .5;
}

.footer-bottom a { color: var(--gold); opacity: 1; transition: opacity .2s; }
.footer-bottom a:hover { opacity: .8; }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 3s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.6);
  animation: none;
}

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.8); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .propuesta-grid { grid-template-columns: repeat(3, 1fr); }
  .ubicacion-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .wa-float { display: none; }
}

@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 6rem 2.5rem; }
  .nav { padding: 1.25rem 3rem; }
  .nosotros { padding-top: 7rem; }
}

/* ===== ANIMACIONES ENTRADA ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }
.fade-up:nth-child(6) { transition-delay: .5s; }

/* ===== ACCESIBILIDAD: reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { transform: none !important; }
  .fade-up { opacity: 1; transform: none; }
}
