/* ===================================================================
   RAÍZ DEL DISEÑO — todo el look de la página se controla desde aquí.
   Margo Café — Av. Sonora 226, Col. Centro, Fresnillo, Zac.
   Estilo tomado de foto real del local: estructura industrial (acero
   negro + blanco + mármol), lámparas de cobre y una cortina de hojas
   colgantes. Base neutra (crudo/blanco) + verde de vid como color de
   acción + cobre como acento puntual — vistoso sin cansar la vista.
   =================================================================== */
:root {
  --color-bg:        #F5F4EF; /* crudo/mármol claro, tipo pared y piso del local */
  --color-surface:   #FFFFFF; /* fondo de tarjetas */
  --color-ink:       #1E1D1B; /* texto principal, casi negro tipo acero */
  --color-muted:     #6B675F; /* texto secundario */
  --color-primary:   #5B7A49; /* verde de la marca (logo), oscurecido para botones */
  --color-primary-dark: #44602F;
  --color-sage:      #93AC85; /* verde exacto del logo — acentos decorativos, no texto blanco encima */
  --color-secondary: #17171A; /* acero/negro industrial — header, footer, hero */
  --color-accent:    #B5722E; /* cobre de las lámparas — detalle, poco uso */
  --color-wood:      #8B5A2B; /* madera de las mesas — acentos puntuales */
  --color-instagram: #C13584; /* solo para el botón flotante de Instagram */
  --color-border:    #E4E2DA;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Mulish', system-ui, -apple-system, sans-serif;

  --radius-card: 24px 24px 6px 6px; /* misma esquina tipo arco que en los sitios de cliente */
  --radius-btn: 999px;
  --shadow-card: 0 12px 30px -14px rgba(20, 20, 18, 0.3);
  --container-w: 1080px;
}

/* ===================================================================
   BASE
   =================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--color-muted); }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.6em;
}

.section-lead { max-width: 620px; font-size: 1.05rem; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Marca visualmente los datos que aún son placeholders TODO. */
.todo-tag {
  font-weight: 600;
  font-size: 0.72rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===================================================================
   BOTONES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.98rem;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-ghost { background: transparent; border-color: var(--color-secondary); color: var(--color-secondary); }
.btn-ghost:hover { background: var(--color-secondary); color: white; }

.btn-light { background: white; color: var(--color-primary-dark); }
.btn-light:hover { background: rgba(255,255,255,0.9); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-large { padding: 18px 38px; font-size: 1.1rem; }
.icon { width: 18px; height: 18px; fill: currentColor; }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  background: var(--color-secondary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; text-decoration: none; color: white; }
/* El logo real es trazo negro sobre fondo claro — necesita una placa clara
   detrás para no perderse sobre el header oscuro. */
.logo-badge {
  background: #F7F6F2;
  padding: 6px 14px;
  border-radius: 10px 10px 10px 2px;
  display: flex;
  align-items: center;
}
.logo-badge img { display: block; height: 34px; width: auto; }

.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: white; }

.nav-cta {
  flex-shrink: 0;
  border-color: var(--color-accent);
  color: white; /* el header es oscuro — btn-ghost por defecto usa texto casi negro y se pierde */
}
.nav-cta:hover { background: var(--color-accent); color: var(--color-secondary); }
.nav-toggle { display: none; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  /* Fondo acero oscuro + una rejilla tenue que recuerda el techo/estructura
     metálica del local. Opacidad muy baja para que no compita con el texto. */
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 46px),
    linear-gradient(180deg, var(--color-secondary) 0%, #232327 100%);
  color: white;
  position: relative;
  padding: 84px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .eyebrow { color: var(--color-accent); }
.hero h1 { color: white; }
.hero-lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.5); color: white; }
.hero .btn-ghost:hover { background: white; color: var(--color-secondary); }

.hero-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 44px -16px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.trust-row { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.trust-row li { font-size: 0.92rem; color: rgba(255,255,255,0.75); min-width: 0; }
.trust-row strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: white; }

/* ===================================================================
   CORTINA DE HOJAS — divisor de firma del sitio, tomado de la foto real
   del local (viga de acero + vid colgante). Reemplaza el arco genérico
   de los otros sitios de Nova Webs para darle identidad propia a Margo.
   =================================================================== */
.vine-curtain { background: var(--color-bg); line-height: 0; }
.vine-curtain svg { display: block; width: 100%; height: auto; }
.vine-beam { fill: var(--color-secondary); }
.vine-lamp { fill: var(--color-accent); }
.vine-stem { stroke: var(--color-primary-dark); stroke-width: 2; fill: none; opacity: 0.85; }
.vine-leaf { fill: var(--color-primary); }
.vine-stem-alt { stroke: var(--color-primary); opacity: 0.7; }
.vine-leaf-alt { fill: var(--color-primary-dark); opacity: 0.92; }
.vine-leaf-sage { fill: var(--color-sage); }

/* ===================================================================
   SECCIONES GENERALES
   =================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }
.align-start { align-items: start; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
}
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; color: var(--color-ink); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}

.feature-block { display: grid; gap: 16px; }
.feature {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-wood);
}
.feature-label { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-accent); }
.feature-desc { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

.address { font-size: 1.05rem; color: var(--color-ink); }
.hours { border-collapse: collapse; margin: 18px 0 24px; width: 100%; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-weight: 400; }
.hours th { color: var(--color-muted); font-weight: 600; }

.map-frame { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 340px; border: 0; }

/* ===================================================================
   CTA FINAL
   =================================================================== */
.cta-final {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 70px 0;
}
.cta-final h2 { color: white; }
.cta-final p { color: rgba(255,255,255,0.9); margin-bottom: 26px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--color-secondary); color: rgba(255,255,255,0.8); padding: 48px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 28px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: white; display: block; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { text-decoration: none; color: white; }
.footer-credit { text-align: center; font-size: 0.8rem; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-credit a { text-decoration: underline; }

/* ===================================================================
   INSTAGRAM FLOTANTE (canal de contacto principal — sin teléfono confirmado)
   =================================================================== */
.instagram-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: var(--color-instagram);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  z-index: 60;
  transition: transform 0.15s ease;
}
.instagram-float:hover { transform: scale(1.08); }
.instagram-float svg { width: 28px; height: 28px; fill: white; }

/* ===================================================================
   ANIMACIÓN AL HACER SCROLL (respeta reduced-motion)
   =================================================================== */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .instagram-float:hover { transform: none; }
}

/* ===================================================================
   RESPONSIVE — mobile first desde 860px hacia abajo
   =================================================================== */
@media (max-width: 860px) {
  .grid-2, .grid-4, .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; order: -1; }
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { width: 100%; height: 2px; background: white; border-radius: 2px; }
  .nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-secondary);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .header-inner { position: relative; }
  .hero { padding: 60px 0 90px; }
  .section { padding: 56px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; text-align: center; }
}
