/*
 Theme Name:   Olleum Child Theme
 Theme URI:    https://www.olleum.es/
 Description:  Tema hijo de Bricks para la web dedicado al mundo del aceite Olleum.es
 Author:       DinamicWebs
 Author URI:   https://DinamicWebs.com/
 Template:     bricks
 Version:      2.1
 Text Domain:  bricks
*/

/*
Theme Name: Olleum Child
Theme URI: https://www.olleum.es/
Description: Child theme de Bricks para Olleum. Reúne los estilos globales y de todas las plantillas de la migración DIVI → BRICKS.
Author: DinamicWebs.com
Author URI: https://dinamicwebs.com/
Template: bricks
Version: 1.0.0
Text Domain: olleum-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ================================================================
   OLLEUM · CSS UNIFICADO PARA BRICKS
   ================================================================
   Incluye:
   - Variables y fundamentos visuales.
   - Layouts y utilidades globales.
   - Header, navegación y footer.
   - Home y hero.
   - Entradas, recetas, legales, búsqueda y 404.
   - WooCommerce y productos externos/Amazon Afiliados.
   - Componentes de afiliación, formularios y newsletter.
   - Responsive y accesibilidad.
   ================================================================ */

/* 1. VARIABLES GLOBALES
   --------------------------------------------------------------- */
:root {
  --ol-primary: #a7bd30;
  --ol-primary-hover: #b7ce3d;
  --ol-primary-dark: #7b8d1f;
  --ol-dark: #26361c;
  --ol-text: #394235;
  --ol-text-soft: #46513f;
  --ol-muted: #6f786a;
  --ol-soft: #f6f7ee;
  --ol-disclosure: #f0f3da;
  --ol-border: #e5e8d9;
  --ol-white: #ffffff;
  --ol-black: #111111;

  --ol-radius-sm: 12px;
  --ol-radius-md: 18px;
  --ol-radius-lg: 24px;
  --ol-radius-pill: 999px;

  --ol-shadow: 0 14px 36px rgba(38, 54, 28, 0.08);
  --ol-shadow-hover: 0 18px 44px rgba(38, 54, 28, 0.13);
  --ol-focus: 0 0 0 3px rgba(167, 189, 48, 0.42);

  --ol-container: 1200px;
  --ol-container-narrow: 820px;
  --ol-reading-width: 780px;
  --ol-transition: 0.2s ease;
}

/* 2. BASE, RESET Y ACCESIBILIDAD
   --------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ol-text);
  background: var(--ol-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--ol-dark);
  text-underline-offset: 0.18em;
  transition: color var(--ol-transition);
}

a:hover {
  color: var(--ol-primary-dark);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 0;
  box-shadow: var(--ol-focus);
}

::selection {
  color: var(--ol-dark);
  background: rgba(167, 189, 48, 0.4);
}

/* Evita que el header sticky oculte los anclajes. */
:where(h1, h2, h3, h4, h5, h6, [id]) {
  scroll-margin-top: 120px;
}

/* 3. SECCIONES, CONTENEDORES Y LAYOUTS
   --------------------------------------------------------------- */
.ol-section {
  padding-top: clamp(64px, 7vw, 108px);
  padding-right: 20px;
  padding-bottom: clamp(64px, 7vw, 108px);
  padding-left: 20px;
  column-gap: 32px;
  row-gap: 32px;
}

.ol-section--soft {
  background-color: var(--ol-soft);
}

.ol-section--dark {
  color: var(--ol-white);
  background-color: var(--ol-dark);
}

.ol-container,
.ol-container--narrow {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.ol-container {
  max-width: var(--ol-container);
  column-gap: 28px;
  row-gap: 28px;
}

.ol-container--narrow {
  max-width: var(--ol-container-narrow);
  column-gap: 24px;
  row-gap: 24px;
}

.ol-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 16px;
}

.ol-stack {
  display: flex;
  flex-direction: column;
  column-gap: 18px;
  row-gap: 18px;
}

