/*!
Theme Name: thesecretlab
Theme URI: http://underscores.me/
Author: MKTmedianet
Author URI: https://www.mktmedianet.com/
Description: Theme para The Secret Lab
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: thesecretlab
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

thesecretlab is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* ÍNDICE DE CONTENIDOS
-------------------------------------------------------------- */
/**
 * - General Settings
 * - Body
 * - Fuentes y Tipografía
 * - Heading
 * - Colores
 * - Botones
 * - Header
 * - Footer
 * - Scroll to Top Button
 * - WhatsApp & Contact Buttons
 * - Hero
 * - Pageheader
 * - Flexible Blocks: Texto
 * - Flexible Blocks: Alternado Asimétrico
 * - Flexible Blocks: Alternados
 * - Flexible Blocks: Bonos
 * - Flexible Blocks: Listado
 * - Flexible Blocks: Related
 * - Flexible Blocks: Banner
 * - Flexible Blocks: FAQs
 * - Flexible Blocks: Equipo
 * - Flexible Blocks: Galeria
 * - Page 404
 * - Blog Page
 * - Single Blog
 * - Product
 * - Contact Page
 * - Responsive Design - Media Queries
 */

:root {
  /* Fuentes */
  --body-font: "Plus Jakarta Sans", sans-serif;
  --title-font: "Baskervville", serif;
  --tagline-font: "Montserrat", sans-serif;
  --jost: "Jost", sans-serif;

  /* Colores */
  --black: #111;
  --dark: #262626;
  --white: #ffffff;
  --grey: #444;
  --light-grey: #fafafa;
  --primary: #a79e96;
  --primary-hover: #867e78;
  --text-color: rgba(0, 0, 0, 0.75);
  --heading: #262626;

  /* Transiciones */
  --transition: all 0.15s ease-in-out;
  --navbar-toggler-icon-bg: url("img/menu.svg");
}

/* General Settings */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.fit {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.h-inherit {
  height: inherit;
}
.cover {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.contain {
  background-repeat: no-repeat;
  background-size: contain !important;
  background-position: center center;
}
.title {
  font-family: var(--title-font);
}
.jost {
  font-family: var(--jost);
}
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

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

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6rem;
  color: var(--text-color);
  background-color: var(--white);
  position: relative;
}

body:not(.home) {
  padding-top: 155px;
}

a {
  color: var(--black);
  transition: var(--transition);
}

a:hover,
a:focus {
  color: #6c757d;
  outline: none;
}

section a {
  transition: var(--transition);
  color: var(--primary);
  text-decoration-line: underline;
  font-weight: 500;
}

section a:hover,
section a:focus {
  color: var(--primary-hover);
  outline: none;
}

section ul,
ol {
  list-style-type: none;
  margin: 0 0 1rem;
  padding: 0;
}

section li {
  position: relative;
  padding-left: 25px;
}

section li:last-child {
  margin-bottom: 10px;
}

.page-default section li:first-child {
  margin-top: 10px;
}

.post__content ul li {
  margin-bottom: 8px;
}

.post__content ul li:last-child {
  margin-bottom: 16px;
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

thead th {
  text-align: left;
  font-weight: 600;
  padding: 0.75rem;
  border-bottom: 2px solid #e5e5e5;
}

tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Estilo para listas desordenadas (ul) */
section ul:not(.li-cat, .nav-item, .products, .related-post) li:before {
  content: "\2022";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
  top: 12px;
  transform: translateY(-50%);
}

/* Estilo para listas ordenadas (ol) */
section ol li {
  counter-increment: item;
}

section ol li:before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 500;
  top: 12px;
  transform: translateY(-50%);
}

.section__content table {
  margin-bottom: 2rem;
}

/* Para listas dentro de .faqs o clases específicas */
.faqs ul {
  margin-top: 12px;
}
.faqs li,
.products li {
  margin-bottom: 6px;
  margin-top: 6px;
  color: var(--text-color);
}

hr {
  margin: 3rem 0;
  color: inherit;
  border: 0;
  border-top: 2px solid var(--grey);
  opacity: 0.25;
}

iframe {
  width: 100%;
}
:focus-visible {
  outline: var(--dark) auto 1px;
}

/* Fuentes y Tipografías */
b,
strong {
  font-weight: 600;
}

.tagline {
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--tagline-font);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  text-transform: uppercase;
}

