/* ============================================================
   Higos Delicia — sitio web (higosdelicia.com)
   Paleta reutilizada del panel administrativo (os.higosdelicia.com)
   para que ambas propiedades se sientan como una sola marca.
   ============================================================ */

:root {
  --higos-50: #faf6f8;
  --higos-100: #f3e9ee;
  --higos-200: #e6d0dc;
  --higos-300: #d1a6bc;
  --higos-400: #b6759a;
  --higos-500: #96517c;
  --higos-600: #7a3a64;
  --higos-700: #5f2b4f;
  --higos-800: #4a1f3f;
  --higos-900: #3a1832;
  --higos-950: #2a1024;
  --fig-orange: #e2703a;
  --fig-cream: #faf3e8;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --shadow-soft: 0 2px 10px rgba(58, 24, 50, 0.06);
  --shadow-card: 0 4px 24px rgba(58, 24, 50, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--higos-900);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--higos-950);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.hd-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Botones ---------- */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.hd-btn:hover { transform: translateY(-2px); }
.hd-btn--dark {
  background: var(--higos-900);
  color: #fff;
}
.hd-btn--dark:hover { background: var(--higos-950); box-shadow: var(--shadow-card); }
.hd-btn--outline {
  background: transparent;
  border-color: var(--higos-900);
  color: var(--higos-900);
}
.hd-btn--outline:hover { background: var(--higos-100); }
.hd-btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Banner de éxito/error de formularios ---------- */
.hd-banner {
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.hd-banner--ok { background: #e7f6ec; color: #1e6b3a; }
.hd-banner--error { background: #fbe9e9; color: #a43333; }

/* ---------- Header ---------- */
.hd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--higos-100);
}
.hd-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
.hd-logo img { height: 38px; width: auto; }
.hd-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-weight: 600;
  font-size: 14.5px;
}
.hd-nav a { color: var(--higos-800); transition: color .15s ease; }
.hd-nav a:hover { color: var(--fig-orange); }
.hd-header__cta { margin-left: 4px; }
.hd-burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--higos-900);
  cursor: pointer;
  margin-left: 8px;
}

/* ---------- Hero ---------- */
.hd-hero {
  background: linear-gradient(180deg, var(--fig-cream) 0%, #fff 100%);
  padding: 64px 0;
}
.hd-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hd-badge {
  display: inline-block;
  background: var(--higos-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hd-hero__text h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  margin-bottom: .35em;
}
.hd-hero__subtitulo {
  font-size: 18px;
  color: var(--higos-700);
  max-width: 46ch;
}
.hd-hero__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 32px;
}
.hd-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.hd-benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--higos-800);
}
.hd-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--fig-orange);
  font-weight: 700;
}
.hd-hero__imagen img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.hd-imagen-placeholder {
  background: var(--higos-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3.4;
}
.hd-imagen-placeholder img { width: 88px; height: 88px; opacity: .55; }

/* ---------- Secciones genéricas ---------- */
.hd-section { padding: 76px 0; }
.hd-section--tinted { background: var(--higos-50); }
.hd-section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.hd-eyebrow {
  display: inline-block;
  color: var(--fig-orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hd-section__head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.hd-center { text-align: center; margin-top: 40px; }
.hd-empty { text-align: center; color: var(--higos-500); font-style: italic; }

/* ---------- Nuestra historia ---------- */
.hd-historia__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.hd-historia__imagen img,
.hd-historia__imagen .hd-imagen-placeholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.hd-historia__imagen .hd-imagen-placeholder { display: flex; align-items: center; justify-content: center; }
.hd-historia__imagen .hd-imagen-placeholder img { width: 72px; height: 72px; aspect-ratio: auto; }

/* ---------- Grillas de tarjetas ---------- */
.hd-grid { display: grid; gap: 26px; }
.hd-grid--productos { grid-template-columns: repeat(4, 1fr); }
.hd-grid--recetas { grid-template-columns: repeat(3, 1fr); }
.hd-grid--testimonios { grid-template-columns: repeat(3, 1fr); }
.hd-grid--instagram { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hd-grid--porque { grid-template-columns: repeat(5, 1fr); }

.hd-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.hd-card__imagen {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--higos-50);
  margin-bottom: 14px;
}
.hd-card__imagen img { width: 100%; height: 100%; object-fit: cover; }
.hd-card h3 { font-size: 17px; margin-bottom: 4px; }
.hd-card__unidad { font-size: 13px; color: var(--higos-500); margin-bottom: 6px; }
.hd-card__precio { font-weight: 700; color: var(--higos-800); font-size: 16px; margin: 0; }

.hd-card--receta p { font-size: 14px; color: var(--higos-700); margin: 0; }

.hd-card--testimonio { display: flex; flex-direction: column; }
.hd-quote { font-style: italic; color: var(--higos-800); flex: 1; }
.hd-testimonio__autor { display: flex; align-items: center; gap: 12px; }
.hd-testimonio__autor img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.hd-muted { color: var(--higos-500); font-size: 13.5px; }
.hd-stars { color: var(--fig-orange); font-size: 13px; letter-spacing: 1px; }

.hd-grid--instagram a {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: block;
}
.hd-grid--instagram img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.hd-grid--instagram a:hover img { transform: scale(1.06); }

/* ---------- Por qué elegir ---------- */
.hd-porque { text-align: center; padding: 8px; }
.hd-porque span { font-size: 34px; display: block; margin-bottom: 10px; }
.hd-porque h4 { font-size: 15.5px; margin-bottom: 4px; }
.hd-porque p { font-size: 13.5px; color: var(--higos-600); margin: 0; }

/* ---------- Mayoristas ---------- */
.hd-mayoristas__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.hd-form { display: flex; flex-direction: column; gap: 14px; }
.hd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hd-form input,
.hd-form textarea,
.hd-newsletter__form input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--higos-200);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--higos-900);
}
.hd-form input:focus,
.hd-form textarea:focus,
.hd-newsletter__form input:focus {
  outline: none;
  border-color: var(--higos-500);
  box-shadow: 0 0 0 3px var(--higos-100);
}
.hd-form button { align-self: flex-start; }