.ol-grid-2,
.ol-grid-3,
.ol-grid-4 {
  display: grid;
  width: 100%;
}

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

.ol-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

.ol-divider {
  width: 100%;
  border-top: 1px solid var(--ol-border);
}

/* 4. TIPOGRAFÍA
   --------------------------------------------------------------- */
.ol-kicker {
  margin: 0;
  color: var(--ol-primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.ol-h1,
.ol-h2,
.ol-h3 {
  margin-top: 0;
  color: var(--ol-dark);
}

.ol-h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.02;
}

.ol-h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.ol-h3 {
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 750;
  line-height: 1.2;
}

.ol-lead {
  width: 100%;
  max-width: 720px;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--ol-text-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.ol-muted {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--ol-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* 5. HEADER Y NAVEGACIÓN
   --------------------------------------------------------------- */
.ol-header {
  position: sticky;
  z-index: 999;
  top: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ol-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.admin-bar .ol-header {
  top: 32px;
}

.ol-header__inner {
  display: flex;
  width: 100%;
  max-width: var(--ol-container);
  margin-right: auto;
  margin-left: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
}

.ol-logo {
  width: 210px;
  max-width: 42vw;
  flex: 0 0 auto;
}

.ol-logo img {
  width: 100%;
}

.ol-nav {
  color: var(--ol-dark);
  font-weight: 700;
}

.ol-nav a {
  padding: 0.55rem 0.25rem;
  color: inherit;
  text-decoration: none;
}

.ol-nav a:hover,
.ol-nav .current-menu-item > a,
.ol-nav .current-menu-ancestor > a {
  color: var(--ol-primary-dark);
}

/* Navegación móvil generada por Bricks. */
.ol-nav .bricks-mobile-menu-wrapper {
  background: var(--ol-white);
}

.ol-nav .bricks-mobile-menu a {
  color: var(--ol-dark);
  font-size: 18px;
  font-weight: 750;
}

/* 6. HERO Y CABECERAS VISUALES
   --------------------------------------------------------------- */
.ol-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(76px, 10vw, 150px);
  padding-right: 20px;
  padding-bottom: clamp(76px, 10vw, 150px);
  padding-left: 20px;
  background-color: var(--ol-soft);
  background-image: url("/wp-content/uploads/FondoGranja.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ol-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 247, 238, 0.92), rgba(246, 247, 238, 0.4));
}

.ol-hero > * {
  position: relative;
  z-index: 1;
}

.ol-hero__content {
  width: 100%;
  max-width: 680px;
  column-gap: 24px;
  row-gap: 24px;
}

.ol-hero__media {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.ol-hero__media img {
  filter: drop-shadow(0 22px 36px rgba(38, 54, 28, 0.15));
}

/* 7. BOTONES Y ENLACES DE ACCIÓN
   --------------------------------------------------------------- */
.ol-button,
a.ol-button,
button.ol-button {
  display: inline-flex;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--ol-radius-pill);
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--ol-transition), background-color var(--ol-transition), border-color var(--ol-transition), transform var(--ol-transition), box-shadow var(--ol-transition);
}

.ol-button--primary,
a.ol-button--primary,
button.ol-button--primary {
  color: var(--ol-dark);
  background-color: var(--ol-primary);
  font-weight: 800;
}

.ol-button--primary:hover,
.ol-button--primary:focus-visible {
  color: var(--ol-dark);
  background-color: var(--ol-primary-hover);
  transform: translateY(-2px);
}

.ol-button--secondary,
a.ol-button--secondary,
button.ol-button--secondary {
  color: var(--ol-dark);
  border: 1px solid var(--ol-primary);
  background-color: var(--ol-white);
  font-weight: 800;
}

.ol-button--secondary:hover,
.ol-button--secondary:focus-visible {
  color: var(--ol-dark);
  border-color: var(--ol-primary-hover);
  background-color: var(--ol-soft);
  transform: translateY(-2px);
}

/* 8. TARJETAS Y COMPONENTES REUTILIZABLES
   --------------------------------------------------------------- */
.ol-card {
  padding: 28px;
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius-md);
  background-color: var(--ol-white);
  box-shadow: var(--ol-shadow);
  column-gap: 16px;
  row-gap: 16px;
  transition: transform var(--ol-transition), box-shadow var(--ol-transition), border-color var(--ol-transition);
}

.ol-card:hover {
  border-color: rgba(167, 189, 48, 0.55);
  box-shadow: var(--ol-shadow-hover);
}

.ol-card:focus-within {
  outline: 3px solid rgba(167, 189, 48, 0.45);
  outline-offset: 3px;
}

.ol-card--feature {
  align-items: center;
  text-align: center;
}

.ol-card--affiliate {
  position: relative;
  overflow: hidden;
}

.ol-card--affiliate::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: var(--ol-primary);
}

.ol-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.ol-cta {
  padding: 52px 36px;
  border-radius: var(--ol-radius-lg);
  align-items: center;
  color: var(--ol-white);
  background-color: var(--ol-dark);
  text-align: center;
}

.ol-cta .ol-h1,
.ol-cta .ol-h2,
.ol-cta .ol-h3,
.ol-cta .ol-lead,
.ol-cta .ol-muted {
  color: var(--ol-white);
}

/* 9. POSTS, BLOG, ARCHIVOS Y RESULTADOS DE BÚSQUEDA
   --------------------------------------------------------------- */
.ol-posts {
  width: 100%;
}

.ol-posts .bricks-layout-wrapper,
.ol-posts .bricks-layout-inner {
  gap: 28px;
}

.ol-posts .bricks-layout-item {
  overflow: hidden;
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius-md);
  background: var(--ol-white);
  box-shadow: var(--ol-shadow);
  transition: transform var(--ol-transition), box-shadow var(--ol-transition), border-color var(--ol-transition);
}

