/*
Theme Name: NyarCode Website Kit
Theme URI: https://nyarcode.com/themes/gym
Author: David Cameselle Martín
Author URI: david@nyarcode.com
Description: Theme created by NyarCode.
Version: 0.0.1
License: CC BY-NC 4.0
License URI: https://creativecommons.org/licenses/by-nc/4.0/
Tags: gym, fitness, health, sports, flexbox, css grid, mobile-first
Text Domain: nyarcodegymtheme
*/

/** Normalize CSS styles | Normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css **/
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  -webkit-appearance: button;
}

[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/** End of Normalize CSS **/

/* Default font styles for the theme */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/Poppins-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/Poppins-Bold.woff2") format("woff2");
}

/*Custom font styles for headings*/
@font-face {
  font-family: "Audiowide";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/Audiowide-Regular.woff2") format("woff2");
}

:root {
  --headings-font: "Audiowide", sans-serif;
  --primary-font: "Poppins", serif;
  /* Primary (Base: #FA87A8) */
  --primary-100: #ffebf0;
  --primary-200: #fdb4c9;
  --primary-300: #fa87a8;
  --primary-400: #f6618c;
  --primary-500: #ef4072;

  /* Secondary (Base: #FFAD8A) */
  --secondary-100: #fff1eb;
  --secondary-200: #ffcbb5;
  --secondary-300: #ffad8a;
  --secondary-400: #ff9365;
  --secondary-500: #ff7c44;

  /* Tertiary (Base: #81EFC3) */
  --tertiary-100: #eafef6;
  --tertiary-200: #b1f9dc;
  --tertiary-300: #81efc3;
  --tertiary-400: #59e1aa;
  --tertiary-500: #36cb8f;

  /* Complementary (Base: #B8F987) */
  --complementary-100: #f3ffeb;
  --complementary-200: #d4fdb4;
  --complementary-300: #b8f987;
  --complementary-400: #a1f461;
  --complementary-500: #8bed3f;
  --home-title-bg-gradient: linear-gradient(
    90deg,
    var(--primary-300) 0%,
    var(--secondary-300) 100%
  );
  --header-background: url("./assets/images/bg/headerbg.webp");
  --main-background: url("./assets/images/bg/mainbg.webp");
  --footer-background: url("./assets/images/bg/footerbg.webp");
  --home-title-bg-image: url("./assets/images/bg/headerbg.webp");
}

* {
  /* font-size: 1.6rem; */
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  /*Sets the base font size to 62.5% (typically 10px if the browser default is 16px), making it easier to use rem units for sizing throughout the stylesheet.*/
}

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

body {
  font-family: var(--primary-font);
  font-size: 1.6rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--main-background, url("./assets/images/bg/mainbg.webp"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.4;
}

h1,
h2,
h3,
h4 {
  font-family: var(--headings-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--headings-500);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2rem);
}

.home-title {
  font-size: clamp(2.8rem, 6vw, 3.6rem);
}

/** Global Styles **/
/* Text Selection Styles */
::selection {
  background-color: var(--primary-300);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-300);
  color: white;
}

a {
  text-decoration: none;
}

/* Enlaces globales del main (excepto header, menu y footer) */
main a:not(.card-detail-link):not(.main-menu a) {
  color: var(--links-400);
  font-weight: bold;
  transition: color 0.3s ease;
}

main a:not(.card-detail-link):not(.main-menu a):hover {
  color: var(--links-500);
}

/* Enlaces dentro del header */
.header a:not(.main-menu a) {
  color: var(--header-400);
  font-weight: bold;
  transition: color 0.3s ease;
}

.header a:not(.main-menu a):hover {
  color: var(--header-500);
}

/* Enlaces dentro del footer */
footer a {
  color: var(--footer-400);
  font-weight: bold;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--footer-500);
}

.align-content-center {
  align-content: center;
}

/* Enlaces visitados del main */
main a:visited:not(.card-detail-link, .wp-block-button__link) {
  color: var(--links-300);
}

/* Botones globales de WordPress */
.wp-block-button__link {
  background-color: var(--buttons-400);
  color: white;
  transition: all 0.3s ease;
}

.wp-block-button__link:hover {
  background-color: var(--buttons-500);
  transform: translateY(-2px);
}

p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul {
  list-style: circle;
}

ul li::marker {
  color: var(--primary-500);
}

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

.featured-image {
  margin-bottom: 3rem;
  width: 100%;
}

.container {
  width: min(95%, 120rem);
  margin: 0 auto;
}

.container-narrow {
  width: min(95%, 80rem);
  margin: 0 auto;
}

/** Utilities **/
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--headings-500);
}

.text-secondary {
  color: var(--secondary-300);
}

.text-tertiary {
  color: var(--tertiary-300);
}

.text-complementary {
  color: var(--complementary-300);
}

.text-white {
  color: var(--primary-100);
}

.text-black {
  color: black;
}

.mv-1 {
  margin: 1rem 0;
}

.mv-2 {
  margin: 2rem 0;
}

.mv-3 {
  margin: 3rem 0;
}

.mv-4 {
  margin: 4rem 0;
}

.mv-5 {
  margin: 5rem 0;
}

.mh-1 {
  margin: 0 1rem;
}

.mh-2 {
  margin: 0 2rem;
}

.mh-3 {
  margin: 0 3rem;
}

.mh-4 {
  margin: 0 4rem;
}

.mh-5 {
  margin: 0 5rem;
}

.m-1 {
  margin: 1rem;
}

.m-2 {
  margin: 2rem;
}

.m-3 {
  margin: 3rem;
}

.m-4 {
  margin: 4rem;
}

.m-5 {
  margin: 5rem;
}

.pv-1 {
  padding: 1rem 0;
}

.pv-2 {
  padding: 2rem 0;
}

.pv-3 {
  padding: 3rem 0;
}

.pv-4 {
  padding: 4rem 0;
}

.pv-5 {
  padding: 5rem 0;
}

.ph-1 {
  padding: 0 1rem;
}

.ph-2 {
  padding: 0 2rem;
}

.ph-3 {
  padding: 0 3rem;
}

.ph-4 {
  padding: 0 4rem;
}

.ph-5 {
  padding: 0 5rem;
}

.p-1 {
  padding: 1rem;
}

.p-2 {
  padding: 2rem;
}