blockquote {
  background-color: var(--bg-primary);
  margin: 1.5rem 0;
  padding: 1rem 1rem 1rem 1.5rem;
  quotes: "\\201C" "\\201D" "\\2018" "\\2019";
  border-left: 4px solid var(--primary);
}

blockquote p {
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  line-height: 160%;
}

.fw200 {
  font-weight: 200;
}
.fw300 {
  font-weight: 300;
}
.fw400 {
  font-weight: 400;
}
.fw500 {
  font-weight: 500;
}
.fw600 {
  font-weight: 600;
}
.fw700 {
  font-weight: 700;
}
.fw800 {
  font-weight: 800;
}
.fw900 {
  font-weight: 900;
}

.lh100 {
  line-height: 100%;
}
.lh110 {
  line-height: 110%;
}
.lh120 {
  line-height: 120%;
}
.lh130 {
  line-height: 130%;
}
.lh140 {
  line-height: 140%;
}
.lh150 {
  line-height: 150%;
}
.lh160 {
  line-height: 160%;
}
.lh170 {
  line-height: 170%;
}
.lh180 {
  line-height: 180%;
}

.fs72 {
  font-size: 4.5rem;
}
.fs64 {
  font-size: 4rem;
}
.fs60 {
  font-size: 3.75rem;
}
.fs58 {
  font-size: 3.625rem;
}
.fs56 {
  font-size: 3.5rem;
}
.fs52 {
  font-size: 3.25rem;
}
.fs48 {
  font-size: 3rem;
}
.fs44 {
  font-size: 2.75rem;
}
.fs42 {
  font-size: 2.625rem;
}
.fs40 {
  font-size: 2.5rem;
}
.fs38 {
  font-size: 2.375rem;
}
.fs36 {
  font-size: 2.25;
}
.fs34 {
  font-size: 2.125rem;
}
.fs32 {
  font-size: 2rem;
}
.fs30 {
  font-size: 1.875rem;
}
.fs28 {
  font-size: 1.75rem;
}
.fs26 {
  font-size: 1.625rem;
}
.fs24 {
  font-size: 1.5rem;
}
.fs22 {
  font-size: 1.375rem;
}
.fs20 {
  font-size: 1.25rem;
}
.fs18 {
  font-size: 1.0625rem;
}
.fs17 {
  font-size: 1rem;
}
.fs16 {
  font-size: 1rem;
}
.fs15 {
  font-size: 0.938rem;
}
.fs14 {
  font-size: 0.875rem;
}
.fs13 {
  font-size: 0.813rem;
}
.fs12 {
  font-size: 0.75rem;
}

/* Heading */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--title-font);
  color: var(--dark);
  font-weight: 400;
}
.heading-1 {
  font-family: var(--title-font);
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 140%;
  margin-bottom: 2.5rem;
}
.heading-2 {
  font-family: var(--title-font);
  color: var(--dark);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 120%;
  margin-bottom: 1.5rem;
}
.heading-3 {
  font-family: var(--title-font);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 1rem;
}
.heading-4,
.page-default h4 {
  font-family: var(--title-font);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 130%;
}
.heading-5,
.page-default h5 {
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 130%;
  margin-bottom: 1rem;
}
.heading-1:not(.c-white),
.heading-2:not(.c-white),
.heading-3:not(.c-white),
.heading-4:not(.c-white),
.heading-5:not(.c-white) {
  color: var(--dark);
}

.section__content h1 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 2.5rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01875rem;
}

.post__content h2 {
  margin-top: 2rem;
}

/* Colores */
.c-primary {
  color: var(--primary);
}
.c-bg-primary {
  background-color: var(--primary);
}
.c-black {
  color: var(--black);
}
.c-bg-black {
  background-color: var(--black);
}
.c-white {
  color: var(--white);
}
.c-bg-white {
  background-color: var(--white);
}
.c-dark {
  color: var(--dark);
}
.c-bg-dark {
  background-color: var(--dark);
}
.c-grey {
  color: var(--grey);
}
.c-bg-grey {
  background-color: var(--grey);
}
.c-light {
  color: var(--light-grey);
}
.c-bg-light {
  background-color: var(--light-grey);
}