.ol-posts .bricks-layout-item:hover {
  border-color: rgba(167, 189, 48, 0.55);
  box-shadow: var(--ol-shadow-hover);
  transform: translateY(-3px);
}

.ol-posts .image-wrapper {
  overflow: hidden;
  background: var(--ol-soft);
}

.ol-posts .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ol-posts .bricks-layout-item:hover .image-wrapper img {
  transform: scale(1.025);
}

.ol-posts .content-wrapper {
  padding: 24px;
}

.ol-posts .content-wrapper :where(h2, h3, h4) {
  color: var(--ol-dark);
}

.ol-posts .content-wrapper a {
  text-decoration: none;
}

.ol-posts .dynamic p:last-child,
.ol-posts .content-wrapper > *:last-child {
  margin-bottom: 0;
}

.bricks-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bricks-pagination li a,
.bricks-pagination li span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--ol-border);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--ol-dark);
  background: var(--ol-white);
  text-decoration: none;
}

.bricks-pagination .current,
.bricks-pagination a:hover {
  border-color: var(--ol-primary);
  background: var(--ol-primary);
}

/* 10. ARTÍCULOS, RECETAS Y CONTENIDO EDITORIAL
   --------------------------------------------------------------- */
.ol-article {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
  column-gap: 32px;
  row-gap: 32px;
}

.ol-article__header {
  width: 100%;
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 18px;
  text-align: center;
}

.ol-article__body {
  width: 100%;
  max-width: var(--ol-reading-width);
  margin-right: auto;
  margin-left: auto;
  color: var(--ol-text);
  font-size: 18px;
  line-height: 1.78;
}

.ol-article__body > *:first-child {
  margin-top: 0;
}

.ol-article__body > *:last-child {
  margin-bottom: 0;
}

.ol-article__body p,
.ol-article__body li {
  max-width: 72ch;
}

