/* ==========================================================
   Los Amores — Shared Styles
   Palette, typography, layout primitives, components
   ========================================================== */

:root {
  /* Brand palette — warm browns + cream */
  --brown-900: #2b1810;
  --brown-800: #3d2418;
  --brown-700: #5a3a28;
  --brown-600: #7a5440;
  --brown-500: #a07c5e;   /* mid taupe — banner backgrounds */
  --brown-400: #b08e6f;   /* lighter taupe */
  --cream-50:  #fbf6ec;   /* button / card cream */
  --cream-100: #f5ead4;
  --cream-200: #ebd9b8;
  --bg:        #fafaf8;
  --text:      #2b1810;
  --muted:     #6b5a4c;
  --accent:    #c89968;   /* highlight gold-brown */
  --link:      #c89968;

  /* Layout */
  --maxw: 1200px;
  --pad: 32px;
  --radius: 10px;
  --radius-pill: 999px;

  /* Type */
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============ Navbar ============ */
.nav-strip {
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 6px 0;
  background: #fff;
  border-bottom: 1px solid #f0eee8;
  letter-spacing: 0.05em;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  margin: 0;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--brown-900);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a {
  color: var(--brown-900);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-logo-img {
  width: 140px;
  height: auto;
  display: block;
}

/* ============ Sections ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad);
}
.section--narrow { max-width: 900px; }
.section--full { max-width: 100%; padding: 0; }

.section-banner {
  background: var(--brown-500);
  color: #fff;
  padding: 64px var(--pad);
}
.section-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-900);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.h-display {
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.h-script {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 56px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brown-900);
}
.h-script--underline { display: inline-block; border-bottom: 2px solid var(--brown-900); padding-bottom: 4px; }

.lead {
  font-size: 17px;
  color: var(--brown-700);
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.lead strong { color: var(--brown-900); }
.lead .accent { color: var(--accent); font-weight: 600; }

/* ============ Buttons / pills ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn--cream {
  background: var(--cream-50);
  color: var(--brown-700);
}
.btn--cream:hover { background: #fff; transform: translateY(-1px); }
.btn--brown { background: var(--brown-700); color: #fff; }
.btn--brown:hover { background: var(--brown-800); }

.pill {
  display: block;
  background: var(--cream-50);
  color: var(--brown-700);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.pill:hover { background: #fff; text-decoration: none; }

/* ============ Footer ============ */
footer {
  background: #F5EDE3;
  padding: 48px var(--pad) 24px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-info {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}
.footer-info a { color: var(--accent); }
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  transition: color 0.2s ease;
}
.footer-whatsapp:hover { color: #25D366; text-decoration: none; }
.footer-logo {
  text-align: center;
}
.footer-logo svg { width: 64px; height: 64px; margin: 0 auto 8px; }
.footer-logo .word {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--brown-900);
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.footer-logo .word::before,
.footer-logo .word::after {
  content: "—";
  color: var(--brown-900);
}

/* ============ Image placeholders ============ */
.img-ph {
  background:
    repeating-linear-gradient(
      45deg,
      #e8e2d4,
      #e8e2d4 12px,
      #ddd5c2 12px,
      #ddd5c2 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b5a4c;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 16px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.img-ph[data-shape="circle"] { border-radius: 50%; }

/* ============ Scallop divider ============ */
.scallop {
  height: 60px;
  background-color: var(--brown-500);
  -webkit-mask-image: radial-gradient(circle at 30px 0, transparent 30px, #000 30px);
  mask-image: radial-gradient(circle at 30px 0, transparent 30px, #000 30px);
  -webkit-mask-size: 60px 60px;
  mask-size: 60px 60px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}
.scallop--top {
  -webkit-mask-image: radial-gradient(circle at 30px 60px, transparent 30px, #000 30px);
  mask-image: radial-gradient(circle at 30px 60px, transparent 30px, #000 30px);
}

/* ============ Form ============ */
.form-card {
  background: var(--brown-400);
  color: #fff;
  padding: 36px;
  border-radius: 6px;
}
.form-card h3 {
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}
.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #fff;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: #999;
}
.form-field textarea { min-height: 80px; resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--cream-50);
  color: var(--brown-700);
  border: none;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-size: 14px;
}
.form-submit:hover { background: #fff; }

/* ============ Utility ============ */
.text-center { text-align: center; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
/* ============ Hamburger / Mobile nav ============ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--brown-900);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.nav-hamburger:hover { color: var(--accent); }

.nav-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg);
    border-top: 1px solid transparent;
  }
  .nav-mobile.open {
    max-height: 420px;
    border-top-color: var(--cream-200);
  }
  .nav-mobile a {
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brown-900);
    text-decoration: none;
    border-bottom: 1px solid var(--cream-100);
    transition: background 0.15s, color 0.15s;
  }
  .nav-mobile a:hover { background: var(--cream-50); color: var(--accent); text-decoration: none; }
  .nav-mobile a.active { color: var(--accent); }
}

@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .h-display { font-size: 32px; }
  .h-script { font-size: 40px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ============ Search-sucursal floating tab ============ */
.suc-tab {
  position: fixed;
  left: 0;
  top: 220px;
  background: #fff;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 0 4px 4px 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.suc-tab:hover { text-decoration: none; background: var(--cream-50); }

/* ============ Compromiso con la calidad ============ */
.compromiso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.compromiso-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.compromiso-text {
  font-size: 15px;
  color: var(--brown-700);
  line-height: 1.8;
}
.compromiso-text p + p { margin-top: 16px; }
@media (max-width: 800px) {
  .compromiso-grid { grid-template-columns: 1fr; }
}

/* ============ Home Sabores ============ */
.home-sabores {
  position: relative;
  padding: 80px 20px;
  background: var(--cream-50);
  overflow: hidden;
}

.home-sabores-header {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.home-sabores-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.home-sabores-header h2 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--brown-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.home-sabores-header p {
  font-size: 16px;
  color: var(--brown-700);
  line-height: 1.7;
  margin: 0;
}

.sabores-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 0;
  position: relative;
  z-index: 2;
}

.sabor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(43,24,16,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  text-decoration: none;
  display: block;
  color: var(--brown-900);
}
.sabor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(43,24,16,0.14);
  text-decoration: none;
}
.sabor-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.sabor-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--brown-900);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 12px 4px;
  margin: 0;
}
.sabor-card p {
  font-size: 12px;
  color: var(--muted);
  padding: 0 12px 16px;
  margin: 0;
  line-height: 1.4;
}

.home-sabores-fondo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45vh;
  background: url('fondosaboreshome.png') center/cover no-repeat;
  background-attachment: scroll;
  z-index: 1;
  opacity: 0.55;
}

@media (max-width: 1024px) {
  .sabores-grid-home { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .sabores-grid-home { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .home-sabores-fondo { height: 30vh; }
}
@media (max-width: 480px) {
  .sabores-grid-home { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sabor-card img { height: 130px; }
}

.nav-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-logo-secondary {
  height: 100px;
  width: auto;
  display: block;
  margin-top: 0px;
}
