/* =========================================================
   PASTELERÍA PAN FELIZ — styles.css
   Paleta 60-30-10 · Tipografía editorial · Mobile-first
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* 60% — Base */
  --bg: #FAF9F6;
  --bg-warm: #F3EDE5;
  --surface: #FFFFFF;

  /* 30% — Secundario */
  --brown: #5D4037;
  --brown-soft: #756459;
  --ink: #3E2723;

  /* 10% — Acento (SOLO botones de conversión) */
  --accent: #C94F00;
  --accent-dark: #A94200;

  /* Soporte */
  --gold: #F5B942;
  --line: rgba(93, 64, 55, 0.14);
  --line-soft: rgba(93, 64, 55, 0.08);
  --shadow-soft: 0 20px 45px -28px rgba(62, 39, 35, 0.35);
  --shadow-card: 0 14px 30px -22px rgba(62, 39, 35, 0.4);

  /* Tipografía */
  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  /* Medidas */
  --nav-h: 78px;
  --radius: 20px;
  --max-w: 1180px;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(211, 84, 0, 0.18);
}

:focus-visible {
  outline: 3px solid rgba(93, 64, 55, 0.45);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 14px);
}

/* ---------- 3. Utilidades ---------- */
.section {
  padding: 100px 0;
}

.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.8rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0;
  color: var(--brown-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 14px 30px -12px rgba(211, 84, 0, 0.55);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(211, 84, 0, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF8EF;
  border-color: rgba(255, 248, 239, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: rgba(93, 64, 55, 0.35);
}

.btn-outline:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ---------- 5. Navbar (glassmorphism) ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(93, 64, 55, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(250, 249, 246, 0.94);
  border-bottom-color: rgba(93, 64, 55, 0.12);
  box-shadow: 0 10px 32px -20px rgba(62, 39, 35, 0.45);
}

.nav-inner {
  max-width: var(--max-w);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo small {
  margin-top: 0.38rem;
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.68rem 1.35rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brown);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2B1A12;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 26, 18, 0.6) 0%,
    rgba(43, 26, 18, 0.3) 42%,
    rgba(43, 26, 18, 0.74) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 150px 24px 96px;
}

.hero-eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #F3CE9A;
}

.hero h1 {
  max-width: 14ch;
  margin: 0 0 1.4rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #FFF8EF;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #F3CE9A;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 0 1.7rem;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255, 248, 239, 0.9);
}

.hero-social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  margin-bottom: 2rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(255, 248, 239, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #FFF8EF;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.hero-social:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-social strong {
  font-weight: 700;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.hero-micro {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 239, 0.72);
}

/* ---------- 7. Especialidades / tarjetas ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
}

.tab-btn {
  padding: 0.55rem 1.25rem;
  border: 1px solid rgba(93, 64, 55, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--brown-soft);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.tab-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.tab-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--bg);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 45px -28px rgba(62, 39, 35, 0.5);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EFE7DD;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media img {
  transition: transform 0.55s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.35rem 1.4rem;
}

.card-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
}

.card-body p {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--brown-soft);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.precio {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.precio.consultar {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(93, 64, 55, 0.07);
  color: var(--brown-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-card.is-hidden {
  display: none;
}

.product-card.card-in {
  animation: cardIn 0.45s ease both;
  animation-delay: var(--card-delay, 0ms);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.precios-note {
  margin: 1.6rem 0 0;
  font-size: 0.8rem;
  color: var(--brown-soft);
}

/* ---------- 8. El Obrador ---------- */
.obrador {
  background: var(--bg-warm);
}

.obrador-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.obrador-media {
  position: relative;
  padding: 0 2rem 2.5rem 0;
}

.obrador-img-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.obrador-img-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid var(--bg-warm);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.obrador-text p {
  margin: 0 0 1rem;
  color: var(--brown-soft);
  line-height: 1.75;
}

.obrador-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.obrador-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--brown);
  font-size: 0.95rem;
  line-height: 1.55;
}

.obrador-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brown);
}

/* ---------- 9. Banda editorial ---------- */
.quote-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
  background: var(--ink);
}

.quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.5px);
  transform: scale(1.03);
  opacity: 0.55;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 26, 18, 0.72) 0%,
    rgba(43, 26, 18, 0.84) 100%
  );
}

.quote-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 4rem 24px;
  text-align: center;
}

.quote-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E8C48F;
}

.quote-text {
  margin: 0 0 0.8rem;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  color: #FFF8EF;
}

.quote-sub {
  margin: 0;
  color: rgba(255, 248, 239, 0.78);
  font-size: 0.95rem;
}

/* ---------- 10. Reseñas ---------- */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2.4rem;
}