.ol-article__body h2,
.ol-article__body h3,
.ol-article__body h4 {
  color: var(--ol-dark);
  line-height: 1.2;
}

.ol-article__body h2 {
  margin-top: 1.8em;
  font-size: clamp(28px, 3vw, 42px);
}

.ol-article__body h3 {
  margin-top: 1.6em;
  font-size: clamp(23px, 2vw, 30px);
}

.ol-article__body img {
  border-radius: var(--ol-radius-md);
}

.ol-article__body figure {
  margin-right: 0;
  margin-left: 0;
}

.ol-article__body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--ol-primary);
  border-radius: 0 var(--ol-radius-sm) var(--ol-radius-sm) 0;
  color: var(--ol-dark);
  background: var(--ol-soft);
  font-size: 1.12em;
}

.ol-article__body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ol-border);
}

.ol-article__body th,
.ol-article__body td {
  padding: 12px 14px;
  border: 1px solid var(--ol-border);
  vertical-align: top;
  text-align: left;
}

.ol-article__body th {
  color: var(--ol-dark);
  background: var(--ol-soft);
}

.ol-sidebar {
  width: 100%;
  max-width: 330px;
  column-gap: 20px;
  row-gap: 20px;
}

.ol-sidebar .brxe-post-toc,
.ol-sidebar .brxe-block.ol-card {
  position: sticky;
  top: 112px;
}

.ol-sidebar .brxe-post-toc a {
  color: var(--ol-text-soft);
  text-decoration: none;
}

.ol-sidebar .brxe-post-toc a:hover {
  color: var(--ol-primary-dark);
}

/* 11. BREADCRUMBS Y PÁGINAS LEGALES
   --------------------------------------------------------------- */
.ol-breadcrumbs {
  color: var(--ol-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ol-breadcrumbs a {
  color: inherit;
}

.ol-legal {
  width: 100%;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
  line-height: 1.75;
}

.ol-legal h2,
.ol-legal h3,
.ol-legal h4 {
  color: var(--ol-dark);
}

.ol-legal a {
  text-decoration-thickness: 1px;
}

/* 12. AFILIACIÓN Y TRANSPARENCIA
   --------------------------------------------------------------- */
.ol-disclosure {
  padding: 18px 20px;
  border: 1px solid rgba(167, 189, 48, 0.35);
  border-radius: var(--ol-radius-sm);
  color: var(--ol-text-soft);
  background: var(--ol-disclosure);
  font-size: 14px;
  line-height: 1.55;
}

.ol-disclosure a {
  font-weight: 700;
}

[data-affiliate-link="true"]::after {
  content: " · enlace pagado";
  font-size: 0.72em;
  font-weight: 650;
  white-space: nowrap;
}

/* Enlaces salientes identificados manualmente como afiliados. */
a[rel~="sponsored"] {
  text-decoration-thickness: 1px;
}

/* 13. WOOCOMMERCE Y AMAZON AFILIADOS
   --------------------------------------------------------------- */
.ol-products {
  width: 100%;
}

.ol-products ul.products,
.woocommerce .ol-products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.ol-products ul.products::before,
.ol-products ul.products::after {
  display: none;
}

.ol-products li.product,
.woocommerce .ol-products li.product {
  position: relative;
  display: flex;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius-md);
  flex-direction: column;
  background: var(--ol-white);
  box-shadow: var(--ol-shadow);
  transition: transform var(--ol-transition), box-shadow var(--ol-transition), border-color var(--ol-transition);
}

.ol-products li.product:hover,
.woocommerce .ol-products li.product:hover {
  border-color: rgba(167, 189, 48, 0.55);
  box-shadow: var(--ol-shadow-hover);
  transform: translateY(-3px);
}

.ol-products li.product img,
.woocommerce .ol-products li.product img {
  width: 100%;
  margin-bottom: 18px;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--ol-soft);
}

