/* Paleta calida para panaderia artesanal. */
:root {
  --cream: #fff8ec;
  --cream-soft: #f9ecd5;
  --cream-deep: #efd5ab;
  --bread: #d69b4c;
  --gold: #b97825;
  --olive: #56643b;
  --terracotta: #a9552e;
  --pink: #e94f9a;
  --pink-soft: #f7c5dc;
  --coffee: #4f2f1f;
  --logo-coffee: #6a3a22;
  --coffee-soft: #76513a;
  --cocoa: #2a1a12;
  --white: #ffffff;
  --line: rgba(79, 47, 31, 0.14);
  --shadow: 0 18px 42px rgba(79, 47, 31, 0.13);
  --radius: 8px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cocoa);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(rgba(255, 248, 236, 0.94), rgba(255, 248, 236, 0.94)),
    repeating-linear-gradient(45deg, rgba(185, 120, 37, 0.08) 0 1px, transparent 1px 18px),
    var(--cream);
}

a {
  color: inherit;
}

/* Header fijo, limpio y compacto. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 236, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.navbar {
  width: min(100% - 32px, var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--coffee);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(106, 58, 34, 0.15);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(79, 47, 31, 0.14);
}

.nav-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--coffee);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--white);
  background: var(--logo-coffee);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--coffee);
}

/* Hero con fondo decorativo CSS, sin imagen externa ni copyright. */
.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  padding: 110px 16px 96px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(42, 26, 18, 0.9), rgba(79, 47, 31, 0.72), rgba(233, 79, 154, 0.18)),
    radial-gradient(circle at 78% 28%, rgba(233, 79, 154, 0.25) 0 11%, transparent 12%),
    radial-gradient(circle at 87% 62%, rgba(239, 213, 171, 0.38) 0 16%, transparent 17%),
    linear-gradient(135deg, #6f4025, #c9893d 52%, #f1d6a9);
}

.hero-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 58px;
}

.hero-content {
  max-width: 780px;
}

.hero h1 {
  margin: 10px 0 18px;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6.8vw, 4.9rem);
  line-height: 1.02;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--cream);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-logo-frame {
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 72% 22%, rgba(233, 79, 154, 0.16) 0 19%, transparent 20%),
    var(--white);
  border: 10px solid rgba(255, 248, 236, 0.92);
  border-radius: 50%;
  box-shadow:
    0 28px 70px rgba(42, 26, 18, 0.34),
    inset 0 0 0 2px rgba(106, 58, 34, 0.16);
  overflow: hidden;
}

.hero-logo-frame img {
  width: 112%;
  height: 112%;
  display: block;
  object-fit: cover;
  object-position: 50% 52%;
  border-radius: 50%;
  background: var(--white);
  filter: drop-shadow(0 10px 16px rgba(79, 47, 31, 0.18));
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--logo-coffee), var(--coffee));
}

.button-secondary {
  color: var(--coffee);
  background: var(--cream);
  border-color: rgba(255, 248, 236, 0.7);
}

.button-disabled {
  color: var(--coffee-soft);
  background: var(--cream-soft);
  border-color: var(--line);
  cursor: not-allowed;
}

.button-disabled:hover {
  transform: none;
  box-shadow: none;
}

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.section-label {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .section-label {
  color: var(--cream-deep);
}

h2 {
  margin: 0 0 12px;
  color: var(--coffee);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

h3 {
  margin: 0 0 10px;
  color: var(--coffee);
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.branch-card,
.about-highlight,
.hours-list,
.contact-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.product-card {
  min-height: 345px;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--bread), var(--logo-coffee));
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(79, 47, 31, 0.18);
}

.product-image {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
  background: var(--cream-soft);
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
  z-index: 1;
}

.product-card h3 {
  margin-bottom: 10px;
}

.product-card p {
  margin-bottom: 0;
}

.product-card p,
.branch-card p,
.about-text p,
.contact-info p {
  color: var(--coffee-soft);
}

.about-section {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 34px;
}

.about-highlight {
  padding: 32px;
  color: var(--cream);
  background:
    radial-gradient(circle at 85% 18%, rgba(233, 79, 154, 0.2) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(79, 47, 31, 0.96), rgba(106, 58, 34, 0.9)),
    var(--coffee);
}

.about-highlight strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.about-highlight span {
  color: var(--cream-deep);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.branch-card-muted {
  background: rgba(249, 236, 213, 0.8);
}

.branch-card .button {
  width: fit-content;
  margin-top: auto;
}

.hours-section {
  width: 100%;
  max-width: none;
  padding: 92px 16px;
  background:
    linear-gradient(rgba(249, 236, 213, 0.9), rgba(249, 236, 213, 0.9)),
    repeating-linear-gradient(90deg, rgba(79, 47, 31, 0.05) 0 1px, transparent 1px 28px);
}

.hours-section .section-heading,
.hours-list {
  width: min(100% - 32px, var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.hours-section .section-heading {
  max-width: var(--max-width);
  padding-left: 0;
}

.hours-list {
  padding: 12px 28px;
}

.hours-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.hours-list div:last-child {
  border-bottom: 0;
}

.hours-list span {
  color: var(--coffee);
  font-weight: 800;
}

.hours-list strong {
  color: var(--coffee-soft);
  text-align: right;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 36px;
}

.contact-info a {
  color: var(--coffee);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.social-panel {
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 20%, rgba(233, 79, 154, 0.14) 0 18%, transparent 19%),
    var(--cream-soft);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--coffee);
  font-weight: 800;
  text-decoration: none;
  background: var(--white);
}

.social-links a:hover,
.social-links a:focus {
  color: var(--cream);
  background: var(--logo-coffee);
}

.site-footer {
  padding: 34px 16px;
  color: var(--cream);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(79, 47, 31, 0.98), rgba(42, 26, 18, 0.98)),
    var(--coffee);
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
}

.site-footer p {
  margin: 0;
  color: var(--cream-deep);
}

/* Ajustes para tabletas y pantallas medianas. */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-logo-frame {
    width: min(100%, 280px);
    padding: 22px;
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: flex;
    padding: 12px;
  }

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

/* Ajustes para celular. */
@media (max-width: 640px) {
  .navbar {
    width: min(100% - 24px, var(--max-width));
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 590px;
    padding: 78px 12px;
  }

  .hero-content {
    width: min(100% - 24px, var(--max-width));
  }

  .hero-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .hero-visual {
    display: none;
  }

  .hero-actions,
  .social-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .social-links a {
    width: 100%;
  }

  .section {
    width: min(100% - 24px, var(--max-width));
    padding: 68px 0;
  }

  .product-grid,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .hours-section {
    padding: 68px 12px;
  }

  .hours-section .section-heading,
  .hours-list {
    width: min(100% - 24px, var(--max-width));
  }

  .hours-list {
    padding: 10px 20px;
  }

  .hours-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hours-list strong {
    text-align: left;
  }

  .contact-section {
    padding: 24px;
  }

  .social-panel {
    padding: 18px;
  }
}
