/*
Theme Name: Gerardi Studio
Theme URI: https://gerardistudio.com/
Author: Diego A. Rodríguez
Author URI: https://diegordgz8.dev/
Description: Este es un tema desarrollado a medida para Gerardi Studio: tienda WooCommerce y academia MasterStudy LMS.
Tags: e-commerce, education, one-column, custom-logo, custom-menu, featured-images, full-width-template
Version: 2.0.0
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gerardistudio
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*
 * CSS Reset for Classic WordPress Themes
 */

/* Box Sizing for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Basic margin and padding reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* Ensure body takes at least viewport height */
body {
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.25em;
  min-height: 100vh;
  /* Ensures the body extends to full viewport height */
  text-rendering: optimizeLegibility;
  /* Improves text rendering */
  -webkit-font-smoothing: antialiased;
  /* Font smoothing for Webkit */
  -moz-osx-font-smoothing: grayscale;
  /* Font smoothing for Firefox */
}

/* List styles */
ol,
ul {
  list-style: none;
}

/* Quotes */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Form elements */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* Inherit font from body */
  font-size: 100%;
  /* Consistent font size */
  line-height: 1.15;
  /* Line height consistency */
  margin: 0;
  /* Remove default margins */
}

/* Remove blue outline on focused interactive elements for better customization */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Responsive images by default */
img {
  /* Removes extra space below images */
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Links */
a {
  /* Inherits color from parent text, useful for applying your own colors later */
  color: inherit;
  /* font-weight: 600; */
  /* Removes default underline */
  text-decoration: none;
  transition: 0.3s;
}

a:hover,
a:focus {
  color: var(--accent-color);
}

p a:hover,
p a:focus {
  text-decoration: underline solid var(--accent-color) 2px !important;
  text-underline-offset: 3px;
}

/* Textareas */
textarea {
  resize: vertical;
  /* Allows vertical resizing by default */
}

.font-poppins {
  font-family: "Poppins", sans-serif;
}

/*
 * Utility Classes
 * Inspired by Tailwind CSS
 */

/* --- Flexbox --- */
.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.flex-col-reverse {
  flex-direction: column-reverse;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

.content-start {
  align-content: flex-start;
}

.content-end {
  align-content: flex-end;
}

.content-center {
  align-content: center;
}

.content-baseline {
  align-content: baseline;
}

.content-stretch {
  align-content: stretch;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

.self-auto {
  align-self: auto;
}

.self-start {
  align-self: flex-start;
}

.self-end {
  align-self: flex-end;
}

.self-center {
  align-self: center;
}

.self-stretch {
  align-self: stretch;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink {
  flex-shrink: 1;
}

.flex-none {
  flex-grow: 0;
  flex-shrink: 0;
}

.gap-0 {
  gap: 0;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-16 {
  gap: 3rem;
}

/* --- Grid --- */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* --- Display --- */
.inline {
  display: inline;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.inline-grid {
  display: inline-grid;
}

.hidden {
  display: none;
}

/* --- Accessibility --- */
/* Hides content from sight but keeps it for screen readers and search engines.
   Never use display:none for this: assistive technology skips it entirely. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Spacing (Margin & Padding) --- */
/* Margins */
.m-0 {
  margin: 0;
}

.m-auto {
  margin: auto;
}

.mt-auto {
  margin-top: auto;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-auto {
  margin-bottom: auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-auto {
  margin-left: auto;
}

.ml-0 {
  margin-left: 0;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-8 {
  margin-left: 2rem;
}

.mr-auto {
  margin-right: auto;
}

.mr-0 {
  margin-right: 0;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-4 {
  margin-right: 1rem;
}

.mr-8 {
  margin-right: 8rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.m-1 {
  margin: 0.25rem;
}

.m-2 {
  margin: 0.5rem;
}

.m-4 {
  margin: 1rem;
}

.m-8 {
  margin: 2rem;
}

/* Paddings */
.p-0 {
  padding: 0;
}

.pt-0 {
  padding-top: 0;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-0 {
  padding-bottom: 0;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-0 {
  padding-left: 0;
}

.pl-1 {
  padding-left: 0.25rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pr-0 {
  padding-right: 0;
}

.pr-1 {
  padding-right: 0.25rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

/* --- Typography --- */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

/* 12px / 16px */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* 14px / 20px */
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* 16px / 24px */
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* 18px / 28px */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

/* 20px / 28px */
.font-thin {
  font-weight: 100;
}

.font-extralight {
  font-weight: 200;
}

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

.italic {
  font-style: italic;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.normal-case {
  text-transform: none;
}

.leading-tight {
  line-height: 1.25;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.625;
}

.no-underline {
  text-decoration: none;
}

.underline {
  text-decoration: underline;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Colors (Examples, you can expand with your color palette) --- */
/* Text */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-body {
  color: var(--text-color);
}

.text-red {
  color: #e3342f;
}

.text-green {
  color: #38c172;
}

.text-gray-dark {
  color: #3d4852;
}

.text-gray {
  color: #8795a1;
}

.text-white {
  color: #fff;
}

.text-black {
  color: #000;
}

.text-accent {
  color: var(--accent-color);
}

.text-old-stone {
  color: var(--old-stone);
}

.text-deep-brown {
  color: var(--deep-brown);
}

.text-flower-white {
  color: var(--flower-white);
}

.text-kilimanjaro {
  color: var(--kilimanjaro);
}

/* Backgrounds */
.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-accent {
  background-color: var(--accent-color);
}

.bg-red {
  background-color: #e3342f;
}

.bg-green {
  background-color: #38c172;
}

.bg-gray-light {
  background-color: #f8fafc;
}

.bg-white {
  background-color: #fff;
}

.bg-black {
  background-color: #000;
}

.bg-old-stone {
  background-color: var(--old-stone);
}

.bg-deep-brown {
  background-color: var(--deep-brown);
}

.bg-flower-white {
  background-color: var(--flower-white);
}

.bg-kilimanjaro {
  background-color: var(--kilimanjaro);
}

/* Borders */
.border-old-stone {
  border-color: var(--old-stone);
}

.border-deep-brown {
  border-color: var(--deep-brown);
}

.border-flower-white {
  border-color: var(--flower-white);
}

.border-kilimanjaro {
  border-color: var(--kilimanjaro);
}

/* --- Sizing (Width & Height) --- */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.max-w-full {
  max-width: 100%;
}

.max-h-full {
  max-height: 100%;
}

.min-w-0 {
  min-width: 0;
}

.min-h-0 {
  min-height: 0;
}

/* You can add more specific sizes like w-1/2, h-screen, etc. */

/* --- Aspect Ratio --- */
.aspect-auto {
  aspect-ratio: auto;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-portrait {
  aspect-ratio: 9 / 16;
}

.aspect-3\/2 {
  aspect-ratio: 3 / 2;
}

.aspect-4\/3 {
  aspect-ratio: 4 / 3;
}

.aspect-5\/4 {
  aspect-ratio: 5 / 4;
}

.aspect-21\/9 {
  aspect-ratio: 21 / 9;
}

/* --- Object Fit --- */
.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

.object-fill {
  object-fit: fill;
}

.object-none {
  object-fit: none;
}

.object-scale-down {
  object-fit: scale-down;
}

/* --- Object Position --- */
.object-top {
  object-position: top;
}

.object-bottom {
  object-position: bottom;
}

.object-left {
  object-position: left;
}

.object-right {
  object-position: right;
}

.object-center {
  object-position: center;
}

.object-left-top {
  object-position: left top;
}

.object-left-bottom {
  object-position: left bottom;
}

.object-right-top {
  object-position: right top;
}

.object-right-bottom {
  object-position: right bottom;
}

/* --- Borders --- */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: #dae1e7;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #dae1e7;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: #dae1e7;
}

.border-l {
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: #dae1e7;
}

.border-r {
  border-right-width: 1px;
  border-right-style: solid;
  border-right-color: #dae1e7;
}

.border-none {
  border-width: 0;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* For circular/pill elements */
.border-primary {
  border-color: #3490dc;
}

.border-gray {
  border-color: #b8c2cc;
}

/* --- Shadows --- */
.shadow {
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-none {
  box-shadow: none;
}

/* --- Position --- */
.static {
  position: static;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-auto {
  z-index: auto;
}

/* --- Cursors --- */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-default {
  cursor: default;
}

/* --- Visibility --- */
.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

:root {
  /* Colors */
  --primary-color: var(--kilimanjaro);
  --secondary-color: var(--flower-white);
  --text-color: var(--kilimanjaro);
  --accent-color: var(--deep-brown);

  --color-success: #38c172;
  --color-success: rgb(97, 204, 47);
  --color-warning: #ffa800;
  --color-danger: #e3342f;
  --color-danger: rgb(255, 57, 69);

  /* New palette */
  --old-stone: #a58d6e;
  --deep-brown: #644823;
  --flower-white: #f8f4ef;
  --kilimanjaro: #241000;

  --maroon: #b82460;
  --wenge: #6b5e58;
  --bone: #e3dcca;
  --isabelline: #f1f0eb;
  --eerie-black: #1e1e1e;

  /* Fonts */
  --font-poppins: "Poppins", sans-serif;
}

.row::before,
.row::after {
  content: none;
}

.row-no-gutters [class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

body {
  font-family: var(--font-poppins);
  line-height: 1.25;
}

section,
.section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

p {
  max-width: 90ch;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: bold;
}

.text-center p {
  margin-inline: auto;
}

body .container,
body .container-fluid {
  padding: 0 30px;
}

body .container.container__small {
  max-width: 900px;
}

body .container.px-0,
body .container-fluid.px-0 {
  padding-inline: 0;
}

.dynamic-marquee {
  /* Separación entre ítems (la sobrescribe la plantilla con el valor del campo) */
  --marquee-gap: 48px;
  /* Asegura que ocupe todo el ancho disponible */
  width: 100%;
  /* Espaciado vertical opcional */
  padding: 10px 0;
  background: var(--primary-color);
  /* Oculta el texto que está fuera del contenedor */
  overflow: hidden;
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  /* Evita que el texto salte de línea */
  white-space: nowrap;
}

.dynamic-marquee span {
  display: inline-block;
  /* Permite que el texto se mueva horizontalmente */
}

/* El hueco va como padding del propio ítem para que entre en su ancho medido
   por el JS y el bucle empalme sin saltos. */
.dynamic-marquee__item {
  padding-inline-end: var(--marquee-gap);
}

/* Define la animación de desplazamiento */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  /* Al inicio de la animación, el texto está en su posición inicial (desplazado a la derecha por el padding-left) */
  100% {
    transform: translateX(-100%);
  }

  /* Al final, el texto se ha movido su propio ancho hacia la izquierda */
}

/* Opcional: Pausar la animación al pasar el ratón */
.marquee-container:hover .marquee-text {
  animation-play-state: paused;
}

/* --- Botones y componentes --- */
.gerardi-btn {
  display: inline-block;
  min-width: 150px;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  border: solid 2px var(--accent-color);
  border-radius: 9999px;
  color: var(--flower-white);
  font-size: 16px;
  text-align: center;
  transition: 0.3s ease-in-out;
  box-shadow: 0 2px 8px 0 rgba(30, 30, 30, 0.1);
}

.gerardi-btn-lg {
  padding: 1rem 2rem;
  font-size: 18px;
}

.gerardi-btn-white {
  background-color: var(--flower-white);
  border-color: var(--flower-white);
  color: var(--text-color);
}

.gerardi-btn:hover,
.gerardi-btn:focus {
  color: var(--accent-color);
  background: var(--flower-white);
  border-color: var(--flower-white);
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(30, 30, 30, 0.2);
}

.gerardi-btn:active {
  filter: brightness(0.9);
}

/* --- Formulario: aquí tus estilos de formulario --- */
body label {
  color: var(--text-color);
  font-weight: 500;
}

.wpforms-container
  label:not(.wpforms-field-sublabel, .wpforms-field-label-inline) {
  position: absolute;
  top: 1rem;
  left: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-width: 200px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: solid 1px var(--primary-color);
  border-radius: 0.25rem;
  transition: 0.3s;
  color: var(--old-stone);
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="search"],
.wpforms-container input[type="url"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container textarea,
.wpforms-container select {
  padding-top: 24px;
}

.wpforms-container fieldset input[type="text"],
.wpforms-container fieldset input[type="email"],
.wpforms-container fieldset input[type="search"],
.wpforms-container fieldset input[type="url"],
.wpforms-container fieldset input[type="tel"],
.wpforms-container fieldset input[type="number"],
.wpforms-container fieldset textarea,
.wpforms-container fieldset select {
  padding-block: 16px;
}

.wpforms-container fieldset .wpforms-field-label,
.wpforms-container fieldset .wpforms-field-sublabel {
  text-align: left;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  background: var(--flower-white);
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent-color);
  width: 18px !important;
  height: 18px !important;
  transition: 0.3s;
}

input[type="range"] {
  accent-color: var(--accent-color);
  transition: 0.3s;
}

/* --- Estilos específicos para WP Forms --- */
.wpforms-container .wpforms-field {
  padding: 12px 0 !important;
}

.wpforms-container .wpforms-field:first-child {
  padding-top: 0 !important;
}

.wpforms-container .wpforms-field-label {
  margin-bottom: 8px;
  font-weight: 500 !important;
}

.wpforms-field-sublabel.after {
  margin-top: 4px;
  margin-bottom: 0;
}

.wpforms-container .wpforms-required-label {
  color: var(--color-danger);
}

.wpforms-container em.wpforms-error {
  margin-top: 8px;
  color: var(--color-danger) !important;
}

.wpforms-field-radio ul,
.wpforms-field-checkbox ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wpforms-container input[type="radio"],
.wpforms-container input[type="checkbox"] {
  translate: 0 2px;
}

.wpforms-container .wpforms-submit-container {
  margin-top: 16px;
}

.loader-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 5px solid #eee;
  border-top: 5px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.owl-carousel:has(.owl-nav:not(.disabled)) {
  /* padding-inline: calc(40px + 1rem); */
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  width: 40px;
  height: auto;
  color: var(--flower-white);
  font-size: 14px;
  transition: 0.3s;
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover,
.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background: var(--accent-color);
  color: var(--flower-white);
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav button.owl-prev {
  left: 0;
  translate: 0 -50%;
}

.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav button.owl-next {
  right: 0;
  translate: 0 -50%;
}

.owl-carousel.dark .owl-nav .owl-prev,
.owl-carousel.dark .owl-nav .owl-next,
.owl-carousel.dark .owl-nav button.owl-prev,
.owl-carousel.dark .owl-nav button.owl-next {
  background: var(--flower-white);
  color: #000;
}

.owl-carousel.dark .owl-nav .owl-prev:hover,
.owl-carousel.dark .owl-nav .owl-next:hover,
.owl-carousel.dark .owl-nav button.owl-prev:hover,
.owl-carousel.dark .owl-nav button.owl-next:hover {
  background: var(--accent-color);
  color: var(--flower-white);
}

.owl-carousel .owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.owl-carousel .owl-dot,
.owl-carousel button.owl-dot {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: solid 2px var(--primary-color);
  border-radius: 9999px;
  transition: 0.3s;
}

.owl-carousel .owl-dot:hover,
.owl-carousel button.owl-dot:hover {
  width: 30px;
}

.owl-carousel .owl-dot.active,
.owl-carousel button.owl-dot.active {
  width: 50px;
}

.owl-carousel.dark .owl-dot,
.owl-carousel.dark button.owl-dot {
  border-color: var(--flower-white);
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  transition: background 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.site-header .top-header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.25rem 30px;
  background: var(--secondary-color);
}

.site-header .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 30px;
  background: var(--kilimanjaro);
}

.site-header .header-menu .menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  letter-spacing: 10%;
}

.site-header .header-menu .menu .menu-item {
  position: relative;
  padding-block: 0.5rem;
}

/* Ítems con submenú: flecha que gira 180° cuando el submenú se despliega.
   El `a::after` ya está ocupado por el subrayado animado, así que la flecha va
   como `::after` del propio `<li>`, que pasa a flex para alinearla con el texto. */
.site-header .header-menu .menu-item.menu-item-has-children {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-header .header-menu .menu-item.menu-item-has-children::after {
  content: "\f107"; /* fa-angle-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: var(--flower-white);
  transition: rotate 0.3s ease;
}

.site-header .header-menu .menu-item.menu-item-has-children:hover::after,
.site-header
  .header-menu
  .menu-item.menu-item-has-children:focus-within::after {
  rotate: 180deg;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-menu .menu-item.menu-item-has-children::after {
    transition: none;
  }
}

.site-header .header-menu .menu a {
  color: var(--flower-white);
}

.site-header .header-menu .menu a:after {
  content: "";
  display: flex;
  width: 0px;
  border-bottom: solid 2px currentColor;
  transition: width 0.3s;
}

.site-header .header-menu .menu a:hover::after {
  width: 40px;
}

/* The ancestor keeps "Tienda" marked while one of its categories is browsed.
   Direct child (> a) on purpose: with a descendant selector the ancestor would
   also bold every link inside its submenu. */
.site-header .header-menu .current-menu-item > a,
.site-header .header-menu .current-menu-ancestor > a {
  font-weight: bold;
}

.site-header .header-menu .current-menu-item > a::after,
.site-header .header-menu .current-menu-ancestor > a::after {
  width: 40px;
}

.site-header .header-menu .sub-menu {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border-radius: 4px;
  translate: 0 100%;
  opacity: 0;
  pointer-events: none;
}

.site-header .header-menu .menu-item.menu-item-has-children:hover .sub-menu,
.site-header
  .header-menu
  .menu-item.menu-item-has-children:focus-within
  .sub-menu {
  opacity: 1;
  pointer-events: unset;
}

.site-header .header-menu .sub-menu a {
  color: var(--text-color);
}

.site-header .header-menu .current-menu-item a::after {
}

.site-header .site-logo {
  display: flex;
  justify-content: center;
}

.site-header .site-logo img {
  width: auto;
  height: 48px;
}

.header-right-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.site-header .header-icons {
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.site-header .header-icons i {
  font-size: 20px;
}

/* Icono subido desde Configuración → Iconos del header: se ajusta al mismo
   tamaño que el vectorial de Font Awesome al que sustituye (en el header y en
   el menú móvil, que repite los mismos enlaces). */
.site-header .header-icons .header-icon img,
.mobile-menu-footer .header-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-header .header-menu {
  display: none;
}

.site-header .mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--flower-white);
}

.mobile-menu-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 320px;
  height: 100dvh;
  padding: 5rem 2rem 3rem;
  background-color: var(--flower-white);
  transition: 0.3s ease-in-out;
  transform: translateX(100%);
}

.mobile-menu-container.active {
  transform: translateX(0);
}

.mobile-menu-container .mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 30px;
  background: none;
  border: none;
  font-size: 28px;
  transition: 0.3s ease-in-out;
}

.mobile-menu-container .mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 20px;
  text-align: right;
}

.mobile-menu-container .mobile-menu .current-menu-item a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--accent-color);
  font-weight: 600;
}

.mobile-menu-container .mobile-menu .current-menu-item a:after {
  content: "";
  display: flex;
  justify-content: flex-end;
  width: 0px;
  border-bottom: solid 2px currentColor;
  transition: width 0.3s;
}

.mobile-menu-container .mobile-menu .current-menu-item a:hover::after {
  width: 40px;
}

.mobile-menu-container .mobile-menu .current-menu-item a {
  font-weight: bold;
}

.mobile-menu-container .mobile-menu .current-menu-item a::after {
  width: 40px;
}

.mobile-menu-container .social-icons {
  font-size: 24px;
}

.site-footer {
  position: relative;
  background-color: var(--kilimanjaro);
}

.site-footer .main-footer {
  padding-block: 3rem;
}

.site-footer .main-footer .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.site-footer .footer-logo {
  width: 140px;
  height: auto;
  fill: var(--flower-white);
}

.site-footer .footer-social {
  font-size: 20px;
}

.site-footer .footer-social a i {
  color: var(--old-stone);
  font-size: 32px;
}

.site-footer .footer-social a:hover {
  transform: scale(1.15);
}

.site-footer .footer-contact a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 20px;
  text-align: center;
}

.site-footer .footer-contact-text {
  max-width: 220px;
  color: var(--flower-white);
  text-align: center;
  text-transform: uppercase;
}

.site-footer .footer-contact-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  width: 80px;
  border-radius: 9999px;
  transition: 0.3s;
}

.site-footer .footer-contact a:hover .footer-contact-icon {
  scale: 1.125;
}

.site-footer .footer-contact a i {
  color: var(--kilimanjaro);
  font-size: 4rem;
}

.site-footer .bottom-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  padding-bottom: 20px;
  font-size: 12px;
  transform: translateX(-50%);
}

.overlay {
  position: relative;
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--kilimanjaro);
  opacity: 0.5;
}

.overlay > * {
  position: relative;
  /* z-index: 1; */
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.pagination .page-numbers {
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  width: 40px;
  height: auto;
  border-radius: 9999px;
  transition: 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent-color);
  color: var(--flower-white);
}

.hero-small {
  position: relative;
  align-content: center;
  padding: 3rem 0;
  min-height: 300px;
  background-color: var(--flower-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.hero-small .hero-title {
  font-size: 34px;
  font-weight: bold;
}

.hero-small .hero-subtitle {
  font-size: 20px;
  font-weight: 500;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.no-padding {
  padding: 0;
}

.section-title {
  margin-top: 0 !important;
  margin-bottom: 1.5rem;
  font-size: 28px;
  font-weight: bold;
}

.section-title-small {
  font-size: 24px;
}

.content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 30px;
}

/* Tarjetas de modalidad y bloque de asesorías
   Se usan en la home (#asesorias), Academia (#modalidades y
   #cursos-personalizados) y Contacto (#asesoria), maquetados con
   template-parts/content-advisory.php. Viven aquí, y no en las hojas por
   plantilla, porque los assets se enlazan por nombre de plantilla: antes había
   que duplicarlos en academy.css y contact.css y las copias ya habían derivado.
   ========================================================================== */

.modalities-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Centra la rejilla cuando hay pocas tarjetas (bloques de asesoría). */
.modalities-grid--centered {
  justify-content: center;
  max-width: 720px;
  margin-inline: auto;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
}

.modality-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 12px 20px;
  background-color: var(--flower-white);
  border-radius: 16px;
  font-size: 20px;
  text-align: left;
}

/* Sobre una sección tintada la tarjeta invierte el fondo para seguir
   contrastando; antes esto se hacía por id en cada hoja de plantilla. */
.bg-flower-white .modality-card {
  background-color: #fff;
}

.modality-card .modality-img {
  aspect-ratio: 1;
  width: 64px;
  height: auto;
  object-fit: contain;
}

.modality-card .modality-title {
  font-weight: bold;
}

.modality-card .modality-text {
  font-size: 16px;
  font-style: italic;
  line-height: 1.3;
}

.modality-card .modality-duration {
  color: var(--old-stone);
  font-size: 14px;
  line-height: 1.3;
}

.advisory .advisory-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.advisory .section-subtitle {
  margin-top: -2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-size: 32px;
  font-style: italic;
  font-weight: bold;
}

.advisory .modalities-title {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: bold;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.testimonial.text-testimonial {
}

.testimonial .testimonial-title {
  color: var(--deep-brown);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.testimonial .testimonial-content {
  margin-top: 1rem;
  /* max-height: 300px; */
  line-height: 1.5;
  /* overflow-y: auto; */
}

.testimonial .testimonial-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--accent-color);
}

.testimonial .testimonial-author {
  margin-top: 16px;
  color: var(--deep-brown);
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

.gallery-grid {
  --width: 195px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Define el comportamiento de las columnas del grid */
.gallery-grid.auto-fit-grid {
  /*
     * auto-fit: Crea tantas columnas como sea posible.
     * minmax(300px, 1fr): Cada columna tendrá un mínimo de 300px de ancho
     * y un máximo de 1 fracción del espacio disponible.
     * Esto hace que las columnas se expandan para llenar el espacio
     * cuando hay menos ítems en la última fila, o se contraigan
     * cuando es necesario para que quepan más.
     */
  grid-template-columns: repeat(auto-fit, minmax(var(--width), 1fr));
}

/* Si prefieres auto-fill (puede dejar espacios vacíos si no hay suficientes ítems) */
.gallery-grid.auto-fill-grid {
  grid-template-columns: repeat(auto-fill, minmax(var(--width), 1fr));
}

.gallery-grid > * {
  display: flex;
}

.gallery-grid .gallery-video:hover video,
.gallery-grid a:hover {
  filter: brightness(100%);
  transition: filter 0.3s ease-in-out;
}

.gallery-grid .gallery-video:hover video,
.gallery-grid a:hover {
  filter: brightness(50%);
}

.gallery-grid img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-video {
  position: relative;
}

.gallery-video video {
  aspect-ratio: 4/3;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.gallery-video-button {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  color: var(--flower-white);
  font-size: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.gallery-video:hover .gallery-video-button {
  opacity: 0;
}

.woocommerce-page main {
  padding: 3rem 0;
}

@media (max-width: 600px) {
  .wpforms-container .wpforms-field-row {
    flex-direction: column;
  }

  .wpforms-container .wpforms-one-half {
    margin: 0 !important;
    padding: 12px 0 !important;
    width: 100% !important;
  }

  .wpforms-container fieldset .wpforms-one-half {
    padding: 0 !important;
  }

  .wpforms-container fieldset .wpforms-one-half.wpforms-first {
    margin-bottom: 24px !important;
  }
}

@media (min-width: 576px) {
  .gallery-grid {
    --width: 200px;
  }
}

@media (min-width: 768px) {
  .site-header .header-icons {
    display: flex;
  }

  .site-footer .main-footer .row {
  }

  .site-footer .footer-logo {
  }

  .site-footer .footer-social {
    align-items: center;
    text-align: center;
  }

  .site-footer .footer-contact a {
    flex-direction: row;
    gap: 2rem;
  }

  .site-footer .footer-contact-text {
    text-align: right;
  }

  .gallery-grid {
    --width: 250px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  p {
    font-size: 18px;
  }

  .content-box {
    max-width: 85%;
    padding: 4rem 0;
    text-align: left;
  }

  .hero-small .hero-title {
    font-size: 36px;
  }

  .hero-small .hero-subtitle {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-title-small {
    font-size: 28px;
  }

  .site-footer .main-footer .row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }

  .site-footer .footer-logo {
  }

  .site-footer .footer-contact a {
  }

  .site-footer .footer-contact-text {
  }

  .testimonial .testimonial-title {
  }
}

@media (min-width: 1200px) {
  .admin-bar .site-header {
    top: 32px;
  }

  .site-header .main-header {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
  }

  .site-header .header-icons {
  }

  .site-header .header-menu {
    display: block;
  }

  .site-header .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu-container {
    display: none;
  }
}