.ol-products .woocommerce-loop-product__title {
  padding: 0;
  color: var(--ol-dark);
  font-size: 1.08rem;
  line-height: 1.3;
}

.ol-products .star-rating {
  color: var(--ol-primary-dark);
}

.ol-products .price {
  margin-top: auto;
  color: var(--ol-dark) !important;
  font-weight: 800;
}

.ol-products .button,
.woocommerce .ol-products .button,
.ol-product-summary .single_add_to_cart_button,
.ol-product-summary .single_add_to_cart_button.button {
  display: inline-flex;
  min-height: 46px;
  margin-top: 12px;
  padding: 0.85rem 1.25rem !important;
  border: 0;
  border-radius: var(--ol-radius-pill) !important;
  align-items: center;
  justify-content: center;
  color: var(--ol-dark) !important;
  background: var(--ol-primary) !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--ol-transition), transform var(--ol-transition), box-shadow var(--ol-transition);
}

.ol-products .button:hover,
.woocommerce .ol-products .button:hover,
.ol-product-summary .single_add_to_cart_button:hover {
  color: var(--ol-dark) !important;
  background: var(--ol-primary-hover) !important;
  transform: translateY(-2px);
}

.ol-product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.ol-product-summary {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.ol-product-summary .price {
  margin: 0;
  color: var(--ol-dark);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.ol-product-summary .woocommerce-product-rating {
  margin: 0;
}

.ol-product-summary .product_meta {
  padding-top: 18px;
  border-top: 1px solid var(--ol-border);
  color: var(--ol-muted);
  font-size: 14px;
}

.woocommerce-product-gallery,
.brxe-product-gallery {
  overflow: hidden;
  border-radius: var(--ol-radius-md);
  background: var(--ol-soft);
}

.woocommerce-product-gallery img,
.brxe-product-gallery img {
  border-radius: var(--ol-radius-md);
}

.woocommerce span.onsale {
  top: 12px;
  left: 12px;
  min-width: auto;
  min-height: auto;
  padding: 8px 12px;
  border-radius: var(--ol-radius-pill);
  color: var(--ol-dark);
  background: var(--ol-primary);
  line-height: 1;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--ol-primary);
  border-radius: var(--ol-radius-sm);
  background: var(--ol-soft);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--ol-primary-dark);
}

.woocommerce .woocommerce-ordering select,
.woocommerce select.orderby {
  min-height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius-pill);
  color: var(--ol-dark);
  background-color: var(--ol-white);
}

/* Oculta mensajes de producto vacío que puedan quedar dentro de bloques
   decorativos. Mantener una plantilla de estado vacío específica cuando
   el catálogo aún no tenga productos. */
.ol-products .woocommerce-info:only-child {
  width: 100%;
}

/* 14. FORMULARIOS, BÚSQUEDA Y NEWSLETTER
   --------------------------------------------------------------- */
.ol-form-row {
  display: flex;
  width: 100%;
  flex-direction: row;
  column-gap: 12px;
  row-gap: 12px;
}

.ol-search {
  width: 100%;
}

.ol-search form,
.ol-search .bricks-search-form,
.ol-search .search-form {
  display: flex;
  width: 100%;
  gap: 10px;
}

.ol-search input[type="search"],
.ol-search input[type="text"],
.jet-form-builder input:not([type="checkbox"]):not([type="radio"]),
.jet-form-builder select,
.jet-form-builder textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ol-border);
  border-radius: var(--ol-radius-sm);
  color: var(--ol-text);
  background: var(--ol-white);
  transition: border-color var(--ol-transition), box-shadow var(--ol-transition);
}

.jet-form-builder textarea {
  min-height: 140px;
  resize: vertical;
}

.ol-search input:focus,
.jet-form-builder input:focus,
.jet-form-builder select:focus,
.jet-form-builder textarea:focus {
  outline: 0;
  border-color: var(--ol-primary);
  box-shadow: var(--ol-focus);
}

