/* =========================================================
   Panificadora SAMS — styles.css
   Paleta cálida (dorados, marrones, blanco)
   Mobile-first · sin frameworks
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --c-bg:        #fbf6ee;     /* crema fondo */
  --c-bg-alt:    #f3ead9;     /* crema más cálida */
  --c-surface:   #ffffff;
  --c-ink:       #2a1d10;     /* marrón muy oscuro (texto) */
  --c-ink-soft:  #5a4631;
  --c-muted:     #8b7355;
  --c-brown:     #7a4a1f;     /* marrón corporativo */
  --c-brown-dk:  #5b3614;
  --c-gold:      #d4a24a;     /* dorado */
  --c-gold-dk:   #b58438;
  --c-line:      #e6dac3;
  --c-wa:        #25d366;
  --c-wa-dk:     #128c7e;

  --radius:   14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(58,36,12,.06);
  --shadow-md: 0 12px 30px -10px rgba(58,36,12,.18);
  --shadow-lg: 0 24px 60px -20px rgba(58,36,12,.28);

  --f-display: "Playfair Display", Georgia, serif;
  --f-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 28px);
}

/* ---------- 2. Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

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

/* ---------- 3. Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-brown);
  background: var(--c-bg-alt);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--c-ink-soft); }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-primary {
  background: var(--c-wa);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55);
}
.btn-primary:hover { background: var(--c-wa-dk); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(18,140,126,.55); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-bg-alt); border-color: var(--c-brown); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(230, 218, 195, .6);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 18px; }
.brand img { width: 120px; height: 81px; border-radius: 50%; }
.brand strong { color: var(--c-brown); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; color: var(--c-ink-soft); font-weight: 500; }
.nav a:hover { color: var(--c-brown); }
.nav-cta {
  background: var(--c-brown);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--c-brown-dk); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 780px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(20,12,4,.88) 0%, rgba(20,12,4,.7) 50%, rgba(20,12,4,.45) 100%),
              url("images/hero.jpg") center/cover no-repeat;
}
.hero-inner { padding: 80px 0; }
.hero-content { max-width: 720px; color: #fff8ea; }
.hero .eyebrow { background: rgba(255,255,255,.14); color: #f3d99a; }
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  color: #fff;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--c-gold); font-style: normal; }
.hero .lead { color: #f1e4cf; font-size: clamp(17px, 2vw, 20px); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills li {
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,.12);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

/* ---------- 7. Secciones ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--c-ink-soft); font-size: 17px; }

/* ---------- 8. Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 9. Card "Para quién" ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-gold); }
.card-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--c-bg-alt);
  border-radius: 50%;
  font-size: 28px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--c-ink-soft); font-size: 15px; margin: 0; }

/* ---------- 10. Productos ---------- */
.product {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { aspect-ratio: 4/3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 24px 26px 28px; }
.product-body h3 { color: var(--c-brown); font-size: 22px; margin-bottom: 12px; }
.product-body ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-line);
  color: var(--c-ink-soft);
  font-weight: 500;
}
.product-body ul li:last-child { border-bottom: 0; }
.product-body ul li::before { content: "—  "; color: var(--c-gold); }

/* ---------- 11. Diferenciales ---------- */
.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-num {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--c-gold);
  margin-bottom: 10px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--c-ink-soft); font-size: 15px; margin: 0; }

/* ---------- 12. Proceso (steps) ---------- */
.steps {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  border: 1px solid var(--c-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-brown);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--c-ink-soft); font-size: 15px; margin: 0; }

/* ---------- 13. Aliados / Logos ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.logo-box {
  height: 90px;
  display: grid; place-items: center;
  background: var(--c-surface);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  color: var(--c-muted);
  font-weight: 600;
  letter-spacing: .04em;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.logo-box:hover { border-color: var(--c-brown); color: var(--c-brown); transform: translateY(-2px); }

/* ---------- 14. Frase de impacto ---------- */
.quote {
  padding: clamp(70px, 10vw, 120px) 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,162,74,.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(122,74,31,.22), transparent 60%),
    linear-gradient(135deg, #2a1d10 0%, #4a2e15 100%);
  color: #fff;
  text-align: center;
}
.quote p {
  font-family: var(--f-display);
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  max-width: 900px;
  margin-inline: auto;
}
.quote em { color: var(--c-gold); font-style: italic; }

/* ---------- 15. CTA Final ---------- */
.cta-final { background: var(--c-bg-alt); }
.cta-box {
  text-align: center;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
}
.cta-box h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta-box p { color: var(--c-ink-soft); margin-bottom: 28px; font-size: 17px; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #d8c8b0;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { border-radius: 50%; background: #fff; }
.footer-brand strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; font-family: var(--f-display); }
.footer-brand p { font-size: 14px; color: #b9a482; margin: 0; max-width: 360px; }
.footer-contact h4 { color: #fff; font-family: var(--f-display); font-size: 17px; margin-bottom: 10px; }
.footer-contact p { font-size: 14px; margin: 4px 0; }
.footer-contact a:hover { color: var(--c-gold); }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px; margin-top: 18px;
  font-size: 13px;
  color: #9b8567;
  text-align: center;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- 17. Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-wa);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.4);
  z-index: 100;
  animation: waPulse 2.4s infinite;
  transition: transform .25s ease, background .25s ease;
}
.wa-float:hover { background: var(--c-wa-dk); transform: scale(1.08); }
@keyframes waPulse {
  0%   { box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 18. Animación reveal (scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  html { scroll-behavior: auto; }
}
