:root {
  --bg: #f6f3ec;
  --bg-alt: #efe9dd;
  --ink: #2a2721;
  --muted: #6f6a5f;
  --accent: #a4793a;
  --accent-2: #c9a76a;
  --paper: #fffdf7;
  --line: #e4dccb;
  --shadow: 0 10px 30px rgba(60, 45, 20, 0.08);
  --radius: 20px;
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-symbol {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: 12px;
  font-weight: 800; font-size: 22px;
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.brand-name span { color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 8px 20px rgba(164, 121, 58, 0.35);
}
.btn-ghost { background: transparent; border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-call { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fdf9f0, var(--bg)); }
.hero-inner {
  max-width: 1150px; margin: 0 auto;
  padding: 70px 20px 40px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff2d3; color: var(--accent);
  font-weight: 700; font-size: 13px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 strong, .lead strong, p strong { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 54ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { background: radial-gradient(circle at 50% 40%, #ffe9be, transparent 65%); border-radius: 24px; }

.hero-stats {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding: 0 20px 50px;
}
.stat {
  background: var(--paper, #fffdf7); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.stat strong { font-size: 30px; color: var(--accent); font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 70px 20px; max-width: 1150px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt .section-head, .section-alt .about-block, .section-alt .sedes-grid, .section-alt .socials, .section-alt .social-note {
  max-width: 1150px; margin-left: auto; margin-right: auto;
}
.section-head { max-width: 720px; text-align: center; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.5px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Cards / products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { border-radius: 12px; background: #f3ecdd; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; flex: 1; }
.sucursal { color: var(--accent); font-weight: 700; }
.tag {
  align-self: flex-start; margin-top: 14px;
  padding: 5px 12px; border-radius: 999px; background: #fbeee0; color: var(--accent);
  font-weight: 700; font-size: 12px;
}

/* About */
.about-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.about-feature {
  background: var(--paper, #fffdf7); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.about-feature h3 { margin-bottom: 10px; font-size: 18px; }
.about-feature p { color: var(--muted); font-size: 15px; }

/* Strip */
.strip {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; text-align: center; padding: 26px 20px;
}
.strip p { font-size: 18px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img {
  border-radius: 16px; border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover;
  width: 100%; background: #f0e9da;
}
.gallery-caption { text-align: center; margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Sedes */
.sedes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.sede-card {
  background: var(--paper, #fffdf7); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.pin { font-size: 34px; margin-bottom: 10px; }
.sede-card h3 { margin-bottom: 8px; }
.sede-card p { color: var(--muted); margin-bottom: 14px; }
.map-link { color: var(--accent); font-weight: 700; font-size: 14px; }
.map-link:hover { text-decoration: underline; }

/* Contact */
.contact-block {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--paper, #fffdf7); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}
.contact-person { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.contact-person img { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--line); margin-bottom: 12px; }
.contact-person h3 { font-size: 20px; }
.contact-person p { color: var(--muted); font-weight: 600; }
.contact-list { list-style: none; margin-bottom: 22px; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list b { color: var(--accent); }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Socials */
.socials { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.social {
  padding: 12px 26px; border-radius: 14px; background: var(--paper, #fffdf7);
  border: 1px solid var(--line); font-weight: 700; transition: transform 0.15s, box-shadow 0.15s;
}
.social:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--accent); }
.social-note { text-align: center; color: var(--muted); }

/* Footer */
.footer { background: #231f18; color: #e9e2d3; padding: 40px 20px; }
.footer-inner { max-width: 1150px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.brand-footer { justify-content: center; }
.brand-footer .brand-name span { color: var(--accent-2); }
.muted { color: #b7ad96; }
.muted.small { font-size: 13px; }

/* To top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 50px; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav { width: 100%; order: 3; justify-content: center; margin-left: 0; }
  .socials { gap: 10px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}