/* Botones */
.btn {
  font-weight: 500;
  font-family: var(--body-font);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0;
  border: 2px solid;
  cursor: pointer;
  outline: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus {
  outline: none;
}

.btn-md {
  padding: 0.5rem 1.5rem;
  font-size: 0.9375rem;
}

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

.btn-xl {
  padding: 1.125rem 2.625rem;
  font-size: 1.125rem;
}

.btn-default {
  background-color: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  position: relative;
  overflow: hidden;
}

.btn-default:hover,
.btn-default:active {
  background-color: var(--primary-hover);
  color: var(--white);
  border-color: var(--primary-hover);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-color: var(--primary-hover);
  color: var(--white);
  border-color: var(--primary-hover);
}

.btn-primary:focus-visible {
  outline: var(--white) auto 1px;
  background-color: var(--primary);
}

.btn-transparent {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-transparent:hover,
.btn-transparent:active {
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-dark {
  background-color: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover,
.btn-dark:active {
  background-color: #303030;
  color: var(--white);
  border-color: #303030;
}

.btn-dark:focus,
.btn-dark:focus-visible {
  outline: var(--white) auto 1px;
  background-color: var(--dark);
}

.btn-link {
  color: var(--dark);
  font-family: var(--jost);
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  text-decoration-line: underline;
  transition: var(--transition);
}

.btn-link:hover,
.btn-link:active {
  color: var(--primary);
}

.btn-outline-dark {
  border: 1px solid var(--black);
  color: var(--dark);
  background-color: var(--white);
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
}

.btn-outline-dark:hover {
  background-color: var(--black);
  color: var(--white);
}

/* Botón formulario Gravity Form */
.gform_button {
  background-color: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--black) !important;
  border-radius: 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
}

.gform_button:hover,
.gform_button:active {
  color: var(--black) !important;
  background-color: var(--white) !important;
}

.gform_button_select_files {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: normal;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid;
  border-radius: var(--border-radius);
  background-color: var(--dark);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-color: var(--dark);
}

.gform_button_select_files:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Botón Reseñas Google */
.ti-widget.ti-goog .ti-header-write-btn-container .ti-header-write-btn {
  background-color: var(--black) !important;
  border-color: var(--black) !important;
  border-radius: 0 !important;
}
.ti-widget.ti-goog .ti-header-write-btn-container .ti-header-write-btn:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Botón Finalizar compra */
.wc-block-cart__submit-button {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  background-color: var(--black);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.3s ease;
}

.wc-block-cart__submit-button:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.wc-block-cart__submit-button:focus-visible {
  outline: none;
}

.wc-block-cart__submit-button:disabled,
.wc-block-cart__submit-button[aria-disabled="true"] {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Header */
.header {
  transition: top 0.3s ease-in-out;
}

.header:not(.header-home) {
  background-color: var(--white) !important;
}
.header.header-home:not(.header-scrolled) {
  background-color: transparent !important;
}
.header-home.header-scrolled.scroll-up {
  background-color: var(--white) !important;
  top: -55px;
}

.header a {
  text-decoration: none;
}
.header ul.navbar-nav li.menu-item > a {
  font-size: 1rem;
  font-weight: 400;
  transition: var(--transition);
  font-family: var(--jost);
  text-align: center;
  color: var(--heading);
}
.header-home:not(.header-scrolled)
  #mega-menu-primary
  > li:not(.mega-current-menu-item)
  > a {
  color: var(--white) !important;
}
.header-home:not(.header-scrolled) #searchIcon svg {
  fill: var(--white);
}
.header #mega-menu-primary a:hover,
.header #mega-menu-primary a:active,
.header li.mega-current-menu-item > a {
  color: var(--primary) !important;
}
.header-home.header-scrolled.scroll-up li:not(.mega-current-menu-item) a {
  color: var(--dark) !important;
}

.header.scroll-down.header-scrolled {
  top: -140px !important;
}

.header .navbar-brand .img-brand {
  height: 70px;
  width: 100%;
  padding: 4px 0;
}
.header-home.header-scrolled .img-brand-dark {
  display: inline;
}
.header-home.header-scrolled .img-brand-white,
.header-home .img-brand-dark,
header:not(.header-home) .img-brand-white {
  display: none;
}

.header-home:not(.header-scrolled) .navbar-toggler-icon {
  background-image: var(--navbar-toggler-icon-bg);
}

.mega-menu-description {
  display: none !important;
}

.header.header-home:not(.header-scrolled) .topbar p,
.header.header-home:not(.header-scrolled) .topbar a {
  color: var(--white);
}
.header.header-home:not(.header-scrolled) .topbar a {
  text-decoration: underline;
}
.header.header-home:not(.header-scrolled) .topbar a:hover {
  text-decoration: none;
}

.topbar p {
  margin-bottom: 0 !important;
  font-size: 13px;
}

header.header-home .topbar {
  background: #000;
}

/* Carrito de compras */
.header-cart__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.header-cart__link:hover {
  background: rgba(0, 0, 0, 0.06);
}
.header-cart__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}
.header-cart__badge {
  min-width: 1.25rem;
  height: 1.25rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
}
@media (max-width: 767.98px) {
  .header-cart__link {
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
  }
}

/* Buscador de productos */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-overlay form {
  max-width: 600px;
  width: 100%;
}

.search-toggle button,
.search-overlay button {
  background: transparent;
  border: none;
  color: #fff;
}

.search-toggle button svg {
  cursor: pointer;
  transition: transform 0.2s;
}

.woocommerce-product-search {
  display: flex;
  gap: 4px;
}

.woocommerce-product-search .search-field,
.woocommerce-product-search button {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid white;
  background: transparent;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-size: 15px;
  font-style: normal;
  line-height: normal;
}

.woocommerce-product-search button {
  padding: 8px 10px;
  font-weight: 500;
  margin-right: 8px;
  background: transparent;
  border-bottom: 1px solid white;
  color: white;
  display: none; /* quitar está línea para hacerlo visible */
}

.woocommerce-product-search button:hover {
  background: transparent;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
}

.woocommerce-product-search .search-field {
  width: 100%;
  padding: 8px;
  margin-right: 8px;
  font-weight: 400;
}

.woocommerce-product-search .search-field:focus-visible {
  outline: var(--primary) auto 1px;
}

.woocommerce-product-search button svg {
  fill: #fff;
}

.woocommerce-loop-product__title {
  font-size: 15px;
}

/* Carrito */
.wc-block-cart-item__wrap {
  margin-right: 8px;
}

.wc-block-components-product-details li:before {
  top: 8px !important;
}

/* === WooCommerce notices (errores) === */
.woocommerce-notices-wrapper {
  margin: 1rem 0;
}

.woocommerce-error {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background-color: #fff3f3;
  border: 1px solid #f1bcbc;
  color: #8a1f1f;
  font-size: 0.875rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.woocommerce-error li {
  margin: 0;
  padding: 0;
}

.woocommerce-error::before {
  content: "⚠️";
  margin-right: 0.5rem;
  font-size: 1rem;
}

.woocommerce-error a {
  color: inherit;
  text-decoration: underline;
}

.woocommerce-error:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(138, 31, 31, 0.2);
}

/* === WooCommerce success message (producto añadido al carrito) === */
.woocommerce-notices-wrapper {
  margin: 1.25rem 0;
}

.woocommerce-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #222;
  font-size: 0.875rem;
  line-height: 1.5;
}

.woocommerce-message {
  flex-wrap: wrap;
}

.woocommerce-message::before {
  content: "✓";
  font-weight: 700;
  color: #111;
  font-size: 1rem;
}

.woocommerce-message .button.wc-forward {
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 4px;
  background-color: transparent;
  color: #222;
  border: 1px solid #222;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.woocommerce-message .button.wc-forward:hover {
  background-color: #222;
  color: #fff;
}

.woocommerce-message:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.2);
}