.rating-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.3rem;
  background: var(--surface);
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.rating-score {
  font-family: var(--font-title);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}

.rating-meta {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--brown-soft);
}

.rating-meta strong {
  display: block;
  font-size: 0.86rem;
  color: var(--brown);
}

.resenas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.resena-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.resena-card::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  right: 1.2rem;
  font-family: var(--font-title);
  font-size: 4rem;
  line-height: 1;
  color: rgba(93, 64, 55, 0.12);
}

.resena-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

.resena-text {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--brown);
}

.resena-author {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-soft);
}

/* ---------- 11. Encargos / formulario ---------- */
.encargos {
  background: var(--bg-warm);
}

.encargos-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: start;
}

.encargos-info > p {
  color: var(--brown-soft);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.6;
}

.contact-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brown);
}

.contact-list a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wa-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wa-direct svg {
  width: 17px;
  height: 17px;
}

.form-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.form-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.form-card > p {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--brown-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field.is-hidden {
  display: none;
}

.form-field.is-revealed {
  animation: fieldIn 0.3s ease both;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown);
}

@keyframes fieldIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field-hint {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--brown-soft);
}

.field-error {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  color: #B23A2E;
  min-height: 0;
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: #B23A2E;
  box-shadow: 0 0 0 3px rgba(178, 58, 46, 0.1);
}

.form-field.valid input,
.form-field.valid select,
.form-field.valid textarea {
  border-color: rgba(93, 64, 55, 0.55);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(93, 64, 55, 0.22);
  border-radius: 12px;
  background: #FDFCFA;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(122, 106, 94, 0.65);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.12);
}

.form-field textarea {
  min-height: 88px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.3rem;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  margin: 0.8rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
  color: var(--brown-soft);
}

.form-note a {
  color: var(--brown);
}

/* ---------- 12. Ubicación ---------- */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
}

.ubicacion-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.ubicacion-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

.ubicacion-address {
  margin: 0;
  color: var(--brown-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.horario-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--brown);
}

.horario-line span:last-child {
  font-weight: 700;
  color: var(--ink);
}

.small-note {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--brown-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(93, 64, 55, 0.08);
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ubicacion-btn {
  margin-top: 1.4rem;
  padding: 0.8rem 1.5rem;
}

.ubicacion-tel {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--brown-soft);
}

.ubicacion-tel a {
  color: var(--brown);
  font-weight: 700;
}

.map-wrap {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(93, 64, 55, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* ---------- 13. FAQ ---------- */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(93, 64, 55, 0.15);
}

.faq-question {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.3rem 2.5rem 1.3rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brown-soft);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--brown);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 2rem 1.4rem 0;
  color: var(--brown-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- 14. Footer ---------- */
.footer {
  padding: 4.5rem 0 1.5rem;
  background: var(--ink);
  color: rgba(250, 249, 246, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 249, 246, 0.12);
}

.footer-logo {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 600;
  color: #FFF8EF;
}

.footer p {
  max-width: 340px;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-note {
  color: rgba(232, 196, 143, 0.9);
  font-family: var(--font-title);
  font-style: italic;
}

.footer h3 {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.55);
}

.footer ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.footer a {
  color: rgba(250, 249, 246, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(250, 249, 246, 0.62);
}

/* ---------- 15. Barra móvil fija ---------- */
.mobile-bar {
  display: none;
}

/* ---------- 16. Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(250, 249, 246, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(62, 39, 35, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .navbar.open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a:not(.btn) {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(93, 64, 55, 0.08);
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-links a:not(.btn):last-of-type {
    border-bottom: 0;
  }

  .nav-cta {
    margin-top: 0.75rem;
    padding: 0.9rem 1.35rem;
    text-align: center;
  }

  .obrador-grid,
  .encargos-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ubicacion-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 78px;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(250, 249, 246, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(93, 64, 55, 0.12);
    box-shadow: 0 -10px 30px -20px rgba(62, 39, 35, 0.5);
  }

  .mobile-bar .btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .mobile-bar .btn-outline {
    background: var(--surface);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 120px 20px 80px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-inner {
    padding: 0 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .card-body {
    padding: 0.9rem 0.85rem 1rem;
  }

  .card-body h3 {
    font-size: 1rem;
  }

  .card-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.78rem;
  }

  .precio.consultar {
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
  }

  .obrador-media {
    padding: 0 1.4rem 2rem 0;
  }

  .obrador-img-accent {
    width: 46%;
    border-width: 6px;
  }

  .resenas-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .ubicacion-card {
    padding: 1.5rem;
  }

  .rating-summary {
    gap: 0.7rem;
  }
}

/* ---------- 18. Accesibilidad de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
