/* ============================================================
   Katyca Bakery — landing v2
   Estética editorial de panadería premium. Elegancia por
   tipografía y espacio, no por efectos.
   ============================================================ */

:root {
  --shell: #FDF6EC;
  --peach: #F3C79B;
  --rose: #B0787E;
  --burgundy: #4A1220;
  --berry: #A8202E;
  --blueberry: #44527C;
  --crust: #C99A4E;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --rule: 1px solid rgba(176, 120, 126, 0.35);
  --section-pad: clamp(4rem, 8vw, 7rem);
  --max-width: 72rem;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--shell);
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

:focus-visible {
  outline: 2px solid var(--blueberry);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--burgundy);
  color: var(--shell);
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Marcas tipográficas ---------- */

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--rose);
  margin-bottom: 1.25rem;
}

.eyebrow-crust {
  color: var(--crust);
}

.eyebrow-burgundy {
  color: var(--burgundy);
}

.eyebrow-shell {
  color: var(--shell);
}

.text-link {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 0.25em;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.text-link:hover {
  color: var(--berry);
  text-decoration-color: var(--berry);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--berry);
  color: var(--shell);
}

.btn-primary:hover {
  background-color: #8f1a26;
}

.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1rem;
}

.icon {
  flex-shrink: 0;
}

/* ---------- Marcos circulares ---------- */

.photo-circle {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--crust);
  background-color: var(--shell);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(253, 246, 236, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--burgundy);
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--crust);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
}

.nav-links a {
  color: var(--burgundy);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--berry);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.header-cta {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .brand-name {
    display: none;
  }

  .header-cta-label {
    font-size: 0.82rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy .eyebrow {
  color: var(--crust);
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: min(100%, 30rem);
  aspect-ratio: 1 / 1;
  border-width: 2px;
}

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

  .hero-media {
    order: -1;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: var(--section-pad);
}

.section-rule {
  border-top: var(--rule);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  margin-bottom: 0;
}

/* ---------- Menú ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-photo {
  width: min(100%, 13rem);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.card-desc {
  font-size: 0.95rem;
  color: rgba(74, 18, 32, 0.85);
}

.prices {
  margin-top: 1.25rem;
  border-top: var(--rule);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: var(--rule);
}

.price-row dt {
  font-size: 0.9rem;
}

.price-row dd {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.card-cta {
  margin-top: auto;
  margin-top: 1.25rem;
  align-self: center;
}

/* ---------- Galería ---------- */

.gallery {
  background-color: var(--peach);
}

.gallery-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-block: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

/* En mobile la galería se desliza en horizontal; en pantallas grandes envuelve
   en varias filas para que la última foto no quede cortada. */
@media (max-width: 640px) {
  .gallery-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.gallery-item .photo-circle {
  width: clamp(8rem, 15vw, 10rem);
  aspect-ratio: 1 / 1;
  border-color: var(--burgundy);
}

/* ---------- Cómo pedir ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--crust);
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: rgba(74, 18, 32, 0.85);
}

/* ---------- Nosotros ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.about-photo {
  width: min(100%, 24rem);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.about-copy .eyebrow {
  color: var(--crust);
}

.about-copy p:not(.eyebrow) {
  max-width: 34rem;
}

@media (min-width: 860px) {
  .about-inner {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---------- Contacto ---------- */

.contact {
  background-color: var(--burgundy);
  color: var(--shell);
}

.contact h2 {
  color: var(--shell);
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  list-style: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--shell);
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 246, 236, 0.35);
  padding-bottom: 0.2rem;
}

.contact-link:hover {
  color: var(--peach);
  border-bottom-color: var(--peach);
}

.contact .contact-link:focus-visible {
  outline-color: var(--shell);
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--burgundy);
  color: var(--shell);
  border-top: 1px solid rgba(253, 246, 236, 0.25);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--crust);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(253, 246, 236, 0.85);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--shell);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--peach);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer .footer-links a:focus-visible,
.site-footer .contact-link:focus-visible {
  outline-color: var(--shell);
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Las tarjetas del menú tienen distinta cantidad de precios (3 tamaños vs 2
   porciones): igualamos alturas para que los "Pedir este" queden alineados. */
.menu-grid {
  align-items: stretch;
}

.card {
  height: 100%;
}