/* Breadcrumbs */
.breadcrumb a {
  text-decoration: none;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer__logo {
  width: auto;
  height: 80px;
}
.footer__top .border-light {
  border-left: 1px solid rgba(250, 250, 250, 0.5) !important;
}
.footer__menu {
  padding: 0;
}
.footer__menu-header {
  color: var(--white);
  font-family: var(--title-font);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.02125rem;
}
.footer__menu li a {
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: var(--transition);
}
.footer__menu li a:hover {
  color: var(--primary);
}
.footer__menu li a i {
  color: var(--primary);
}
.footer__legales li a {
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: var(--transition);
}
.footer__legales li a:hover {
  color: var(--primary);
}
.footer .links-sociales i {
  color: var(--white);
}
.footer .links-sociales i:hover {
  color: var(--primary);
}
.footer__copy a {
  color: var(--white);
}
.footer__copy a:hover {
  color: var(--primary);
}
.ue-footer {
  display: flex;
  align-items: center;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}
/* Scroll to Top Button */
.scrollToTop {
  position: fixed;
  bottom: 75px;
  right: 8px;
  width: 48px;
  height: 48px;
  background-color: var(--dark);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  line-height: 48px;
  font-size: 24px;
  z-index: 130;
  transition: var(--transition);
}
.scrollToTop:hover {
  background-color: var(--black);
}

/* WhatsApp & Contact Buttons */
.buttons__contact-container {
  width: 56px;
  height: 168px;
  position: fixed;
  right: 4px;
  bottom: 130px;
  transition: all 250ms ease-in-out 0s;
  z-index: 101;
}
.btn__contact {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  bottom: 4px;
  left: 0;
  color: var(--white);
  transition: all 250ms ease-in-out 0s;
  border-radius: 50%;
  background-color: rgba(95, 211, 19);
  background-color: var(--primary);
}
.btn__contact.btn-phone,
.btn__contact.btn-email {
  bottom: 8px;
  left: 4px;
}
.btn__contact:hover {
  background-color: var(--primary-hover);
}
.btn__contact-main {
  width: 56px;
  height: 56px;
  z-index: 90;
}
.btn-whatsapp,
.btn-phone,
.btn-email {
  width: 48px;
  height: 48px;
}
.contact-active .btn-whatsapp {
  transform: translate(4px, -176px);
}
.contact-active .btn-phone {
  transform: translate(0px, -116px);
}
.contact-active .btn-email {
  transform: translate(0px, -60px);
}
.contact-active .btn__contact-main .fa-whatsapp {
  transform: rotate(45deg) translate(-20px, -2px);
}
.buttons__contact-container .fa-whatsapp,
.buttons__contact-container .fa-phone,
.buttons__contact-container .fa-envelope {
  top: 50%;
  left: 50%;
  color: var(--white);
  z-index: 1;
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  transition: all 0.2s ease-out 0s;
}
.btn__contact-main .fa-whatsapp {
  font-size: 32px;
}
.btn__contact-main .fa-phone {
  font-size: 22px;
}
.btn-whatsapp .fa-whatsapp,
.btn-phone .fa-phone,
.btn-email .fa-envelope {
  font-size: 22px;
}

/* Hero */
#hero .container {
  padding-top: 8rem;
}