.p-3 {
  padding: 3rem;
}

.p-4 {
  padding: 4rem;
}

.p-5 {
  padding: 5rem;
}

.mt-5 {
  margin-top: 5rem;
}

.mb-separator {
  margin-bottom: 1.5em !important;
}

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

.prem-img img {
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: filter 0.3s ease;
}

.prem-img img:hover {
  filter: brightness(0.8) saturate(1.2);
}

/** Header **/
.header {
  color: var(--header-100);
}

.logo-bar {
  background: var(--header-background, url("./assets/images/bg/headerbg.webp"));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 200px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--header-400);
}

@media (max-width: 768px) {
  .logo-bar {
    height: 150px;
  }

  .logo-container img {
    max-height: 6rem;
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.logo-container img {
  max-height: 8rem;
  width: auto;
  /* mix-blend-mode: difference; */
}

.menu-bar {
  background: var(--main-menu-500);
  margin: 2rem auto 0;
  padding: 1.5rem 3rem;
  width: fit-content;
  border-radius: 5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 9999;
  height: 80px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-bar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  background: var(--header-background, url("./assets/images/bg/headerbg.webp"));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.menu-bar.stick-to-header {
  width: 100%;
  border-radius: 0;
  margin: 0;
}

@media (max-width: 1024px) {
  .menu-bar.fixed {
    padding: 1rem 2rem;
  }
}

.menu-bar.fixed .main-menu a {
  text-align: center;
  font-size: 1.8rem;
  padding: 0.5rem 2rem;
  background: var(--main-menu-500);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color 0.3s ease;
}

.menu-bar.fixed .main-menu a:hover {
  background: var(--main-menu-400);
}

.menu-bar.fixed .main-menu .submenu-toggle {
  background: var(--main-menu-500);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.menu-bar.fixed .main-menu .submenu-toggle:hover {
  background: var(--main-menu-400);
}

/** Main Content **/
main {
  flex: 1;
  padding-bottom: 5rem;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-bar .main-menu {
  display: flex;
  justify-content: center;
  width: 100%;

  & nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  & ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }

  & a {
    font-family: var(--headings-font);
    font-weight: 700;
    color: var(--main-menu-100);
    background-color: var(--main-menu-500);
    text-align: center;
    font-size: 1.8rem;
    padding: 0.5rem 2rem;
    display: inline-block;
  }

  & li {
    border-left: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: stretch;
  }

  & .current_page_item,
  & .current-menu-ancestor,
  & .current-menu-parent {
    border-left: 3px solid var(--main-menu-300);
  }

  /* Enlace con dropdown integrado */
  & .menu-link-with-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  & .menu-link-with-dropdown .dropdown-icon {
    font-size: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  & .menu-link-with-dropdown[data-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
  }

  /* Botón de toggle del submenú - OBSOLETO (se integró en el enlace) */
  /* Mantener estilos por compatibilidad pero no se usa en estructura nueva */
  & .submenu-toggle {
    background-color: var(--main-menu-500);
    color: var(--main-menu-100);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition:
      background-color 0.3s ease,
      transform 0.3s ease;
  }

  & .submenu-toggle:hover {
    background-color: var(--main-menu-400);
  }

  & .submenu-toggle .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s ease;
  }

  & .submenu-toggle[aria-expanded="true"] .dashicons {
    transform: rotate(180deg);
  }

  /* Estilos del submenú */
  & .sub-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: top center;
    background-color: var(--header-100);
    list-style: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.15s ease,
      transform 0.15s ease,
      visibility 0.15s;
    pointer-events: none;
  }

  /* Flecha que apunta hacia arriba */
  & .sub-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--header-100);
    border-radius: 3px;
  }

  & .sub-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
    width: auto;
    display: block;
    pointer-events: auto;
  }

  & .sub-menu li {
    border-left: none;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  & .sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--header-500);
    background-color: transparent;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--primary-font);
  }

  & .sub-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--header-400);
  }

  & .sub-menu li:first-child a {
    border-radius: 0.5rem 0.5rem 0 0;
  }

  & .sub-menu li:last-child a {
    border-radius: 0 0 0.5rem 0.5rem;
  }

  & .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: var(--main-menu-100);
  }
}

/** Footer **/
footer {
  background-color: #f8f9fa;
  background: var(--footer-background, url("./assets/images/bg/footerbg.webp"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--footer-400);
}

.footer-row.social-banner,
.footer-row.footer-menu {
  text-align: center;
  margin-bottom: 3rem;
}

.social-banner {
  margin-bottom: 3rem;
}

.social-banner nav {
  display: flex;
  justify-content: center;
}

.social-banner ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: var(--footer-300);
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-banner a:hover {
  background-color: var(--footer-500);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1);
}

.footer-menu {
  margin-bottom: 3rem;
}

.footer-menu .main-menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-menu .main-menu a {
  color: var(--footer-400);
  text-decoration: none;
  text-align: center;
  background-color: transparent;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.footer-menu .main-menu a:hover {
  color: var(--footer-500);
}

.footer-row.footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  text-align: center;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  flex: 1;
  min-width: 25rem;
}

.footer-col h4 {
  font-size: 1.7rem;
  color: var(--footer-300);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col p {
  font-size: 1.4rem;
  color: var(--footer-200);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.footer-item .footer-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--footer-200);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.4rem;
}

.footer-item .footer-link:hover {
  color: var(--footer-500);
}

.footer-item .footer-link:hover .footer-icon {
  fill: var(--footer-500);
}

.footer-item .footer-icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: var(--footer-400);
  transition: fill 0.3s ease;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.footer-item:hover .footer-icon {
  fill: var(--footer-500);
}

.copyright {
  /* border-top: 1px solid var(--footer-100); */
  padding-top: 2rem;
  text-align: center;
}

.copyright p {
  font-size: 1.2rem;
  color: var(--footer-200);
  margin-bottom: 0.5rem;
}

