/* Casa Rufino - Static version */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --background: #fdfcf7;
  --foreground: #0f1a14;
  --card: #ffffff;
  --primary: #2f5d3a;
  --primary-foreground: #fdfcf7;
  --primary-glow: #4a8a55;
  --secondary: #f1f2eb;
  --muted-foreground: #6b7568;
  --border: #e3e5dc;
  --whatsapp: #25d366;
  --gold: #c9a84c;
  --shadow-elegant: 0 20px 60px -20px rgba(47, 93, 58, 0.25);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 16px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.muted { color: var(--muted-foreground); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--primary-foreground);
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: opacity .2s; border: 0; cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.btn:hover { opacity: .9; }
.btn-whatsapp { background: var(--whatsapp); }
.btn svg, .btn img { width: 18px; height: 18px; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: all .3s;
}
.navbar.scrolled {
  background: rgba(253, 252, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; }
.brand .tag { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-top: 4px; }
.navbar.scrolled .brand .name { color: var(--primary); }
.navbar.scrolled .brand .tag { color: var(--muted-foreground); }
.nav-links { display: none; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: #fff; }
.navbar.scrolled .nav-links a { color: var(--foreground); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-nav { padding: 10px 20px; font-size: 14px; }
.btn-nav.hide-mobile { display: none; }
.menu-toggle { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.navbar.scrolled .menu-toggle { color: var(--foreground); }
.mobile-menu { display: none; background: var(--background); border-top: 1px solid var(--border); padding: 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .btn-nav.hide-mobile { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; color: #fff;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.85) 100%); }
.hero-content { position: relative; z-index: 2; padding: 160px 24px 80px; max-width: 1200px; margin: 0 auto; width: 100%; animation: fadeUp .8s ease-out both; }
.hero .kicker { font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase; opacity: .9; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 900px; line-height: .95; }
.hero h1 em { font-style: italic; font-weight: 300; opacity: .95; }
.hero p { margin: 24px 0 40px; max-width: 560px; font-size: 18px; opacity: .9; line-height: 1.6; }

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

/* Sections */
section { padding: 96px 0; }
.bg-secondary { background: var(--secondary); }

/* Menu del día */
.menu-dia .price-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  margin-top: 24px;
}
.menu-dia .price-badge .from { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.menu-dia .price-badge .num { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.menu-card {
  background: var(--card); border-radius: 28px; padding: 48px;
  box-shadow: var(--shadow-soft);
  display: grid; gap: 48px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .menu-card { grid-template-columns: repeat(3, 1fr); padding: 64px; } }
.menu-col h3 { font-size: 24px; color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.menu-col h3::before { content: ''; height: 1px; width: 32px; background: var(--primary); }
.menu-col li { padding: 6px 0; color: rgba(15,26,20,.85); }

/* Galería */
.gallery { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .item { aspect-ratio: 4/3; overflow: hidden; background: var(--secondary); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gallery .item:hover img { transform: scale(1.05); }

/* Carta */
.carta-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .carta-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.carta-section h3 { font-size: 28px; color: var(--primary); margin-bottom: 24px; font-weight: 500; }
.carta-section li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(227,229,220,.7); }
.carta-section li .name { flex: 1; color: rgba(15,26,20,.9); }
.carta-section li .price { font-family: var(--font-display); font-weight: 600; color: var(--primary); white-space: nowrap; }
.note { text-align: center; color: var(--muted-foreground); font-size: 14px; margin-top: 56px; }

/* Vinos */
.vinos-card { background: var(--card); padding: 56px; border-radius: 28px; box-shadow: var(--shadow-soft); display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .vinos-card { grid-template-columns: 1fr 1fr; gap: 64px; } }
.vinos-card h3 { font-size: 20px; color: var(--primary); padding-bottom: 12px; border-bottom: 1px solid rgba(47,93,58,.2); margin-bottom: 20px; font-weight: 600; }
.vinos-card li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.vinos-card li .do { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); margin-top: 2px; }
.vinos-card li .price { font-family: var(--font-display); font-weight: 600; color: var(--primary); white-space: nowrap; }

/* Grupos */
.grupos { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .grupos { grid-template-columns: 1fr 1fr; gap: 80px; } }
.grupos .img-wrap { aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-elegant); }
.grupos .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.grupos h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.grupos .intro { color: var(--muted-foreground); font-size: 18px; line-height: 1.7; margin-bottom: 32px; }
.benefit { display: flex; gap: 16px; padding: 16px; background: var(--secondary); border-radius: 18px; margin-bottom: 16px; }
.benefit .icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(47,93,58,.1); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit .title { font-weight: 600; margin-bottom: 4px; }
.benefit .desc { font-size: 14px; color: var(--muted-foreground); }

/* Contacto */
.contacto { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contacto { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contacto h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 40px; }
.info-row { display: flex; gap: 16px; margin-bottom: 24px; }
.info-row svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-row .label { font-weight: 600; margin-bottom: 4px; }
.info-row .value { color: var(--muted-foreground); }
.info-row .value a { display: block; }
.info-row .value a:hover { color: var(--primary); }
.info-row .value li { color: var(--muted-foreground); margin-top: 4px; }
.info-row .value li strong { color: var(--foreground); font-weight: 500; }
.map-wrap { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-elegant); min-height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* Footer */
footer { border-top: 1px solid var(--border); }
footer .inner { max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted-foreground); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  background: var(--whatsapp); color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  box-shadow: var(--shadow-elegant);
  transition: opacity .2s; font-weight: 600; font-size: 14px;
}
.whatsapp-float:hover { opacity: .9; }
.whatsapp-float img { width: 20px; height: 20px; }


/* Inner pages: always-solid navbar */
.navbar.solid {
  background: rgba(253, 252, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar.solid .brand .name { color: var(--primary); }
.navbar.solid .brand .tag { color: var(--muted-foreground); }
.navbar.solid .nav-links a { color: var(--foreground); }
body.has-solid-nav { padding-top: 96px; }
.page-section { padding: 64px 0 96px; }
.navbar.solid .menu-toggle { color: var(--foreground); }
.navbar.solid .btn-nav { background: var(--primary); color: var(--primary-foreground, #fff); }