#hero .cover {
  min-height: 1024px;
}

.background-video {
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 1024px;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
}

.video-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0) 84.72%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: -1;
}

.hero-title {
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: var(--title-font);
  font-size: 5.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.hero-text {
  text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
  font-family: var(--body-font);
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 300;
  line-height: 160%;
}

#hero a.btn {
  font-family: var(--jost);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
}

/* Pageheader */
#pageheader {
  min-height: 23rem;
}

.page-header {
  padding: 4.75rem;
  background-color: #fafafa;
}
/* Flexible Blocks: Texto */
.line {
  border-left: 1px solid #000;
  height: 42px;
  margin: 1.5rem auto;
}

/* Flexible Blocks: Alternado Asimétrico */
.alternado .col-image {
  width: 40%;
}

/* Flexible Blocks: Alternados */
.alternados .col-body {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.alternados .main-img {
  z-index: 2;
  padding-bottom: 5rem;
  padding-top: 7rem;
}
.alternados .bg-img {
  z-index: 1;
}

/* Flexible Blocks: Bonos */
.block-bonos .heading {
  padding-bottom: 5rem;
}

.card-bono img {
  object-fit: cover;
  height: 200px;
}

/* Flexible Blocks: Listado */
.features .feature-item {
  border-left: 2px solid var(--primary);
}

/* Flexible Blocks: Servicios */
.service-cards .service-content {
  padding: 4rem 2.5rem 4rem 0rem;
}

/* Flexible Blocks: Related */
.related-item:hover img {
  transform: scale(1.1);
}

.related-item .caption {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-item .caption p {
  padding: 0;
}

.related-item .related-item:hover .caption {
  opacity: 1;
}

.related-item .title {
  color: var(--heading, #262626);
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: normal;
  margin-top: 1.5rem;
}

.related-item .excerpt,
.related-item .subtitle {
  font-size: 0.875rem;
}

/* Flexible Blocks: Banner */

/* Flexible Blocks: Form */
.form .col-image {
  width: 25%;
}
.gform_fields {
  gap: 0.5rem !important;
}

.gform-theme--framework
  input[type]:where(:not(.gform-text-input-reset):not([type="hidden"])):where(
    :not(.gform-theme__disable):not(.gform-theme__disable *):not(
        .gform-theme__disable-framework
      ):not(.gform-theme__disable-framework *)
  ),
textarea,
select {
  border: 1px solid #000 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.gfield_consent_label {
  font-size: 13px;
}
.gfield_consent_label a {
  color: var(--dark);
}
.gfield_consent_label a:hover {
  color: var(--primary);
}
.gform_footer.top_label {
  justify-content: end;
}

/* Flexible Blocks: FAQs */
.accordion-item {
  border: none;
  border-bottom: 2px solid var(--black);
}

.accordion-button {
  background-color: transparent;
  font-family: var(--title-font);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 130%;
  color: var(--black);
  border: none !important;
  padding: 1rem;
}

.accordion-button:focus {
  box-shadow: none;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--black);
  background-color: transparent;
  box-shadow: none;
}

.accordion-body p {
  margin-bottom: 0;
}

/* Flexible Blocks: Equipo */

/* Flexible Blocks: Galeria */
.gallery__card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.gallery__card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.gallery__card:hover img {
  transform: scale(1.05);
  opacity: 0.8;
  filter: brightness(85%);
  cursor: pointer;
}

.icono__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.icono {
  color: var(--white);
  font-size: 60px;
}

.gallery__card:hover .icono__container {
  opacity: 1;
}

/* Responsive improvements */
@media (min-width: 768px) {
  .gallery__card {
    max-width: 250px;
    max-height: 250px;
  }

  .icono {
    font-size: 50px;
  }
}

@media (max-width: 576px) {
  .gallery__card {
    max-width: 100%;
    max-height: 200px;
  }

  .icono {
    font-size: 40px;
  }
}

/* Page 404 */
.error-404 h1 {
  font-family: var(--body-font);
  font-weight: 200;
}
.error-404 .page-title {
  font-family: var(--title-font);
  font-weight: 600;
  text-wrap: balance;
}
.link-404 {
  background-color: #a79e9636;
  color: var(--dark);
  padding: 2px 8px;
  transform: var(--transition);
  text-decoration: none;
}
.link-404:hover {
  background-color: var(--primary);
  color: var(--white);
}
/* Blog Page */
.page-blog section.blog .card-img-top,
.card-img-top {
  height: 300px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.page-blog section.blog .card-img-top:hover,
.card-img-top:hover {
  transform: scale(1.05);
}
.blog-sidebar {
  position: sticky;
  top: 50px;
}

/* Single Blog */
.main-img-post {
  max-height: 500px;
}

.categories-list,
.related-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li a,
.related-posts-list li a {
  text-decoration: none;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-post-thumbnail {
  flex-shrink: 0;
}

.related-post-thumbnail img {
  width: 100px;
  height: auto;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
}

.related-post-content {
  flex-grow: 1;
}

.related-posts-list li a:hover {
  background-color: var(--light-grey);
}

.related-posts-list li a:hover img {
  transform: scale(1.1);
}
.related .product:before {
  display: none;
}
/* Product */

.product_tagline {
  font-family: var(--title-font);
  color: var(--dark);
  font-weight: 400;
  font-size: 2rem;
  line-height: 2.2rem;
}

.product_title {
  font-size: 1.25rem;
}

.woocommerce-product-details__short-description .promo {
  background-color: #ebebeb;
  color: var(--dark);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.woocommerce-product-details__short-description .promo p {
  margin-bottom: 0;
}

/* Modal*/

.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
  overflow: hidden;
  z-index: 1050;
}

.modal-contenido {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  padding: 1rem;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.modal-contenido .btn-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) !important;
}

.modal-contenido .btn {
  background-color: #80413a !important;
  border-color: #80413a !important;
  animation: slowPulse 1.5s ease-in-out infinite;
}

.modal-contenido .btn:hover,
.modal-contenido .btn:active,
.modal-contenido .btn:focus,
.modal-contenido .btn:focus-visible {
  background-color: #a14f45 !important;
  border-color: #a14f45 !important;
}

@keyframes slowPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1rem;
}

.cerrar:hover,
.cerrar:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-contenido,
.modal-contenido .img-desktop {
  max-width: 600px;
  height: auto;
  margin: auto;
}

@media (max-width: 768px) {
  .modal-contenido,
  .modal-contenido .img-mobile {
    max-width: 400px;
    height: auto;
    margin: auto;
  }

  .modal-contenido .btn-container {
    bottom: -1rem;
    left: 50%;
  }

  .modal-contenido .btn {
    width: max-content;
  }
}

/* Contact Page */
.page-contacto .section__content .container {
  max-width: 50rem;
  margin: auto;
}
.page-contacto .form__text p {
  font-size: 0.9375rem;
  line-height: 160%;
}
.acf-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: #eee solid 1px;
}
.acf-map img {
  max-width: inherit !important;
}

#gift-this-product {
  flex-direction: column;
  align-items: center;
  border-radius: 0;
  border: 1px solid var(--black);
}
.gift-this-product-description-container {
  text-align: center;
  margin-top: 1rem;
}
.gift-this-product-title-message {
  color: var(--body, rgba(0, 0, 0, 0.75));
  font-family: var(--tagline-font);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 1.8rem */
  text-align: center;
}
#give-as-present,
.single_add_to_cart_button {
  background-color: var(--dark) !important;
  color: var(--white) !important;
  border-color: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--body-font);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0;
  border: 2px solid;
  cursor: pointer;
  outline: none;
}
.yith-ywgc-gift-this-product-modal-content-wrapper
  .gift-cards_form
  .gift-card-content-editor.step-content
  textarea,