.copyright a {
  color: var(--footer-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: var(--footer-500);
}

/** Cards Styles **/
.list-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.card-image {
  position: relative;
}

.card-featured-diagonal {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 90px;
  height: 90px;
  overflow: hidden;
  z-index: 40;
  pointer-events: none;
}

.card-featured-diagonal-inner {
  position: absolute;
  top: 24px;
  left: -18px;
  width: 110px;
  background: var(--primary-300);
  padding: 6px 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-featured-star {
  color: #fffbe7;
  font-size: 1.1em;
  flex-shrink: 0;
}

.card-image .img-fluid {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  display: block;
}

.card-image .img-fluid-big {
  width: 100%;
  height: 45.6rem;
  object-fit: cover;
  display: block;
}

.card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 58px 12px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  height: 8rem;
  align-content: center;
}

.card-description {
  margin: 12px 0;
  padding: 0 12px;
  color: #666;
  line-height: 1.4;
  height: 8rem;
  text-align: center;
  align-content: center;
  font-size: 1.3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.card-detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-300);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 10;
}

.card-detail-link span {
  font-size: 0;
  line-height: 0;
}

.card-detail-link span::before {
  content: "»";
  font-size: 3rem;
  line-height: 1;
  display: block;
  transform: translateY(-1px);
}