/* ---------- Newsletter ---------- */
.hd-newsletter {
  background: var(--higos-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hd-newsletter__titulo { font-size: 19px; font-weight: 600; margin: 0; max-width: 46ch; }
.hd-newsletter__form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 460px; }
.hd-newsletter__form input { flex: 1; }

/* ---------- Footer ---------- */
.hd-footer { background: var(--higos-950); color: var(--higos-200); padding: 60px 0 0; }
.hd-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hd-footer__logo { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.hd-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.hd-footer a, .hd-footer p { display: block; font-size: 13.5px; color: var(--higos-200); margin-bottom: 8px; }
.hd-footer a:hover { color: #fff; }
.hd-social { display: flex; flex-direction: column; }
.hd-footer__copy {
  text-align: center;
  font-size: 12.5px;
  color: var(--higos-400);
  padding: 20px;
}

/* ---------- WhatsApp flotante ---------- */
.hd-whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 60;
  transition: transform .15s ease;
}
.hd-whatsapp-float:hover { transform: scale(1.08); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hd-grid--productos { grid-template-columns: repeat(3, 1fr); }
  .hd-grid--recetas, .hd-grid--testimonios { grid-template-columns: repeat(2, 1fr); }
  .hd-grid--instagram { grid-template-columns: repeat(4, 1fr); }
  .hd-grid--porque { grid-template-columns: repeat(3, 1fr); }
  .hd-hero__grid, .hd-historia__grid, .hd-mayoristas__grid {
    grid-template-columns: 1fr;
  }
  .hd-hero__imagen, .hd-historia__imagen { order: -1; }
}

@media (max-width: 720px) {
  .hd-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    box-shadow: var(--shadow-card);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .hd-nav.hd-nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hd-nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--higos-100); }
  .hd-header__cta { display: none; }
  .hd-burger { display: block; }

  .hd-hero { padding: 40px 0; }
  .hd-benefits { grid-template-columns: 1fr; }
  .hd-section { padding: 52px 0; }
  .hd-grid--productos, .hd-grid--recetas, .hd-grid--testimonios { grid-template-columns: repeat(2, 1fr); }
  .hd-grid--instagram { grid-template-columns: repeat(3, 1fr); }
  .hd-grid--porque { grid-template-columns: repeat(2, 1fr); }
  .hd-footer__grid { grid-template-columns: 1fr 1fr; }
  .hd-newsletter { padding: 28px; }
  .hd-newsletter__form { flex-direction: column; }
  .hd-form__row { grid-template-columns: 1fr; }
  .hd-whatsapp-float { width: 52px; height: 52px; font-size: 24px; bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hd-grid--productos, .hd-grid--recetas, .hd-grid--testimonios,
  .hd-grid--instagram, .hd-grid--porque {
    grid-template-columns: repeat(2, 1fr);
  }
}