.yith-ywgc-gift-this-product-modal-content-wrapper
  .gift-cards_form
  .gift-card-content-editor.step-content
  input {
  margin: 0 !important;
}
.yith-ywgc-popup-wrapper {
  z-index: 150 !important;
}
img.attachment-shop_catalog.size-shop_catalog {
  width: 100%;
  height: auto;
}
.yith-ywgc-gift-this-product-modal-opened.yith_ywgc_opened
  .yith-ywgc-popup-wrapper {
  opacity: 1 !important;
}

.gift-cards_form .gift_card_template_button {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem !important;
}

/* YITH Gift Cards – producto tarjeta regalo */
.summary.entry-summary .gift-cards_form h3 {
  margin: 1.2rem 0 0.6rem;
  font-weight: 600;
}

.summary.entry-summary .ywgc-design-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .summary.entry-summary .ywgc-design-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.summary.entry-summary .ywgc-preset-image {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.summary.entry-summary .ywgc-preset-image:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}
.summary.entry-summary .ywgc-preset-image img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.summary.entry-summary .selected_image_parent {
  border-color: rgba(0, 0, 0, 0.35) !important;
}

.summary.entry-summary .ywgc-manual-amount-container {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0;
  min-width: 200px;
}

.gift-card-content-editor label {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-family: var(--title-font);
  color: var(--dark);
}

