:root {
  --flour: #fff8ea;
  --crumb: #f5e5c8;
  --wheat: #d6a84f;
  --crust: #9b5a22;
  --oven: #5b3218;
  --charcoal: #2d241d;
  --olive: #667246;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(65, 38, 18, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--flour);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

img,
iframe {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  background: rgba(255, 248, 234, 0.92);
  border-bottom: 1px solid rgba(91, 50, 24, 0.1);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  width: 88px;
  height: 48px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(91, 50, 24, 0.08);
  border-radius: var(--radius);
  padding: 4px 8px;
}

.brand strong,
.site-footer strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--crust);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-links a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--oven);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(214, 168, 79, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(91, 50, 24, 0.2);
  border-radius: var(--radius);
  background: var(--flour);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--oven);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(100deg, rgba(45, 36, 29, 0.95) 0%, rgba(45, 36, 29, 0.72) 42%, rgba(45, 36, 29, 0.28) 100%),
    url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1800&q=80") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: 1;
  background: radial-gradient(circle at 20% 82%, rgba(214, 168, 79, 0.28), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 150px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wheat);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.05;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 6.9rem);
}

h2 {
  color: var(--oven);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  color: var(--oven);
  font-size: 1.75rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--oven);
  background: var(--wheat);
  box-shadow: 0 14px 28px rgba(24, 17, 11, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e7bc63;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 92px 0;
}

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

.section-heading p:last-child,
.orders-box p,
.about-copy p {
  color: #604936;
  font-size: 1.05rem;
}

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

.specialty-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(91, 50, 24, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-image {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.card-image-bread {
  /* Cambiar por una imagen propia de pan tradicional de Pueblapan. */
  background-image: url("https://images.unsplash.com/photo-1549931319-a545dcf3bc73?auto=format&fit=crop&w=1200&q=80");
}

.card-image-violines {
  /* Cambiar por una imagen real de violines de La Puebla. */
  background-image: linear-gradient(rgba(45, 36, 29, 0.05), rgba(45, 36, 29, 0.05)), url("https://images.unsplash.com/photo-1608198093002-ad4e005484ec?auto=format&fit=crop&w=1200&q=80");
}

.card-content {
  padding: 28px;
}

.card-content p {
  margin: 14px 0 0;
  color: #604936;
}

.about {
  background: #efe0c4;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-copy {
  padding-top: 4px;
}

.about-copy p:first-child {
  margin-top: 0;
}

.orders {
  background:
    linear-gradient(90deg, rgba(91, 50, 24, 0.92), rgba(91, 50, 24, 0.82)),
    url("https://images.unsplash.com/photo-1568254183919-78a4f43a2877?auto=format&fit=crop&w=1600&q=80") center / cover;
  color: var(--white);
}

.orders h2,
.orders .eyebrow {
  color: var(--white);
}

.orders .eyebrow {
  color: var(--wheat);
}

.orders-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
}

.orders-box p {
  color: rgba(255, 255, 255, 0.86);
}

.orders-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.phone-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  color: var(--white);
  font-weight: 800;
  border-bottom: 2px solid var(--wheat);
}

.contact {
  background: var(--flour);
}

.map-wide {
  width: 100%;
  height: clamp(300px, 38vw, 460px);
  overflow: hidden;
  border-top: 1px solid rgba(91, 50, 24, 0.12);
  border-bottom: 1px solid rgba(91, 50, 24, 0.12);
}

.map-wide iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-layout {
  display: block;
  padding: 76px 0 88px;
}

.contact-info {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

address {
  margin: 22px 0;
  color: #604936;
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 2px;
}

.contact-list span {
  color: var(--crust);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list a {
  color: var(--oven);
  font-weight: 800;
}

.site-footer {
  padding: 32px 0;
  color: rgba(255, 248, 234, 0.86);
  background: var(--charcoal);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-credit a {
  color: var(--wheat);
  font-weight: 800;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: var(--crumb);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--wheat);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 25;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    background: var(--flour);
    border: 1px solid rgba(91, 50, 24, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    width: 100%;
    padding: 13px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .specialty-grid,
  .about-layout,
  .orders-box {
    grid-template-columns: 1fr;
  }

  .orders-actions {
    justify-content: flex-start;
  }

  .map-wide {
    height: 340px;
  }

  .footer-layout {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    top: 70px;
    right: 12px;
    left: 12px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding: 128px 0 70px;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding: 68px 0;
  }

  .hero-actions,
  .orders-actions {
    display: grid;
  }

  .button,
  .phone-link {
    width: 100%;
  }

  .card-image {
    min-height: 220px;
  }
}