.card-detail-link:hover {
  background-color: var(--tertiary-300);
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-info-description {
  margin: 16px 0 0 0;
  padding: 0 16px;
  line-height: 1.5;
  height: 10rem;
  text-align: center;
  align-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.card-meta-wrapper {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
}

.card-meta {
  background: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.card-meta.meta-author:hover {
  cursor: pointer;
  box-shadow: 0 1px 4px var(--primary-300);
  transition: box-shadow 0.3s ease;
}

.card-category-wrapper {
  position: absolute;
  top: 60px;
  left: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-category {
  background: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.card-category:hover {
  cursor: pointer;
  box-shadow: 0 1px 4px var(--primary-300);
  transition: box-shadow 0.3s ease;
}

.card-icon {
  width: 2rem;
  height: 2rem;
  vertical-align: middle;
  fill: var(--primary-300);
}

/* Card Files Styles */
.card-files {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-download-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--primary-300);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.card-download-link:hover {
  color: var(--tertiary-300);
  text-decoration: underline;
}

.card-download-link .download-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.card-download-link .download-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.gallery-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 2px dashed #ddd;
  color: #666;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 12px;
  pointer-events: none;
}

.gallery-error p {
  margin: 0;
  padding: 2rem;
}

.gallery-item:nth-child(3n) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(5n) {
  grid-row: span 2;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s;
  filter: brightness(0.95) saturate(1.1);
}

.gallery-item:hover .gallery-image {
  filter: brightness(1.05) saturate(1.3);
}

/* Add magnifier icon on hover */
.gallery-item::after {
  content: "";
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover::after {
  display: block;
  /* SVG magnifier icon as background */
  background: rgba(0, 0, 0, 0.5)
    url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="14" cy="14" r="10" stroke="white" stroke-width="2" fill="none"/><line x1="22" y1="22" x2="30" y2="30" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat center/24px 24px;
}

/* Form WP Contact 7 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.6rem;
  font-family: var(--primary-font);
  transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus {
  border-color: var(--primary-300);
  outline: none;
}

.wpcf7-form input[type="submit"] {
  background-color: var(--buttons-400);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  font-family: var(--primary-font);
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--buttons-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.wpcf7-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #333;
  font-size: 1.6rem;
  font-family: var(--primary-font);
  transition: background-color 0.3s ease;
}

.wpcf7-form .wpcf7-response-output.wpcf7-validation-errors {
  background-color: #f8d7da;
  color: #721c24;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
}

.wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ko {
  background-color: #fff3cd;
  color: #856404;
}

.wpcf7-form label {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

/* Home Page Styles */
.home-title {
  background: var(--home-title-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: padding-box;
  color: var(--primary-100);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: var(--headings-font);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.home-title span {
  display: inline-block;
  background: rgba(30, 30, 30, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.home-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 120px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  transform: skew(-20deg);
  z-index: 0;
  pointer-events: none;
}

/* Comments Section */
.comments-section {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 2px solid var(--primary-300);
}

.comments-section h3 {
  color: var(--primary-300);
  margin-bottom: 2rem;
  font-size: 2.8rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary-300);
  margin-bottom: 0.5rem;
  display: block;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.6rem;
  font-family: var(--primary-font);
  transition: border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  border-color: var(--primary-300);
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 135, 168, 0.1);
}

.comment-form-comment textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit input[type="submit"] {
  background-color: var(--buttons-400);
  color: white;
  padding: 1.2rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1.6rem;
  font-family: var(--primary-font);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
  background-color: var(--buttons-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.comment-notes {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

.required {
  color: var(--tertiary-300);
  font-weight: bold;
}

/* Comments List Styles */
.commentlist {
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.comment {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.comment:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 1rem;
}

.comment-author .fn {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-300);
  text-decoration: none;
}

.comment-content {
  font-size: 1.6rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comment-meta {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 1rem;
}

.comment-meta a {
  color: #666;
  text-decoration: none;
}

.comment-meta a:hover {
  color: var(--primary-300);
}

.reply {
  margin-top: 1rem;
}

.reply a {
  font-size: 1.4rem;
  color: var(--primary-300);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-300);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.reply a:hover {
  background-color: var(--primary-300);
  color: white;
}

.children {
  margin-left: 3rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.bypostauthor > .comment {
  border-left: 4px solid var(--primary-300);
}

#cancel-comment-reply-link {
  font-size: 1.4rem;
  color: red;
  text-decoration: none;
  margin-top: 1rem;
  display: block;
}

/* Comments Pagination */
.comment-pagination {
  margin: 3rem 0;
  text-align: center;
}

.comment-pagination .page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-pagination .page-numbers li {
  margin: 0;
}

.comment-pagination .page-numbers a,
.comment-pagination .page-numbers span {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--primary-300);
  border-radius: 6px;
  color: var(--primary-300);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.comment-pagination .page-numbers a:hover {
  background-color: var(--primary-300);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.comment-pagination .page-numbers .current {
  background-color: var(--primary-300);
  color: white;
}

.comment-pagination .page-numbers .dots {
  border: none;
  color: #666;
  background: transparent;
}

.comment-pagination .page-numbers .dots:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Blog Pagination */
.pagination {
  margin: 4rem 0;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pagination .nav-links .page-numbers {
  display: inline-block;
  padding: 1rem 1.5rem;
  border: 2px solid var(--primary-300);
  border-radius: 8px;
  color: var(--primary-300);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 4.5rem;
  text-align: center;
}

.pagination .nav-links .page-numbers:hover {
  background-color: var(--primary-300);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination .nav-links .page-numbers.current {
  background-color: var(--primary-300);
  color: white;
}

.pagination .nav-links .page-numbers.dots {
  border: none;
  color: #666;
  background: transparent;
}

.pagination .nav-links .page-numbers.dots:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.pagination .nav-links .prev,
.pagination .nav-links .next {
  font-size: 1.4rem;
  padding: 1rem 2rem;
}

/* End Blog Pagination */

.cta-banner {
  background: linear-gradient(70deg, black 0%, var(--primary-300) 100%);
  border-radius: 16px;
  padding: 2rem 2rem;
  margin: 0 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  color: white;
  z-index: -1;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50px;
  width: 100px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: skew(-15deg);
  z-index: 1;
}

.cta-banner .wp-block-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-banner .wp-block-heading {
  color: white;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-banner .wp-block-heading .dashicons {
  font-size: inherit;
  width: auto;
  height: auto;
}

.cta-banner p {
  color: white;
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-banner figure {
  margin-bottom: 0;
}

.cta-banner .wp-block-image {
  text-align: center;
}

.cta-banner .wp-block-image img {
  max-width: 100%;
  height: auto;
}

.cta-banner .wp-block-button {
  margin-top: 2rem;
}

.cta-banner .wp-block-button__link {
  background-color: white;
  color: var(--primary-300);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-banner .wp-block-button__link:hover {
  background-color: var(--tertiary-300);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-banner a {
  color: white !important;
  font-size: 1.8rem;
}

.cta-banner a:visited {
  color: white !important;
}

.cta-banner a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Testimonial Cards Styles */
.testimonials-section {
  margin: 5rem 0;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.testimonial-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid var(--primary-300);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-card::before {
  content: "\f122";
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: "dashicons";
  font-size: 4rem;
  color: var(--primary-300);
  opacity: 0.3;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.testimonial-card h3 {
  color: var(--primary-300);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testimonial-card blockquote {
  margin: 0;
  border: none;
  padding: 0;
  font-style: italic;
  position: relative;
}

.testimonial-card blockquote div,
.testimonial-card blockquote p {
  font-size: 1.7rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  position: relative;
  z-index: 2;
}

.testimonial-card blockquote::before {
  content: "";
  font-size: 8rem;
  color: var(--primary-300);
  opacity: 0.2;
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-family: serif;
  line-height: 1;
  z-index: 1;
}

.testimonial-card blockquote::after {
  content: "";
  font-size: 8rem;
  color: var(--primary-300);
  opacity: 0.2;
  position: absolute;
  bottom: -4rem;
  right: -1rem;
  font-family: serif;
  line-height: 1;
  z-index: 1;
}

/* End Testimonial Cards Styles */

/* Accordion Styles */

/* Color variables for accordions */
.accordion--primary {
  --accordion-color: var(--primary-500);
  --accordion-bg: var(--primary-100);
  --accordion-bg-open: var(--primary-500);
  --accordion-title-color: var(--primary-500);
  --accordion-title-color-open: var(--primary-100);
  --accordion-panel-bg: var(--primary-100);
  --accordion-panel-border: var(--primary-500);
}

.accordion--secondary {
  --accordion-color: var(--secondary-500);
  --accordion-bg: var(--secondary-100);
  --accordion-bg-open: var(--secondary-500);
  --accordion-title-color: var(--secondary-500);
  --accordion-title-color-open: var(--secondary-100);
  --accordion-panel-bg: var(--secondary-100);
  --accordion-panel-border: var(--secondary-500);
}

.accordion--tertiary {
  --accordion-color: var(--tertiary-500);
  --accordion-bg: var(--tertiary-100);
  --accordion-bg-open: var(--tertiary-500);
  --accordion-title-color: var(--tertiary-500);
  --accordion-title-color-open: var(--tertiary-100);
  --accordion-panel-bg: var(--tertiary-100);
  --accordion-panel-border: var(--tertiary-500);
}

.accordion--complementary {
  --accordion-color: var(--complementary-500);
  --accordion-bg: var(--complementary-100);
  --accordion-bg-open: var(--complementary-500);
  --accordion-title-color: var(--complementary-500);
  --accordion-title-color-open: var(--complementary-100);
  --accordion-panel-bg: var(--complementary-100);
  --accordion-panel-border: var(--complementary-500);
}

.wp-block-accordion-item {
  background-color: var(--accordion-bg, var(--primary-100));
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: none;
  border: 2px solid var(--accordion-color, var(--primary-500));
  transition:
    background 0.2s,
    border-color 0.2s;
  overflow: hidden;
}

.wp-block-accordion-item .wp-block-accordion-heading__toggle-title {
  padding-left: 2rem;
}

.wp-block-accordion-item.is-open {
  background-color: var(--accordion-bg-open, var(--primary-500));
}

.wp-block-accordion-item.is-open h3 {
  color: var(--accordion-title-color-open, var(--primary-100));
}

.wp-block-accordion-item h3 {
  font-size: 1.6rem;
  color: var(--accordion-title-color, var(--primary-500));
  margin: 0 auto;
  font-weight: 700;
  line-height: 1.2;
}

.wp-block-accordion-heading__toggle-icon {
  font-size: 3rem;
}

.wp-block-accordion-panel {
  background-color: var(--accordion-panel-bg, var(--primary-100));
  padding: 1.2rem 2rem 1.2rem 2rem;
  margin: 0;
  border-top: 2px solid var(--accordion-panel-border, var(--primary-500));
  box-sizing: border-box;
  font-size: 1.6rem;
}

.wp-block-accordion-panel:last-child {
  margin-bottom: 0;
}

/* End Accordion Styles */

@media (max-width: 768px) {
  .cta-banner .wp-block-group {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }
}

/* Responsive */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none;
  }

  /* Ocultar el buscador dentro del menú en pantallas grandes */
  .container.main-menu .search-form-container {
    display: none;
  }

  .menu-bar .main-menu {
    display: flex;
    justify-content: center;

    & li {
      border-bottom: 3px solid transparent;
      border-left: none;
    }

    & .current_page_item,
    & .current-menu-ancestor,
    & .current-menu-parent {
      border-bottom: 3px solid var(--main-menu-300);
      border-left: none;
    }
  }
}

@media (max-width: 1024px) {
  .menu-bar {
    position: relative;
    width: calc(100% - 2rem);
    margin: 1rem auto 0;
    padding: 1rem 2rem;
    height: auto;
    min-height: 6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;

    & li {
      display: block !important;
    }
  }

  .menu-toggle {
    background: var(--main-menu-500);
    color: var(--main-menu-100);
    border: 2px solid var(--main-menu-300);
    border-radius: 50%;
    font-size: 3rem;
    cursor: pointer;
    margin: auto;
    position: static;
    z-index: 200;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle .dashicons-menu,
  .menu-toggle .dashicons-no {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
  }

  .menu-toggle.menu-open .dashicons-menu {
    display: none;
  }

  .menu-toggle.menu-open .dashicons-no {
    display: inline-block;
  }

  .container.main-menu {
    display: none;
    flex-direction: column;
    width: calc(100% - 2rem);
    background: linear-gradient(
      180deg,
      var(--main-menu-500) 0%,
      var(--primary-300) 100%
    );
    position: absolute;
    top: calc(100% + 1rem);
    left: -2rem;
    right: -2rem;
    z-index: 150;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Buscador dentro del menú en mobile */
  .container.main-menu .search-form-container {
    order: -1;
    width: 100%;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  }

  .container.main-menu .search-input-wrapper {
    width: 100%;
    margin-left: 0;
  }

  .container.main-menu .search-input {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.6rem;
    height: 4.5rem;
  }

  .container.main-menu .search-icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .container.main-menu .search-icon svg {
    width: 2.4rem;
    height: 2.4rem;
  }

  .container.main-menu.main-menu-open {
    display: flex;
  }

  .menu-bar .main-menu nav {
    flex-direction: column;
    width: 100%;
  }

  .menu-bar .main-menu ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .menu-bar .main-menu li {
    border-left: 3px solid transparent;
    width: 100%;
    position: relative;
  }

  .menu-bar .main-menu .current_page_item,
  .menu-bar .main-menu .current-menu-ancestor,
  .menu-bar .main-menu .current-menu-parent {
    border-left: 3px solid var(--main-menu-100);
  }

  .menu-bar .main-menu a {
    font-size: 1.8rem;
    padding: 1.2rem 2rem;
    color: var(--main-menu-100);
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    display: block;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
  }

  .menu-bar .main-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .menu-bar .main-menu .menu-link-with-dropdown {
    justify-content: center;
  }

  .menu-bar .main-menu .menu-item-wrapper a {
    flex: 1;
    border-radius: 0.5rem 0 0 0.5rem;
  }

  .menu-bar .main-menu .submenu-toggle {
    background-color: var(--main-menu-500);
    border: none;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }

  .menu-bar .main-menu .submenu-toggle:hover {
    background-color: var(--main-menu-400);
  }

  .menu-bar .main-menu .submenu-toggle .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
  }

  /* Submenú en mobile */
  .menu-bar .main-menu .sub-menu {
    display: none;
    position: static;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: none;
    min-width: unset;
    width: 100%;
    opacity: 1;
    visibility: visible;
  }

  .menu-bar .main-menu .sub-menu.show {
    display: block;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .menu-bar .main-menu .sub-menu li {
    width: 100%;
    padding: 0 1rem;
  }

  .menu-bar .main-menu .sub-menu a {
    font-size: 1.6rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--main-menu-100);
    margin: 0.3rem 0;
    border-radius: 0.5rem;
  }

  .menu-bar .main-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item:nth-child(3n),
  .gallery-item:nth-child(5n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /*Card responsive styles - 2 columnas en tablets */
  .list-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-image .img-fluid {
    height: 20rem;
  }

  .card-title {
    font-size: 1.5rem;
    height: 8rem;
  }

  .card-description {
    font-size: 1.4rem;
    height: 9rem;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 120px;
    gap: 1rem;
  }
}

/** Media Queries **/
/* Mobile First - Max Width 767px */
@media (max-width: 767px) {
  /* Burger Menu Styles */

  /*Card responsive styles */
  .list-services {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-image .img-fluid {
    height: 25rem;
  }

  .card-title {
    font-size: 1.8rem;
    height: 8rem;
  }

  .card-description {
    font-size: 1.5rem;
    height: 10rem;
  }

  .card-download-link {
    font-size: 1.2rem;
  }

  .card-detail-link {
    width: 35px;
    height: 35px;
    bottom: 15px;
    right: 15px;
    font-size: 1.6rem;
  }

  /* Footer Responsive Styles */
  .footer-info {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    min-width: auto;
    margin-bottom: 2rem;
  }

  .social-banner a {
    width: 4rem;
    height: 4rem;
    margin: 0 0.5rem;
    font-size: 1.8rem;
  }

  .footer-menu .main-menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .card-title {
    font-size: 1.4rem;
    height: 8rem;
  }
}

/* Tablet and Desktop - Min Width 768px */
@media (min-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .main-menu a {
    font-size: 2rem;
    display: inline-block;
    color: var(--main-menu-100);
    background-color: var(--main-menu-500);
    padding: 0.5rem 1rem;
  }

  /* Aplicar animación al wrapper cuando existe */
  .main-menu .menu-item-wrapper {
    position: relative;
    display: inline-flex;
  }

  .main-menu .menu-item-wrapper::before,
  .main-menu .menu-item-wrapper::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--main-menu-300);
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
  }

  .main-menu .menu-item-wrapper::before {
    top: -3px;
    transform-origin: left;
  }

  .main-menu .menu-item-wrapper:hover::after,
  .main-menu .menu-item-wrapper:hover::before {
    transform: scaleX(1);
  }

  /* Para items sin wrapper (sin submenú) mantener la animación en el enlace */
  .main-menu li:not(.menu-item-has-children) > a {
    position: relative;
  }

  .main-menu li:not(.menu-item-has-children) > a::before,
  .main-menu li:not(.menu-item-has-children) > a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--main-menu-300);
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
  }

  .main-menu li:not(.menu-item-has-children) > a::before {
    top: -3px;
    transform-origin: left;
  }

  .main-menu li:not(.menu-item-has-children) > a:hover::after,
  .main-menu li:not(.menu-item-has-children) > a:hover::before {
    transform: scaleX(1);
  }

  /* Para items CON hijos - aplicar el mismo efecto de barras */
  .main-menu .menu-item-has-children > a {
    position: relative;
  }

  .main-menu .menu-item-has-children > a::before,
  .main-menu .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--main-menu-300);
    bottom: -3px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
  }

  .main-menu .menu-item-has-children > a::before {
    top: -3px;
    transform-origin: left;
  }

  .main-menu .menu-item-has-children > a:hover::after,
  .main-menu .menu-item-has-children > a:hover::before {
    transform: scaleX(1);
  }

  /* Estilo específico para menú del header */
  .header .main-menu .menu-item-wrapper::before,
  .header .main-menu .menu-item-wrapper::after,
  .header .main-menu li:not(.menu-item-has-children) > a::before,
  .header .main-menu li:not(.menu-item-has-children) > a::after,
  .header .main-menu .menu-item-has-children > a::before,
  .header .main-menu .menu-item-has-children > a::after {
    background: var(--main-menu-300);
  }

  /* Sidebar Styles */
  .sidebar {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
  }

  .sidebar section {
    margin-bottom: 5rem;
  }

  .sidebar aside {
    margin: 5rem 0;
    padding: 2rem;
  }
}

/* Sidebar de entradas recientes */
.sidebar-recent-posts {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  width: 340px;
  height: fit-content;
  max-width: 100%;
}

.sidebar-recent-posts h2 {
  font-family: var(--headings-font);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  margin-top: 0;
  text-align: left;
}

.sidebar-recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-recent-posts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-recent-posts a {
  color: var(--primary-400);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-recent-posts a:hover {
  color: var(--primary-500);
}

.sidebar-recent-posts .recent-thumb {
  display: block;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.sidebar-recent-posts .recent-title {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  display: block;
}

.sidebar-recent-posts .recent-date {
  font-size: 1.2rem;
  color: #888;
}

@media (max-width: 1140px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .sidebar-recent-posts {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding: 2rem 1.5rem;
  }

  .sidebar-recent-posts ul {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-recent-posts ul::-webkit-scrollbar {
    height: 8px;
  }

  .sidebar-recent-posts ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .sidebar-recent-posts ul::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: 4px;
  }

  .sidebar-recent-posts ul::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
  }

  .sidebar-recent-posts li {
    flex-direction: row;
    min-width: 200px;
    max-width: 250px;
    align-items: flex-start;
    border-right: 2px solid var(--primary-100);
  }

  .sidebar-recent-posts .recent-thumb {
    width: 80px;
    max-width: 80px;
    min-width: 80px;
    height: 80px;
  }

  .sidebar-recent-posts .recent-title {
    font-size: 1.4rem;
  }
}

/* Search */
.search-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  margin-left: 1rem;
}

.search-input {
  border-style: none;
  height: 50px;
  width: 250px;
  padding: 10px 40px 10px 10px;
  outline: none;
  border-radius: 5rem;
  background-color: var(--main-menu-100);
  box-shadow: 0px 0px 3px var(--main-menu-400);
  color: var(--main-menu-500);
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
  font-size: 17px;
  transition: none;
}

@media (max-width: 1024px) {
  .search-input-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .search-input {
    width: 100%;
    max-width: 280px;
    font-size: 15px;
  }

  /* Ocultar el buscador fuera del menú en tablets y mobile */
  .menu-bar > .search-form-container {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-input {
    max-width: 200px;
  }
}

.search-input::placeholder {
  color: var(--main-menu-400);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  outline: none;
  border-style: none;
  border-radius: 50%;
  background-color: transparent;
  transition: 0.2s linear;
}

/* Cambia colores cuando está dentro de .menu-bar.fixed */
.menu-bar.fixed .search-input {
  background-color: var(--main-menu-100);
  color: var(--main-menu-500);
  box-shadow: 0px 0px 3px var(--main-menu-500);
}

.menu-bar.fixed .search-input::placeholder {
  color: var(--main-menu-500);
}

.menu-bar.fixed .search-icon:focus ~ .search-input,
.menu-bar.fixed .search-input:focus {
  border-bottom: 2px solid var(--main-menu-400);
  border-left: 2px solid var(--main-menu-400);
}

/* Random Cards Styles */
.randomcard-game {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

.randomcard-display {
  position: relative;
  background: var(--header-400);
  border-radius: 20px;
  padding: 2rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--header-500);
}

.category-selector {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.category-selector select {
  background: var(--header-500);
  color: white;
  border: none;
  border-radius: 1.2rem;
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  height: 4.5rem;
}

.category-selector select:hover {
  background-color: var(--header-400);
}

.randomcard-content {
  text-align: center;
  max-width: 60rem;
  margin: 2rem 0;
}

.randomcard-title {
  font-size: 3rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.randomcard-description {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.randomcard-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
}

.btn-next-card {
  background: var(--header-100);
  color: var(--header-500);
  border: 1px solid var(--header-500);
  border-radius: 12px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 64, 114, 0.3);
  height: 4.5rem;
  width: 25rem;
}

.btn-next-card:hover {
  box-shadow: 0 6px 20px rgba(239, 64, 114, 0.4);
}

.category-tag {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--header-500);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 25rem;
  height: 4.5rem;
}

.category-tag::before {
  content: "🏷️";
}

.no-cards {
  text-align: center;
  padding: 2rem;
  color: #666;
}

@media (max-width: 768px) {
  .randomcard-display {
    padding: 1.5rem;
    min-height: 500px;
  }

  .randomcard-title {
    font-size: 2.5rem;
    margin-top: 6rem;
  }

  .randomcard-description {
    font-size: 1.4rem;
  }

  .category-selector {
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  .category-selector select {
    width: 100%;
    font-size: 1.4rem;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    height: 4rem;
  }

  .randomcard-controls {
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
    width: 90%;
  }

  .btn-next-card {
    width: 100%;
    font-size: 1.6rem;
    padding: 1rem;
  }

  .category-tag {
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    justify-content: center;
    font-size: 1.4rem;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--primary-300);
  color: var(--primary-100);
  border: 2px solid var(--primary-200);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-400);
  border-color: var(--primary-300);
  transform: translateY(-5px) scale(1.05);
}

.back-to-top:active {
  background: var(--primary-500);
  transform: translateY(-2px) scale(1);
}

.back-to-top svg {
  width: 2.4rem;
  height: 2.4rem;
  stroke-width: 3;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .back-to-top {
    width: 4.5rem;
    height: 4.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .back-to-top svg {
    width: 2rem;
    height: 2rem;
  }
}

.nc-toc {
  display: flex;
  flex-direction: column;
  margin: 2.5rem 0;
  font-family: var(--primary-font);
  color: #222;
}

.nc-toc-title {
  font-family: var(--headings-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.nc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.nc-toc-list.collapsed {
  max-height: 50rem;
}

.nc-toc-toggle-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: var(--primary-400);
  color: white;
  border: none;
  border-radius: 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-self: flex-start;
  width: auto;
}

.nc-toc-toggle-btn.show {
  display: inline-block;
}

.nc-toc-toggle-btn:hover {
  background: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nc-toc-list > li {
  margin-bottom: 1.1rem;
}

.nc-toc-list a {
  color: var(--primary-400);
  text-decoration: none;
  font-weight: 600;
  border-left: 3px solid var(--primary-200);
  padding: 0.2rem 0.8rem;
  border-radius: 0 0.5rem 0.5rem 0;
  display: inline-block;
  transition: all 0.2s ease;
}

.nc-toc-list a:hover {
  background: var(--primary-100);
  color: var(--primary-500);
  border-left-color: var(--primary-400);
}

/* Niveles anidados */
.nc-toc-list ul {
  margin: 0.5rem 0 0 1.5rem;
  border-left: 2px dashed var(--primary-100);
  padding-left: 1.2rem;
}

.nc-toc-list ul li {
  margin-bottom: 0.7rem;
}

/* Ajustes por nivel de profundidad */
.nc-toc-list > li > a {
  font-size: 2rem !important;
}

.nc-toc-list > li > ul > li > a {
  font-size: 1.8rem !important;
  font-weight: 500;
  border-left-width: 2px;
}

.nc-toc-list > li > ul > li > ul > li > a {
  font-size: 1.6rem !important;
  border-left-width: 1.5px;
  color: var(--primary-300);
}

@media (max-width: 600px) {
  .nc-toc {
    padding: 1.2rem 0.7rem;
    font-size: 1.4rem;
    max-width: 100%;
  }

  .nc-toc-title {
    font-size: 1.5rem;
  }
}

/* Sitemap Page */
.sitemap-section {
  margin-bottom: 2.5rem;
}

.sitemap-section h2 {
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-300);
  display: inline-block;
}

.sitemap-tree {
  list-style: none;
  padding-left: 1.2rem;
  margin: 0;
}

.sitemap-tree > li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.2rem;
  line-height: 1.6;
}

.sitemap-tree > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-300);
}

.sitemap-tree > li:last-child::before {
  height: calc(0.25rem + 0.8em + 1px);
}

.sitemap-tree > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.25rem + 0.8em);
  width: 0.8rem;
  height: 2px;
  background: var(--primary-300);
}

.sitemap-tree a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.sitemap-tree a:hover {
  color: var(--primary-500);
}

/* Sub-árboles anidados */
.sitemap-tree .sitemap-tree {
  margin-top: 0.25rem;
}

/* Filas de 2 columnas: fila 1 (Menú principal + Footer), fila 2 (Redes + Blog) */
.sitemap-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.sitemap-row .sitemap-section {
  margin-bottom: 0;
}

/* Blog: ancho completo (ocupa las dos columnas si hay grid en el padre) */
.sitemap-section--blog {
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .sitemap-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sitemap-row .sitemap-section {
    margin-bottom: 2.5rem;
  }
}

.contribute-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeInModalBg 0.2s;
  backdrop-filter: blur(2px);
}

@keyframes fadeInModalBg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.contribute-modal-content {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  max-width: 95vw;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: fadeInModalContent 0.25s cubic-bezier(0.4, 1.3, 0.6, 1) 0.05s both;
}

@keyframes fadeInModalContent {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.contribute-modal-content h2 {
  margin-top: 0;
  font-family: var(--headings-font);
  color: var(--primary-400);
  font-size: 2.2rem;
  text-align: center;
}

.contribute-modal-content p {
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
}

.contribute-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  z-index: 1;
}
.contribute-modal-close:hover,
.contribute-modal-close:focus {
  color: var(--primary-400);
  outline: none;
}

@media (max-width: 500px) {
  .contribute-modal-content {
    padding: 2rem 1rem 1.5rem 1rem;
    max-width: 95vw;
  }
}

/* ========================= */
/* Botón PayPal Modal        */
/* ========================= */
.contribute-paypal-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.contribute-paypal-btn {
  background: #0070ba;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.1s;
  box-shadow: 0 2px 8px rgba(0, 112, 186, 0.08);
}
.contribute-paypal-btn:hover,
.contribute-paypal-btn:focus {
  background: #005ea6;
  outline: none;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.15);
}
.contribute-paypal-btn svg {
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* ========================= */
/* Blog Order Filter         */
/* ========================= */
.blog-order-filter {
  display: flex;
  justify-content: right;
  margin: 2rem 0 3rem;
  animation: slideInDown 0.4s ease-out;
}

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

.blog-order-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 135, 168, 0.05));
  padding: 1.5rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(250, 135, 168, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.blog-order-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--headings-500);
  white-space: nowrap;
}

.blog-order-select {
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
  font-family: var(--primary-font);
  font-weight: 500;
  border: 2px solid var(--primary-200);
  border-radius: 8px;
  background-color: white;
  color: var(--headings-500);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 220px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa87a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5rem;
  padding-right: 3rem;
}

.blog-order-select:hover {
  border-color: var(--primary-300);
  box-shadow: 0 4px 12px rgba(250, 135, 168, 0.2);
}

.blog-order-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(250, 135, 168, 0.2);
}

.blog-order-select option {
  padding: 0.75rem 1rem;
  background: white;
  color: var(--headings-500);
  font-weight: 500;
}

.blog-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-category-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--headings-500);
  white-space: nowrap;
}

.blog-category-select {
  padding: 0.75rem 1.5rem;
  font-size: 1.5rem;
  font-family: var(--primary-font);
  font-weight: 500;
  border: 2px solid var(--primary-200);
  border-radius: 8px;
  background-color: white;
  color: var(--headings-500);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 220px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa87a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5rem;
  padding-right: 3rem;
}

.blog-category-select:hover {
  border-color: var(--primary-300);
  box-shadow: 0 4px 12px rgba(250, 135, 168, 0.2);
}

.blog-category-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(250, 135, 168, 0.2);
}

.blog-category-select option {
  padding: 0.75rem 1rem;
  background: white;
  color: var(--headings-500);
  font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .blog-order-form {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    width: 95%;
    max-width: 100%;
  }

  .blog-order-select {
    width: 100%;
    min-width: unset;
  }

  .blog-order-label {
    font-size: 1.3rem;
  }

  .blog-order-select {
    font-size: 1.3rem;
  }

  .blog-category-select {
    width: 100%;
    min-width: unset;
    font-size: 1.3rem;
  }

  .blog-category-label {
    font-size: 1.3rem;
  }

  /* Mejorar submenú en móviles */
  .menu-bar .main-menu .sub-menu {
    position: static;
    min-width: unset;
    max-width: 100%;
    max-height: none;
    overflow-y: visible;
    border-radius: 0.5rem;
  }

  .menu-bar .main-menu .sub-menu a {
    padding: 0.875rem 1.5rem;
    font-size: 1.4rem;
  }

  .menu-bar .main-menu .sub-menu a:hover {
    transform: none;
  }
}

.rm-white-bg {
  mix-blend-mode: multiply;
}

figcaption {
  text-align: center;
}

/* ======================================
   ESTILOS PARA MENÚ LATERAL
   ====================================== */

/* Header con menú lateral */
.header--lateral-menu {
  position: relative;
}

.header--lateral-menu .logo-bar {
  width: 100%;
}

/* Menú lateral - Flotante debajo del header */
.lateral-menu {
  position: fixed;
  left: 3rem;
  width: auto;
  height: auto;
  background-color: var(--primary-500);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.25);
  z-index: 999;
  list-style: none;
  margin: 0;
  margin-top: 3rem;
}

.lateral-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

.lateral-menu li {
  margin: 0;
  position: relative;
}

.lateral-menu li:nth-child(6) {
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.lateral-menu li + li {
  margin-top: 0.75rem;
}

.lateral-menu a,
.lateral-menu button.dashicons {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* .lateral-menu a:hover,
.lateral-menu a:focus,
.lateral-menu a.current-menu-item {
  background-color: rgba(255, 255, 255, 0.2);
  outline: 0;
} */

.lateral-menu a.dashicons {
  font-family: "Dashicons";
  font-size: 5rem;
  color: var(--header-400) !important;
}

.lateral-menu a.dashicons:hover {
  color: var(--header-100) !important;
}

.lateral-menu button.dashicons {
  font-family: "Dashicons";
  font-size: 5rem;
  color: var(--header-400) !important;
}

.lateral-menu button.dashicons:hover {
  color: var(--header-100) !important;
}

.lateral-menu span.lateral-menu__tooltip {
  position: absolute;
  background-color: var(--header-100);
  color: var(--header-500);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  left: calc(100% + 2.5rem);
  top: 50%;
  transform: translateY(-50%) scale(0);
  transform-origin: left center;
  opacity: 0;
  transition: 0.15s ease;
  font-size: 1.4rem;
  font-weight: 500;
  font-family: var(--primary-font);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.lateral-menu span.lateral-menu__tooltip::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  position: absolute;
  background-color: var(--header-100);
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 3px;
}

/* Backdrop que aparece cuando se abre un tooltip */
.lateral-menu__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.lateral-menu__backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mostrar tooltip cuando está activo */
.lateral-menu span.lateral-menu__tooltip.active {
  transform: translateY(-50%) scale(1);
  opacity: 1;
  z-index: 999;
}

/* Opcional: efecto hover sin abrir */
.lateral-menu button:hover + span.lateral-menu__tooltip:not(.active) {
  /* No hacemos nada aquí, solo click abre */
}

/* Contenedor de subitems dentro del tooltip */
.lateral-menu__subitems {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lateral-menu__subitems li {
  margin: 0;
  padding: 0;
}

.lateral-menu__subitems a {
  color: var(--header-500) !important;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.25rem 0;
  display: block;
  width: 100%;
  transition: all 0.2s ease;
  border: none !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  font-weight: normal !important;
}

.lateral-menu__subitems a:hover {
  font-weight: bolder !important;
}

/* Scroll del menú lateral */
.lateral-menu::-webkit-scrollbar {
  width: 6px;
}

.lateral-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.lateral-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.lateral-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive: Menú lateral en tablet */
@media (max-width: 1024px) {
  .lateral-menu {
    left: 1.5rem;
    margin-top: 3rem;
    padding: 0.6rem;
  }

  .lateral-menu li + li {
    margin-top: 0.6rem;
  }

  .lateral-menu a {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 7px;
  }

  .lateral-menu a.dashicons {
    font-size: 3rem;
  }

  .lateral-menu a span {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }

  .lateral-menu li:nth-child(6) {
    margin-top: 4rem;
    padding-top: 1rem;
  }
}

/* Estilos para submenús del menú lateral */
.lateral-menu__item-main {
  /* Todos los items como botones principales */
}

/* Responsive: Menú lateral en tablet */
@media (max-width: 1024px) {
  .lateral-menu {
    left: 1.5rem;
    margin-top: 3rem;
    padding: 0.6rem;
  }

  .lateral-menu li + li {
    margin-top: 0.6rem;
  }

  .lateral-menu a {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 7px;
  }

  .lateral-menu a.dashicons {
    font-size: 3rem;
  }

  .lateral-menu a span {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }

  .lateral-menu li:nth-child(6) {
    margin-top: 4rem;
    padding-top: 1rem;
  }
}

/* Responsive: Menú lateral en móvil */
@media (max-width: 480px) {
  .lateral-menu {
    left: 1rem;
    margin-top: 3rem;
    padding: 0.5rem;
  }

  .lateral-menu li + li {
    margin-top: 0.5rem;
  }

  .lateral-menu a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
  }

  .lateral-menu a.dashicons {
    font-size: 3rem;
  }

  .lateral-menu a span {
    font-size: 1.1rem;
    padding: 0.35rem 0.7rem;
    left: calc(100% + 1rem);
  }

  .lateral-menu li:nth-child(6) {
    margin-top: 3rem;
    padding-top: 0.8rem;
  }
}