.summary.entry-summary .ywgc-manual-amount-container,
.summary.entry-summary .ywgc-manual-amount-container:hover,
.summary.entry-summary .ywgc-manual-amount-container:focus,
.summary.entry-summary .ywgc-manual-amount-container:active {
  color: inherit !important;
}

.summary.entry-summary #ywgc-manual-amount {
  background: transparent !important;
  border: 4px !important;
  outline: none;
  width: 100%;
  color: black !important;
}

.selected_button .ywgc-manual-currency-symbol {
  background-color: #fff !important;
  color: var(--dark) !important;
}

.summary.entry-summary .yith_wc_gift_card_input_recipient_details,
.summary.entry-summary .ywgc-sender-name input[type="text"],
.summary.entry-summary #ywgc-edit-message,
textarea.ywgc-edit-message {
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 4px !important;
  margin: 0.25rem 0 !important;
}
.summary.entry-summary .yith_wc_gift_card_input_recipient_details:focus,
.summary.entry-summary .ywgc-sender-name input[type="text"]:focus,
.summary.entry-summary #ywgc-edit-message:focus,
.summary.entry-summary textarea.ywgc-edit-message:focus {
  border-color: rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
  outline: none;
  padding: 8px !important;
}

.ywgc-sender-name.ywgc-label-above-input {
  width: 100% !important;
}

