/* ===========================================================
   Trama Café — estilos del sitio público
   Paleta y tipografías de marca (CLAUDE.md §9)
   =========================================================== */

:root {
  --terracota: #B3592E;
  --terracota-dark: #8e4422;
  --sage: #89997E;
  --cream: #F5F0E9;
  --linen: #E7DFD2;
  --text: #3a2e27;
  --text-soft: #7a6a5f;
  --ok: #6a9e6a;
  --error: #c0392b;
  --warning: #e07b39;

  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(58, 46, 39, .12);
  --shadow-sm: 0 4px 14px rgba(58, 46, 39, .08);

  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Caveat', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracota); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracota-dark); }

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

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--terracota);
  line-height: 1;
  margin-bottom: 6px;
}

h1, h2, h3 { line-height: 1.15; font-weight: 600; color: var(--text); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 620px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracota); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracota-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--terracota); color: var(--terracota); }
.btn--ghost:hover { background: var(--terracota); color: #fff; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 233, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linen);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-size: 1.9rem; color: var(--terracota); line-height: 1; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text); font-weight: 500; font-size: .98rem; }
.nav__links a:hover { color: var(--terracota); }
.nav__toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--linen) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 90px 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--terracota); }
.hero .lead { margin-bottom: 30px; font-size: 1.2rem; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--sage);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* placeholder visual cuando no hay foto */
.ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--linen), var(--linen) 14px, #ded3c2 14px, #ded3c2 28px);
  color: var(--text-soft); font-size: .9rem; text-align: center; padding: 16px;
}

/* ---------- Bloques de contenido ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--linen); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card .ico { font-size: 1.8rem; margin-bottom: 10px; }

.bg-linen { background: var(--linen); }
.bg-white { background: #fff; }

/* ---------- Ubicación ---------- */
.locate { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.locate__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 340px; }
.locate__map iframe { width: 100%; height: 100%; border: 0; min-height: 340px; }
.info-list { list-style: none; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { font-size: 1.3rem; }
.hours { display: grid; gap: 6px; margin-top: 6px; }
.hours div { display: flex; justify-content: space-between; max-width: 320px; color: var(--text-soft); }

/* ---------- Instagram ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.ig-grid a { aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA banda ---------- */
.cta-band {
  background: var(--terracota); color: #fff; text-align: center;
  border-radius: var(--radius); padding: 56px 24px; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); margin: 0 auto 26px; }
.cta-band .btn--primary { background: #fff; color: var(--terracota); }
.cta-band .btn--primary:hover { background: var(--cream); }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: var(--linen); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: var(--linen); }
.footer a:hover { color: #fff; }
.footer__links { list-style: none; display: grid; gap: 8px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: var(--sage); }
.staff-link { font-size: .85rem; opacity: .7; }

/* ---------- Menú ---------- */
.menu-hero { background: linear-gradient(135deg, var(--linen), var(--cream)); padding: 64px 0 40px; text-align: center; }
.menu-cat { margin-bottom: 56px; }
.menu-cat__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; border-bottom: 2px solid var(--linen); padding-bottom: 10px; }
.menu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.menu-item__name { font-weight: 600; }
.menu-item__desc { color: var(--text-soft); font-size: .92rem; font-weight: 400; }
.menu-item__dots { flex: 1; border-bottom: 1px dotted #c9bcab; transform: translateY(-4px); }
.menu-item__price { font-weight: 600; color: var(--terracota); white-space: nowrap; }
.badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sage); color: #fff; vertical-align: middle; margin-left: 6px; }

.note {
  background: #fff7ef; border: 1px solid var(--warning); color: #8a4d1c;
  border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin: 24px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner, .split, .locate { grid-template-columns: 1fr; }
  .hero__inner { padding: 56px 0; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .menu-items { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--linen); padding: 8px 0; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 24px; width: 100%; }
  .nav__toggle { display: block; }
}