.ol-search button,
.ol-search input[type="submit"],
.jet-form-builder__action-button {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--ol-radius-pill);
  color: var(--ol-dark);
  background: var(--ol-primary);
  font-weight: 800;
  cursor: pointer;
}

.ol-search button:hover,
.ol-search input[type="submit"]:hover,
.jet-form-builder__action-button:hover {
  background: var(--ol-primary-hover);
}

.jet-form-builder__label {
  color: var(--ol-dark);
  font-weight: 700;
}

.jet-form-builder .jet-form-builder__field-wrap.checkradio-wrap {
  align-items: flex-start;
}

/* 15. FOOTER
   --------------------------------------------------------------- */
.ol-footer {
  padding: 72px 20px 32px;
  color: var(--ol-white);
  background-color: var(--ol-dark);
}

.ol-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.ol-footer .ol-h1,
.ol-footer .ol-h2,
.ol-footer .ol-h3,
.ol-footer .ol-muted,
.ol-footer p {
  color: var(--ol-white);
}

.ol-footer a {
  color: var(--ol-white);
}

.ol-footer a:hover {
  color: var(--ol-primary);
}

.ol-footer .ol-logo {
  filter: brightness(0) invert(1);
}

/* 16. PÁGINA 404
   --------------------------------------------------------------- */
.error404 .ol-hero .ol-container--narrow {
  align-items: flex-start;
}

.error404 .ol-search {
  max-width: 620px;
}

/* 17. AJUSTES RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 991px) {
  .ol-grid-3,
  .ol-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ol-products ul.products,
  .woocommerce .ol-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ol-sidebar {
    max-width: none;
  }

  .ol-sidebar .brxe-post-toc,
  .ol-sidebar .brxe-block.ol-card {
    position: static;
  }
}

@media (max-width: 782px) {
  .admin-bar .ol-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .ol-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ol-hero {
    padding-right: 16px;
    padding-left: 16px;
    background-position: 62% center;
  }

  .ol-hero::before {
    background: rgba(246, 247, 238, 0.86);
  }

  .ol-grid-2,
  .ol-grid-3,
  .ol-footer__grid,
  .ol-product-layout {
    grid-template-columns: 1fr;
  }

  .ol-header__inner {
    flex-direction: row;
  }

  .ol-header__inner > .brxe-button {
    display: none;
  }

  .ol-logo {
    width: 180px;
  }

  .ol-hero__media {
    max-width: 360px;
    margin-right: auto;
  }

  .ol-product-summary {
    position: static;
  }

  .ol-article__body {
    font-size: 17px;
  }

  .ol-cta {
    padding: 42px 24px;
  }

  .ol-card {
    padding: 24px;
  }
}

@media (max-width: 478px) {
  .ol-grid-4,
  .ol-products ul.products,
  .woocommerce .ol-products ul.products {
    grid-template-columns: 1fr;
  }

  .ol-form-row,
  .ol-search form,
  .ol-search .bricks-search-form,
  .ol-search .search-form {
    flex-direction: column;
  }

  .ol-search button,
  .ol-search input[type="submit"] {
    width: 100%;
  }

  .ol-h1 {
    letter-spacing: -1.25px;
  }

  .ol-h2 {
    letter-spacing: -0.75px;
  }

  .ol-row .ol-button {
    width: 100%;
  }
}

/* 18. MOVIMIENTO REDUCIDO E IMPRESIÓN
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

@media print {
  .ol-header,
  .ol-footer,
  .ol-sidebar,
  .ol-button,
  .ol-disclosure,
  .brxe-post-sharing,
  .woocommerce-product-gallery__trigger {
    display: none !important;
  }

  body,
  .ol-section,
  .ol-section--soft,
  .ol-section--dark {
    color: #000 !important;
    background: #fff !important;
  }

  .ol-article__body,
  .ol-legal {
    max-width: none;
    font-size: 11pt;
    line-height: 1.5;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }
}
