/* República del Café — paleta sobria: verdes bosque + marrones tierra */

:root {
  --color-ink: #1c1914;
  --color-ink-soft: #3d352b;
  --color-cream: #f5f0e8;
  --color-cream-dark: #e8dfd0;
  --color-green-deep: #2c3d32;
  --color-green-mid: #3d5245;
  --color-green-light: #5a7262;
  --color-brown: #5c4330;
  --color-brown-warm: #8b6914;
  --color-gold-muted: #a68b5b;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 4.25rem;
  --radius: 4px;
  --shadow-soft: 0 12px 40px rgba(28, 25, 20, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  background: var(--color-cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-green-deep);
  color: var(--color-cream);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-green-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-brown);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 61, 50, 0.12);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--color-green-deep);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  border-radius: var(--radius);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-label span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-green-deep);
  border-radius: 1px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--color-green-deep);
}

.nav-cta {
  padding: 0.45rem 1rem;
  background: var(--color-green-deep);
  color: var(--color-cream) !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-green-mid);
  color: var(--color-cream) !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-green-deep);
  background-image: url("public/images/Tipos_de_molido-256737_28d1fb02-6ede-42fd-b1aa-20f640475e1e.webp");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(28, 25, 20, 0.75) 0%,
    rgba(44, 61, 50, 0.55) 45%,
    rgba(44, 61, 50, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  text-align: center;
  color: var(--color-cream);
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.92);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-gold-muted);
  color: var(--color-ink);
  border-color: rgba(166, 139, 91, 0.5);
}

.btn-primary:hover {
  background: var(--color-cream-dark);
  color: var(--color-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(245, 240, 232, 0.55);
}

.btn-ghost:hover {
  background: rgba(245, 240, 232, 0.12);
  color: var(--color-cream);
}

.section {
  padding: 4rem 1.25rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 560px;
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-head h2,
.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--color-green-deep);
}

.section-head p {
  margin: 0;
  color: var(--color-ink-soft);
}

.section-products {
  background: var(--color-cream);
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid rgba(44, 61, 50, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-brown);
}

.product-card p {
  margin: 0;
  font-size: 0.98rem;
}

.section-about {
  background: linear-gradient(180deg, var(--color-cream-dark) 0%, var(--color-cream) 100%);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 320px;
  }
}

.split p {
  margin: 0 0 1rem;
}

.split p:last-of-type {
  margin-bottom: 1.25rem;
}

.about-aside {
  background: var(--color-green-deep);
  color: var(--color-cream);
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-aside ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-aside li {
  margin-bottom: 0.65rem;
}

.about-aside li:last-child {
  margin-bottom: 0;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-green-mid);
}

.text-link:hover {
  color: var(--color-brown);
}

.section-shop {
  text-align: center;
  background: var(--color-green-deep);
  color: var(--color-cream);
}

.section-shop .section-head h2 {
  color: var(--color-cream);
}

.section-shop .section-head p {
  color: rgba(245, 240, 232, 0.88);
}

.section-shop .btn-primary {
  background: var(--color-gold-muted);
  color: var(--color-ink);
}

.section-shop .btn-primary:hover {
  background: var(--color-cream);
}

.section-contact {
  background: var(--color-cream);
}

.section-contact h2 {
  margin-top: 0;
}

.contact-block {
  font-style: normal;
  margin-top: 1.5rem;
}

.contact-block .label {
  display: inline-block;
  min-width: 5rem;
  font-weight: 600;
  color: var(--color-green-deep);
}

.contact-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(61, 53, 43, 0.65);
}

.site-footer {
  background: var(--color-ink);
  color: rgba(245, 240, 232, 0.75);
  padding: 1.5rem 1.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--color-cream);
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(245, 240, 232, 0.98);
    border-bottom: 1px solid rgba(44, 61, 50, 0.12);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(44, 61, 50, 0.08);
  }

  .nav a:last-child {
    border-bottom: 0;
    margin-top: 0.35rem;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
}