.summary.entry-summary .gift_card_add_to_cart_button {
  border-radius: 8px;
}

.ywgc-delivery-notification-checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.ywgc-delivery-notification-checkbox-container input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0 !important;
  appearance: none;
  cursor: pointer;
  position: relative;
}
.ywgc-delivery-notification-checkbox-container input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.ywgc-delivery-notification-checkbox-container
  input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
}

.ywgc-delivery-notification-checkbox-container {
  line-height: 1.5;
}

#product-10293 .product-ctas,
#product-10293 .col-lg-6 .row {
  display: none;
}

/* Imagen producto tarjeta regalo */
.virtual.product-type-gift-card .woocommerce-product-gallery__wrapper img {
  height: auto !important;
}

#product-10293 .woocommerce-product-gallery__wrapper {
  margin-bottom: 3rem;
}

/* Responsive Design - Media Queries */
@media (max-width: 992px) {
  .alternados .col-image {
    height: 500px;
  }

  header nav .btn {
    position: fixed;
    bottom: 0;
    left: 1%;
    width: 98%;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
  }
  .footer__bottom {
    padding-bottom: 50px;
  }

  .card-bono figure {
    display: none;
  }
  .header-home.header-scrolled.scroll-up li:not(.mega-current-menu-item) > a {
    color: var(--white) !important;
  }
  #mega-menu-wrap-primary
    #mega-menu-primary
    > li.mega-menu-flyout
    ul.mega-sub-menu
    li.mega-menu-item
    > a.mega-menu-link {
    color: #000 !important ;
  }
  .contact-active .btn-whatsapp {
    transform: translate(4px, -116px);
  }
  .contact-active .btn-phone {
    transform: translate(0px, -60px);
  }
}

@media (width > 767px) {
  .related .top {
    padding-top: 3.75rem;
    padding-bottom: 5rem;
  }
  .related__item-container img {
    height: 23.5rem;
    transition: transform 0.3s ease;
  }
  .error-404 .page-title {
    font-size: 2.25rem;
  }
}

@media (width < 767px) {
  .related .top {
    padding-top: 4.75rem;
    padding-bottom: 3rem;
  }
  .related__item-container img {
    height: 20.5rem;
    transition: transform 0.3s ease;
  }
  .secciones .col-image {
    height: 300px;
    margin-bottom: 4rem;
  }
  .btn-contact-mobile {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    padding: 1rem !important;
    font-size: 1rem !important;
    z-index: 2000;
  }
  .error-404 .page-title {
    font-size: 1.75rem;
  }
  .ue-footer {
    flex-direction: column;
  }
  .alternado .col-image {
    width: 100%;
    position: relative !important;
    min-height: 400px;
  }
}

/* Estilo inicial para el texto que aparece en hover */
.related__item-mask {
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.5s linear;
  opacity: 0; /* Inicialmente escondido */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.related__item-mask p {
  color: #fff;
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s linear;
}

.related__item-container:hover .related__item-mask {
  opacity: 1; /* El texto se hace visible */
}

/* Animación del título, descripción y enlace cuando ocurre el hover */
.related__item-container:hover .related__item-mask p {
  transform: scale(1); /* El texto escala a su tamaño original */
  opacity: 1; /* El texto aparece */
}

.page-numbers {
  padding: 0 0.75rem;
}
