:root {
  /* Default Light Theme Variables */
  --bg-primary: #f8f8fa;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent-color: #005B8C;
  /* From the original site */
  --accent-hover: #00456B;
  --border-color: #e2e2e6;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --overlay: rgba(255, 255, 255, 0.2);
  --header-bg: rgba(255, 255, 255, 0.80);

  /*
   * Principal (elegante / editorial): Minion Pro (CDN).
   * Secundaria / UI: Bw Nista Grotesk local — ver assets/css/fonts-nuevas.css
   */
  --font-heading: 'Minion Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Minion Pro', Georgia, 'Times New Roman', serif;
  --font-ui: 'Bw Nista Grotesk', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Bw Nista Grotesk', system-ui, -apple-system, sans-serif;
  --transition-speed: 0.4s;
}

[data-theme="dark"] {
  /* Dark/Black & White Theme Variables */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --accent-color: #ffffff;
  --accent-hover: #cccccc;
  --border-color: #333333;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --overlay: rgba(0, 0, 0, 0.6);
  --header-bg: rgba(10, 10, 10, 0.85);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

body.hendricks-bnw-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* Campos de lectura: Minion; selectores y botones: Bw Nista (fonts-nuevas.css refuerza UI). */
body.hendricks-bnw-theme input:not([type='checkbox']):not([type='radio']),
body.hendricks-bnw-theme textarea {
  font-family: var(--font-body);
}

body.hendricks-bnw-theme select,
body.hendricks-bnw-theme button:not(.hendricks-search-open) {
  font-family: var(--font-secondary);
}

/* Elegant Scrollbar & Text Selection */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

::selection {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

ul {
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.85rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
  overflow: visible;
}

/* [ Logo ] | [ Inicio · Recetas · #Somoshendrickscl ] | [ Buscar + B/N ] */
.hendricks-header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 100%;
  min-width: 0;
}

.hendricks-header-logo-area {
  justify-self: start;
  flex-shrink: 0;
}

.hendricks-header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.hendricks-header-nav--main {
  justify-content: center;
}

.hendricks-header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem 1.25rem;
  justify-self: end;
  flex-shrink: 0;
}

/* Botón lupa + “Buscar” junto al switch */
.hendricks-search-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hendricks-search-open:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.hendricks-search-open:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.hendricks-search-open__icon {
  font-size: 1rem;
  line-height: 1;
}

.hendricks-search-open__label {
  font-family: var(--font-body);
}

.theme-label {
  font-family: var(--font-body);
}

/* Buscador modal: todo Minion (sobreescribe botón/select del tema) */
.hendricks-search-modal .hendricks-search-modal__form-wrap input,
.hendricks-search-modal .hendricks-search-modal__form-wrap select,
.hendricks-search-modal .hendricks-search-modal__form-wrap button {
  font-family: var(--font-body);
}

.main-nav a {
  font-family: var(--font-body);
}

.hendricks-qcart-search input,
.hendricks-qcart-search select,
.hendricks-qcart-search button {
  font-family: var(--font-body);
}

/* Modal búsqueda */
body.hendricks-search-modal-open {
  overflow: hidden;
}

.hendricks-search-modal {
  position: fixed;
  inset: 0;
  /* Por encima de header, menús, skip link y otros overlays del tema */
  z-index: 200050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hendricks-search-modal[hidden] {
  display: none !important;
}

.hendricks-search-modal:not([hidden]) {
  display: flex !important;
}

.hendricks-search-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hendricks-search-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Capa completa: oscurece y difumina todo lo que hay detrás */
  background:
    radial-gradient(ellipse 140% 120% at 50% 40%, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0.92) 100%),
    rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.hendricks-search-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 26rem;
  margin: auto;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.12),
    0 24px 72px rgba(0, 0, 0, 0.35);
  transform: translateY(22px) scale(0.94);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  max-height: min(90vh, calc(100dvh - 2.5rem));
  overflow: auto;
  overscroll-behavior: contain;
}

