/*
  Landing Pasteleria Local - Recurso gratuito editable
  Identidad visual: terracota artesanal + crema calida
  Creada por Aguilar Forge
  Web: [aguilarforge.com]
*/

/* ===================================================
   IDENTIDAD VISUAL ─ personalizar por tema
   Cambia estos valores en cada nueva landing:
   --primary, --primary-dark → color principal (terracota/cacao)
   --bg, --surface, --surface-soft → fondos (crema roto)
   --accent → dorado apagado para detalles
   --text, --muted → tipografía
   La fuente y el radio también son ajustables.
   =================================================== */
:root {
  --bg: #f9f4ee;
  --surface: #fffdf8;
  --surface-soft: #f2e8db;
  --text: #2c1a10;
  --muted: #7a5c46;
  --primary: #8b3a2a;
  --primary-dark: #6b2c1e;
  --accent: #c4a35a;
  --border: #e6d5c0;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(44, 26, 16, 0.09);
}

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

body {
  font-family: "Lato", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding: 4rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #fffdf8 0%, var(--surface-soft) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 244, 238, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff9f4;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-family: "Playfair Display", Georgia, serif;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-family: "Lato", "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.05rem;
}

.lead,
.section-intro {
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 1.3rem;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff9f4;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-soft);
}

.card,
.trust-item,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-img-wrap {
  display: flex;
  align-items: stretch;
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 2rem 3rem 2rem 2rem;
  box-shadow: var(--shadow);
  background-color: var(--surface-soft);
}

.cards-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.occasions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44, 26, 16, 0.12);
}

.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
  background-color: var(--surface-soft);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.trust-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  padding: 1.4rem;
  border-left: 3px solid var(--accent);
}

.trust-item h3 {
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.contact-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card a {
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.4rem;
  background: var(--surface-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

/* Firma Aguilar Forge ─ centrada, ancho completo, siempre presente */
.footer-credit {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.hero {
  background: linear-gradient(140deg, var(--bg) 0%, #f5ede0 100%);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-img {
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .menu {
    flex-wrap: wrap;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn,
  .contact-grid,
  .cards-grid {
    width: 100%;
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