.hendricks-search-modal--open .hendricks-search-modal__dialog {
  transform: translateY(0) scale(1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 28px 80px rgba(0, 0, 0, 0.42);
}

[data-theme="dark"] .hendricks-search-modal__dialog {
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 28px 80px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .hendricks-search-modal--open .hendricks-search-modal__dialog {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 32px 96px rgba(0, 0, 0, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .hendricks-search-modal {
    transition-duration: 0.01ms;
  }

  .hendricks-search-modal__dialog {
    transition-duration: 0.01ms;
    transform: none;
  }

  .hendricks-search-modal--open .hendricks-search-modal__dialog {
    transform: none;
  }
}

.hendricks-search-modal__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hendricks-search-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.hendricks-search-modal__close:hover {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.hendricks-search-modal__form-wrap .custom-search-form-container {
  margin: 0;
  width: 100%;
}

.hendricks-search-modal__form-wrap #searchform {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hendricks-search-modal__form-wrap #searchform:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.hendricks-search-modal__form-wrap .search-category-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  border: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;
  background-color: transparent;
  color: var(--text-primary);
  padding: 0.55rem 1.75rem 0.55rem 0.95rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 1 1 100%;
  width: 100%;
  max-width: none;
  box-shadow: none !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 0.75rem) 50%, calc(100% - 0.55rem) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

[data-theme="dark"] .hendricks-search-modal__form-wrap .search-category-select {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.hendricks-search-modal__form-wrap .search-category-select:focus,
.hendricks-search-modal__form-wrap .search-category-select:focus-visible {
  outline: none !important;
}

.hendricks-search-modal__form-wrap .search-field {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.hendricks-search-modal__form-wrap .search-field::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}

.hendricks-search-modal__form-wrap .search-field:focus {
  outline: none;
}

.hendricks-search-modal__form-wrap .search-submit,
.hendricks-search-submit {
  font-family: var(--font-body);
  margin: 0;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  background: var(--accent-color);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hendricks-search-modal__form-wrap .search-submit:hover,
.hendricks-search-submit:hover {
  background: var(--accent-hover);
}

[data-theme="dark"] .hendricks-search-modal__form-wrap .search-submit,
[data-theme="dark"] .hendricks-search-submit {
  color: #0a0a0a;
}

@media (min-width: 480px) {
  .hendricks-search-modal__form-wrap #searchform {
    flex-wrap: nowrap;
    border-radius: 999px;
  }

  .hendricks-search-modal__form-wrap .search-category-select {
    flex: 0 1 10rem;
    width: auto;
    max-width: 11rem;
    border-bottom: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  [data-theme="dark"] .hendricks-search-modal__form-wrap .search-category-select {
    border-right-color: rgba(255, 255, 255, 0.12) !important;
  }
}

/* Escritorio: lightbox a pantalla completa + panel de búsqueda ancho y centrado */
@media (min-width: 769px) {
  .hendricks-search-modal {
    padding: clamp(1.5rem, 4vw, 3rem);
  }

  .hendricks-search-modal__dialog {
    max-width: min(44rem, 92vw);
    padding: 2.75rem 3rem 2.5rem;
    border-radius: 22px;
  }

  .hendricks-search-modal__title {
    font-size: 1.55rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.65rem;
  }

  .hendricks-search-modal__form-wrap #searchform {
    min-height: 3.25rem;
  }

  .hendricks-search-modal__form-wrap .search-field {
    font-size: 1.05rem;
    padding: 0.85rem 1.35rem;
  }

  .hendricks-search-modal__form-wrap .search-category-select {
    flex: 0 1 13rem;
    max-width: 14rem;
    font-size: 0.78rem;
    padding: 0.65rem 1.85rem 0.65rem 1.1rem;
  }

  .hendricks-search-modal__form-wrap .search-submit,
  .hendricks-search-submit {
    padding: 0.75rem 1.65rem;
    font-size: 0.8rem;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo img,
.logo .custom-logo {
  max-height: 50px;
  width: auto;
  height: auto;
  transition: filter var(--transition-speed) ease;
}

[data-theme="dark"] .logo img,
[data-theme="dark"] .logo .custom-logo {
  filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1))
          drop-shadow(0px 0px 10px rgba(255, 255, 255, 1))
          drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.8));
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

[data-theme="dark"] .main-nav a:hover::after {
  background-color: #fff;
}

/* Theme Toggle Slider */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-switch input,
.site-header .theme-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  border: none;
  box-shadow: none;
  background: transparent;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-primary);
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: var(--bg-primary);
  transition: .4s;
  z-index: 2;
}

.icon {
  font-size: 14px;
  color: var(--bg-primary);
  z-index: 1;
}

input:checked+.slider {
  background-color: #fff;
}

input:checked+.slider .icon {
  color: #000;
}

input:checked+.slider:before {
  transform: translateX(30px);
  background-color: #000;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

/* Added crossfade class to handle smooth transitions when src changes */
.hero-image.fade-out {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  transition: background var(--transition-speed) ease;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ffffff;
  /* Strong dark glow for light mode backgrounds */
  text-shadow:
    0 0 5px rgba(0, 0, 0, 1),
    0 0 15px rgba(0, 0, 0, 1),
    0 0 25px rgba(0, 0, 0, 0.9),
    0 4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

[data-theme="dark"] .hero-title {
  /* Keep strong glow in dark mode too */
  text-shadow:
    0 0 5px rgba(0, 0, 0, 1),
    0 0 15px rgba(0, 0, 0, 1),
    0 0 30px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  color: #ffffff;
  /* Strong dark glow similar to title */
  text-shadow:
    0 0 4px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

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

.cta-button {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

.cta-button:hover {
  transform: translateY(-3px);
  background-color: var(--accent-hover);
}

[data-theme="dark"] .cta-button {
  color: #000;
}

/* Recipes Section */
.recipes {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--text-primary);
}

/* Resultados de búsqueda: título centrado en el ancho útil (sin left/transform del .section-title inline-block) */
.hendricks-search-results-header {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hendricks-search-results-header .section-title {
  display: block;
  left: auto;
  transform: none;
  margin-left: auto;
  margin-right: auto;
}

/* Misma anchura que qcart (18rem) + altura imagen 12rem */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 18rem);
  justify-content: center;
  gap: 2rem 1.5rem;
  align-items: stretch;
}

@media (max-width: 520px) {
  .recipe-grid {
    grid-template-columns: minmax(0, 18rem);
  }
}

.recipe-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 18rem;
  justify-self: center;
  min-height: 0;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color var(--transition-speed) ease;
  border: 1px solid var(--border-color);
}

.recipe-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.recipe-card__link:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.recipe-card:hover,
.recipe-card__link:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .recipe-card:hover,
[data-theme="dark"] .recipe-card__link:hover {
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
}

.card-image-wrapper {
  height: 12rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.5s ease-in-out;
}

.recipe-card:hover .card-image,
.recipe-card__link:hover .card-image {
  transform: scale(1.05);
}

.card-image.fade-out {
  opacity: 0;
}

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.card-content h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
}

.read-more span {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.recipe-card:hover .read-more span,
.recipe-card__link:hover .read-more span {
  transform: translateX(5px);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
    gap: 0.45rem;
  }

  .hendricks-header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.75rem;
  }

  /* En móvil el menú qcart va al nav inferior; la columna central no aporta */
  .hendricks-header-nav {
    display: none;
  }

  .hendricks-search-open__label {
    display: none;
  }

  .hendricks-search-open {
    padding: 0.45rem;
  }

  .theme-label {
    display: none; /* Oculta el texto en celular para ahorrar espacio */
  }

  .main-nav {
    display: none; /* Ocultar menú en celular */
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    height: auto;
    min-height: 60vh;
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* =========================================
   Internal Recipe Page Styles
   ========================================= */

.recipe-internal-page .site-header {
  background-color: var(--header-bg);
}

.recipe-hero {
  display: flex;
  flex-direction: column;
  margin-top: 5rem;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media(min-width: 900px) {
  .recipe-hero {
    flex-direction: row;
    align-items: center;
    min-height: 60vh;
  }
}

.recipe-hero-image-col {
  position: relative;
  width: 100%;
  height: 40vh;
}

@media(min-width: 900px) {
  .recipe-hero-image-col {
    width: 50%;
    flex: 0 1 50%;
    min-width: 0;
    height: 60vh;
    padding: 3rem;
  }
}

.recipe-hero-img-frame {
  border: none;
  margin: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
  height: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.recipe-hero-img-frame:hover {
  box-shadow: var(--card-shadow), 0 0 0 1px var(--border-color);
}

.recipe-hero-img-frame:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.recipe-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

.recipe-hero-img.fade-out {
  opacity: 0;
}

.recipe-hero-image-col--video {
  height: auto;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

@media (min-width: 900px) {
  .recipe-hero-image-col--video {
    width: 42%;
    max-width: 480px;
    min-height: 60vh;
    padding: 2rem;
  }
}

.recipe-hero-video-wrap {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

@media (min-width: 900px) {
  .recipe-hero-video-wrap {
    max-width: 380px;
  }
}

.recipe-hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.recipe-hero-media-fallback {
  width: 100%;
  min-height: 280px;
  height: 100%;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
  box-shadow: var(--card-shadow);
}

.hendricks-recipe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hendricks-recipe-lightbox[hidden] {
  display: none !important;
}

.hendricks-recipe-lightbox:not([hidden]) {
  display: flex !important;
}

.hendricks-recipe-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.hendricks-recipe-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hendricks-recipe-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.recipe-hero-text-col {
  padding: 3rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media(min-width: 900px) {
  .recipe-hero-text-col {
    width: 50%;
    flex: 1 1 50%;
    min-width: 0;
    padding: 4rem;
  }

  .recipe-hero-image-col--video ~ .recipe-hero-text-col {
    width: auto;
    flex: 1 1 58%;
  }
}

.recipe-hero-text-col .recipe-category {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: inline-block;
  color: var(--accent-color);
  border-bottom: 2px solid var(--text-primary);
  padding-bottom: 5px;
}

.recipe-hero-text-col .recipe-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-shadow: none;
  /* Removing the black stroke since it's on a solid bg now */
}

@media(min-width: 900px) {
  .recipe-hero-text-col .recipe-title {
    font-size: 4.5rem;
  }
}

.recipe-hero-text-col .recipe-description {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-shadow: none;
}

.recipe-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Misma idea que qcart single: más entradas de la(s) categoría(s) actual(es) */
.hendricks-related-recipes {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid var(--border-color);
}

.hendricks-related-recipes .hendricks-related-recipes__title.section-title {
  display: block;
  left: auto;
  transform: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hendricks-related-recipes__grid {
  justify-content: center;
  text-align: left;
}

.recipe-columns-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="dark"] .recipe-columns-panel {
  background: rgba(20, 20, 20, 0.94);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .recipe-columns-panel {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }
}

.recipe-columns-panel--single {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.recipe-columns-panel .recipe-panel-notice {
  background: var(--bg-primary);
}

.recipe-content-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.recipe-content-grid--single {
  max-width: 900px;
  margin: 0 auto;
}

.recipe-content-grid--single .recipe-main {
  width: 100%;
  padding-left: 0;
  border: none;
}

@media(min-width: 900px) {
  .recipe-content-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .recipe-sidebar {
    flex: 1;
    width: 50%;
    max-width: none;
    border-right: 1px solid var(--border-color);
    padding-right: 3rem;
  }

  .recipe-main {
    flex: 1;
    width: 50%;
    max-width: none;
    padding-left: 3rem;
  }
}

.recipe-intro {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.recipe-intro p:last-child {
  margin-bottom: 0;
}

.recipe-panel-notice {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.ingredients-title,
.preparation-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.ingredients-title::after,
.preparation-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--text-primary);
}

.ingredients-list {
  list-style: none;
}

.ingredients-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.ingredients-list li:last-child {
  border-bottom: none;
}

/* Ingredientes / preparación: cuerpo con fuente secundaria (fonts-nuevas / Bw Nista) */
.recipe-ingredients-plain,
.preparation-plain.preparacion-qcart,
.preparation-steps--plain .preparation-plain {
  font-family: var(--font-secondary);
}

.recipe-ingredients-plain {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.preparation-steps--plain > .preparation-plain {
  padding-left: 0;
  margin-bottom: 0;
}

/* Párrafos dentro del contenido de preparación: sin viñeta • del layout genérico */
.preparation-steps--plain .preparation-plain p {
  padding-left: 0;
  margin-bottom: 1rem;
  position: relative;
}

.preparation-steps--plain .preparation-plain p:last-child {
  margin-bottom: 0;
}

.preparation-steps--plain .preparation-plain p::before {
  content: none;
}

/* Separadores entre pasos (reemplazo de <br> como en qcart) */
.preparation-plain .hendricks-prep-step-sep,
.preparacion-qcart .hendricks-prep-step-sep {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.75rem 0;
  padding: 0;
  height: 0;
  opacity: 0.9;
}

.preparation-steps p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.preparation-steps p::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.preparation-steps ul {
  margin: 0 0 1.25rem 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
}

.preparation-steps ol {
  margin: 0 0 1.25rem 1.25rem;
  padding-left: 1.35rem;
  list-style: decimal;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
}

.preparation-steps li {
  margin-bottom: 0.5rem;
}

.preparation-steps img,
.preparation-steps video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.recipe-video-container {
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

/* Background Branding Shapes - Creative Layout */
.bg-branding {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  transition: opacity 0.5s ease-in-out, filter 0.5s ease;
}

.bg-shape.fade-out {
  opacity: 0 !important;
}

/* Shape 1: Clouds (Mirrored, Top Right) */
.shape-1 {
  top: 2%;
  right: -5%;
  width: 500px;
  opacity: 0.5;
  animation: floatMirrored 18s ease-in-out infinite;
}

/* Shape 2: Flowers (Large, Mid Left, Overlapping edge) */
.shape-2 {
  top: 30%;
  left: -8%;
  width: 380px;
  opacity: 0.6;
  animation: floatNormal 14s ease-in-out infinite alternate;
}

/* Shape 3: Branches (Coming from Bottom Left) */
.shape-3 {
  bottom: -10%;
  left: 5%;
  width: 350px;
  opacity: 0.7;
  animation: floatNormalTilt 16s ease-in-out infinite alternate-reverse;
}

/* Shape 4: Mountains (Large, Bottom Right) */
.shape-4 {
  bottom: -8%;
  right: -5%;
  width: 600px;
  opacity: 0.4;
  animation: floatStatic 22s ease-in-out infinite alternate;
}

/* Shape 5: Distant Clouds (Left, blurred for depth) */
.shape-5 {
  top: 15%;
  left: 10%;
  width: 250px;
  opacity: 0.25;
  filter: blur(4px);
  animation: floatNormal 25s ease-in-out infinite reverse;
}

/* Shape 6: Distant Branches (Right, blurred, mirrored) */
.shape-6 {
  top: 55%;
  right: 15%;
  width: 200px;
  opacity: 0.2;
  filter: blur(3px);
  animation: floatMirroredTilt 20s ease-in-out infinite alternate;
}

/* Keyframes for Organic Movement */
@keyframes floatNormal {
  0% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-30px) rotate(0deg); }
  100% { transform: translateY(0) rotate(5deg); }
}

@keyframes floatNormalTilt {
  0% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-20px) rotate(-8deg); }
  100% { transform: translateY(0) rotate(-15deg); }
}

@keyframes floatStatic {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes floatMirrored {
  0% { transform: scaleX(-1) translateY(0) rotate(5deg); }
  50% { transform: scaleX(-1) translateY(-30px) rotate(10deg); }
  100% { transform: scaleX(-1) translateY(0) rotate(5deg); }
}

@keyframes floatMirroredTilt {
  0% { transform: scaleX(-1) translateY(0) rotate(-20deg); }
  50% { transform: scaleX(-1) translateY(-25px) rotate(-10deg); }
  100% { transform: scaleX(-1) translateY(0) rotate(-20deg); }
}

.content-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Cucumbers */
.recipe-detail {
  position: relative;
  overflow: hidden;
}

.floating-cucumber {
  position: absolute;
  z-index: 0;
  width: 150px;
  opacity: 0.8;
  pointer-events: none;
  transition: filter 0.5s ease-in-out;
}

[data-theme="dark"] .floating-cucumber {
  filter: drop-shadow(-2px -2px 0px #fff) drop-shadow(2px -2px 0px #fff) drop-shadow(2px 2px 0px #fff) drop-shadow(-2px 2px 0px #fff);
  opacity: 0.9;
}

.cucumber-1 {
  top: 60vh;
  /* Just below hero */
  right: 5%;
  transform: rotate(-15deg);
  animation: floatCucumber 4s ease-in-out infinite;
}

.cucumber-2 {
  bottom: 10%;
  left: 5%;
  transform: rotate(25deg);
  animation: floatCucumber2 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes floatCucumber {
  0% {
    transform: translateY(0px) rotate(-15deg);
  }

  50% {
    transform: translateY(-30px) rotate(-5deg);
  }

  100% {
    transform: translateY(0px) rotate(-15deg);
  }
}

@keyframes floatCucumber2 {
  0% {
    transform: translateY(0px) rotate(25deg);
  }

  50% {
    transform: translateY(-30px) rotate(15deg);
  }

  100% {
    transform: translateY(0px) rotate(25deg);
  }
}

/* WordPress compatibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--bg-secondary);
  clip: auto !important;
  clip-path: none;
  color: var(--text-primary);
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 16px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100001;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.entry-content {
  max-width: 100%;
}

.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
}

.recipe-main--full {
  width: 100% !important;
  padding-left: 0 !important;
  border: none !important;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  background: var(--header-bg);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0;
  min-width: 12rem;
  z-index: 1001;
}

.main-nav li {
  position: relative;
}

.main-nav li:hover > .sub-menu {
  display: block;
}

.main-nav .sub-menu li {
  display: block;
}

.main-nav .sub-menu a {
  display: block;
  padding: 0.35rem 1rem;
}

/* Scroll infinito */
.hendricks-infinite-loader {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 2rem auto 3rem;
  min-height: 1.5rem;
}

.hendricks-infinite-end .hendricks-infinite-loader {
  display: none;
}

.hendricks-infinite-grid.hendricks-infinite-end + .hendricks-infinite-loader,
.hendricks-infinite-grid + .hendricks-infinite-loader.hendricks-infinite-done {
  margin-bottom: 1rem;
}

/* ——— Qcart compat: banners, menú custom, búsqueda, RRSS ——— */
.hendricks-banner-region {
  margin-top: 5.25rem;
}

.hendricks-banner-region .swiper {
  padding-top: 10px;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.hendricks-banner-region .swiper-slide {
  text-align: center;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hendricks-banner-region .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hendricks-qcart-desktop-menu {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1001;
}

.hendricks-unified-custom-nav nav.custom-menu,
nav.hendricks-unified-custom-nav.custom-menu {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.hendricks-unified-custom-nav .custom-menu,
nav.hendricks-unified-custom-nav.custom-menu {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.hendricks-unified-custom-nav .custom-menu > ul,
nav.hendricks-unified-custom-nav.custom-menu > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: center;
  align-items: center;
}

.hendricks-unified-custom-nav .custom-menu li,
nav.hendricks-unified-custom-nav.custom-menu li {
  margin: 0;
  position: relative;
}

.hendricks-unified-custom-nav .custom-menu a,
nav.hendricks-unified-custom-nav.custom-menu a {
  text-decoration: none;
  position: relative;
  padding: 2px 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.hendricks-unified-custom-nav .custom-menu a:hover,
nav.hendricks-unified-custom-nav.custom-menu a:hover {
  color: var(--accent-color);
}

.hendricks-unified-custom-nav .custom-menu .dropdown,
nav.hendricks-unified-custom-nav.custom-menu .dropdown {
  display: none;
  position: absolute;
  background: var(--bg-secondary);
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  top: 100%;
  left: 0;
  z-index: 1002;
  min-width: 12rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  padding: 0.5rem 0;
}

.hendricks-unified-custom-nav .custom-menu .has-dropdown:hover .dropdown,
.hendricks-unified-custom-nav .custom-menu .has-dropdown:focus-within .dropdown,
nav.hendricks-unified-custom-nav.custom-menu .has-dropdown:hover .dropdown,
nav.hendricks-unified-custom-nav.custom-menu .has-dropdown:focus-within .dropdown {
  display: block;
}

.hendricks-unified-custom-nav .custom-menu .dropdown li,
nav.hendricks-unified-custom-nav.custom-menu .dropdown li {
  padding: 0.35rem 1rem;
  white-space: nowrap;
}

.hendricks-unified-custom-nav .custom-menu .dropdown li a,
nav.hendricks-unified-custom-nav.custom-menu .dropdown li a {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
}

.hendricks-wp-nav-mobile {
  display: none !important;
}

.hendricks-qcart-desktop-menu .menu-toggle {
  display: none;
}

.hendricks-qcart-search {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.hendricks-qcart-search .custom-search-form-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hendricks-qcart-search #searchform {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.hendricks-qcart-search .search-category-select {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  min-width: 11rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none !important;
  outline: none;
}

.hendricks-qcart-search .search-category-select:focus,
.hendricks-qcart-search .search-category-select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--border-color) !important;
}

.hendricks-qcart-search .search-field {
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  min-width: 14rem;
}

.hendricks-qcart-search .search-submit {
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: var(--accent-color);
  color: var(--bg-primary);
  font-weight: 600;
}

[data-theme="dark"] .hendricks-qcart-search .search-submit {
  color: #0a0a0a;
}

.hendricks-footer-rrss {
  margin-bottom: 1.5rem;
}

.hendricks-footer-rrss .redes-sociales-flotantes {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

@media screen and (min-width: 769px) {
  .hendricks-wp-nav-mobile {
    display: none !important;
  }

  .hendricks-unified-custom-nav .custom-menu > ul,
  nav.hendricks-unified-custom-nav.custom-menu > ul {
    flex-wrap: nowrap;
  }
}

@media screen and (max-width: 768px) {
  .hendricks-qcart-desktop-menu {
    display: none !important;
  }

  .hendricks-wp-nav-mobile {
    display: block !important;
  }

  .site-header nav.hendricks-wp-nav-mobile.hendricks-unified-custom-nav {
    margin-top: 0.5rem;
  }

  .hendricks-wp-nav-mobile ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .hendricks-wp-nav-mobile a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-decoration: none;
  }

  .swiper.banner.desktop {
    display: none;
  }

  .swiper.banner.mobile {
    border-bottom: 1px solid var(--border-color);
  }
}

@media screen and (min-width: 769px) {
  .swiper.banner.mobile {
    display: none;
  }
}

/* Qcart: #qcart-ad-top siempre apariencia clara (no heredar modo oscuro del tema). */
#qcart-ad-top {
  border-radius:30px;
  color-scheme: light;
  isolation: isolate;
}

[data-theme="dark"] #qcart-ad-top {
  background-color: #ffffff !important;
  color: #333333 !important;
  border-color: #e2e2e6 !important;
  box-shadow: none !important;
}

[data-theme="dark"] #qcart-ad-top a {
  color: #005b8c !important;
}

[data-theme="dark"] #qcart-ad-top img,
[data-theme="dark"] #qcart-ad-top video,
[data-theme="dark"] #qcart-ad-top iframe,
[data-theme="dark"] #qcart-ad-top svg {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
