/*
Theme Name: Arbone
Theme URI: https://wordpress.org/themes/
Author: Álvaro Quevedo
Author URI: https://profile-aq.netlify.app/
Description: AQ cuenta con más de 50 diseños de patrones, 7 diseños de página y un sistema de diseño totalmente personalizable con estilos globales. AQ se integra a la perfección con todas las nuevas características del editor de WordPress, ofreciéndote el constructor de sitios web más ligero y potente del planeta, ¡sin necesidad de costosos plugins constructores de páginas!
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.3
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aq
Tags: blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks

AQ WordPress Theme, (C) 2025 Álvaro Quevedo.
AQ is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

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

html {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

b,
strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
  padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
  padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--x-small);
  margin-bottom: 0;
  margin-top: 20px;
  text-align: center;
}

img,
figure {
  max-width: 100%;
  height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
  a {
    text-decoration-thickness: 0.1rem !important;
  }
}

/* ===========================================================
   NAVEGACIÓN RESPONSIVE (breakpoint del Navigation block)
   =========================================================== */
/* Mobile: mostrar contenedor responsive cuando está abierto */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

/* Mobile: ocultar contenedor responsive cuando no está abierto */
body
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
    .is-menu-open
  ) {
  display: none !important;
}
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    background-color: var(--wp--preset--color--base);
}
/* Cambio de comportamiento */
@media (min-width: 720px) {
  /* En escritorio no mostramos el menú "open" */
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  /* En escritorio mostramos el contenedor principal */
  body
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(
      .is-menu-open
    ) {
    display: block !important;
  }
}
/* Standardize form styling
--------------------------------------------- */

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

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
  appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
  color: var(--wp--preset--color--main);
  border-radius: 5px;
  border: solid 1px var(--wp--preset--color--border-dark);
  padding: 0.5em 1em;
  font-size: var(--wp--preset--font-size--small);
  background-color: #ffffff;
}

input:focus-visible,
textarea:focus-visible {
  outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

label {
  width: 100%;
  display: block;
}

::placeholder {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
  display: block;
}

/* Utilidad tipográfica para mostrar texto con la fuente serif en cursiva. */
.italic {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
}
/* Aplica el color principal a textos o elementos de marca. */
.brand {
  color: var(--wp--preset--color--primary);
}
/* Aplica el color de acento del tema. */
.accent {
  color: var(--wp--preset--color--primary-accent);
}
/* Inline code */
*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--tertiary);
  padding: 3px 5px;
  position: relative;
  border-radius: 3px;
}
.card-35-percent {
  min-width: 18rem;
}

.b-shadow {
  box-shadow: 0px 8px 40px -20px rgb(21 14 41 / 12%);
  transition: 0.4s ease;
}

/* Permite posicionar correctamente elementos relacionados con la lista de categorías. */
.wp-block-categories {
  position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
  margin-bottom: -8px !important;
}

/* =========================================================
   IMAGEN DE LOS POSTS / BLOG
   ========================================================= */

.wp-block-post-featured-image {
  overflow: hidden;
  border-radius: 12px;
}

/* El enlace ocupa correctamente el contenedor */

.wp-block-post-featured-image > a {
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

/* Imagen */

.wp-block-post-featured-image img {
  display: block;
  width: 100%;

  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
}

/* Hover */

.wp-block-post-featured-image:hover img {
  transform: scale(1.04);
}
/* Enlace "Leer más" */
.wp-block-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

/* Flecha */
.wp-block-read-more::after {
  content: "→";
  display: inline-block;
  transition: transform 0.25s ease;
  color: currentColor;
}

/* Hover */
.wp-block-read-more:hover {
  color: var(--wp--preset--color--primary);
  gap: 11px;
}
.wp-block-read-more:hover::after {
  transform: translateX(3px);
}
/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
  margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding
  .wp-block-post-template
  li:last-child
  .wp-block-separator {
  display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
  display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
  display: none;
}

.row-logos > figure {
  flex-shrink: 1 !important;
}
/* Organiza los logotipos en una cuadrícula responsive. */
.logos-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(8rem, 100%), 1fr));
  gap: var(--wp--preset--spacing--large);
  @media (min-width: 768px) {
    grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
    gap: var(--wp--preset--spacing--medium);
  }
}
/* Ajusta el margen superior de la fila de contenido homologado según el viewport. */
.homologado-row {
  margin-top: var(--wp--preset--spacing--x-large) !important;
  @media (min-width: 1280px) {
    margin-top: 0 !important;
  }
}
/* Sticky header */

body:not(.wp-admin) header:has(> .is-position-sticky) {
  position: sticky;
  top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
  header:has(> .is-position-sticky) {
    top: 0;
  }
}

/* Mobile helper classes */

@media (max-width: 781px) {
  .aq-hide-on-mobile {
    display: none;
  }

  .aq-unstick-mobile {
    position: static;
  }

  header:has(> .aq-unstick-mobile) {
    position: static;
  }
}

.custom-form {
  .wpforms-container {
    margin: 0 !important;
  }
  .wpforms-field-name {
    padding-top: 0;
  }

  .form-group {
    label {
      font-weight: 400;
      color: color-mix(
        in srgb,
        var(--wp--preset--color--main) 60%,
        transparent
      ) !important;
    }
    input,
    textarea {
      border: 1px solid
        color-mix(in srgb, var(--wp--preset--color--main) 40%, transparent) !important;
      border-radius: 6px !important;
      box-shadow: none;
      outline: none;
      color: var(--wp--preset--color--main) !important;
      background-color: color-mix(
        in srgb,
        var(--wp--preset--color--tertiary) 100%,
        transparent
      ) !important;
      &:focus {
        border-color: var(--wp--preset--color--primary) !important;
      }
    }
  }
  button {
    background-color: var(--wp--preset--color--primary) !important;
    border: 2px solid transparent !important;
    color: var(--wp--preset--color--base) !important;
    border-radius: 999px !important;

    @media (max-width: 599px) {
      width: 100%;
    }
    transition: all 0.2s ease !important;
    border-radius: 0;
    font-weight: 500;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: calc(0.667em + 2px) calc(1.333em + 2px) !important;
    height: auto !important;
    margin-top: 10px !important;
    &:hover {
      background-color: var(--wp--preset--color--main) !important;
      opacity: 1 !important;
    }
  }
}
/* Fija la cabecera y controla su tamaño, transición, logotipo y estados de visibilidad. */
header {
  --logo-color: var(--wp--preset--color--primary);
  padding-top: 20px;
  padding-bottom: 20px;
  @media (min-width: 720px) {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .logo {
    path {
      transition: fill 400ms ease;
      fill: var(--logo-color);
    }
    a {
      line-height: 0;
      width: 30px !important;
      @media (min-width: 720px) {
        width: 36px !important;
      }
    }
  }
}
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  border-bottom: 1px solid transparent;
  border-bottom-color: var(--wp--preset--color--border-dark);
  transition:
    transform 250ms ease,
    background-color 400ms ease,
    border-bottom-color 0.3s ease,
    backdrop-filter 400ms ease;

  /* Estado inicial */
  background-color: var(--wp--preset--color--base);

  &.active {
    /* Ligero fondo + blur */
    /* border-bottom-color: var(--wp--preset--color--border-dark); */
    @media (min-width: 720px) {
      background-color: color-mix(
        in srgb,
        var(--wp--preset--color--base) 85%,
        transparent
      );
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
  }

  &.hide {
    transform: translateY(-105%);
    transition-delay: 150ms;
  }
}
/* Recorta y redondea la imagen hero de la portada, con un radio mayor en escritorio. */
.home.hero-img {
  overflow: hidden;
  border-radius: 24px;
  @media (min-width: 782px) {
    border-radius: 80px 0 0 80px;
  }
}

header.header-fixed + main,
header.header-fixed + .woocommerce.product > main {
  padding-top: 82px !important;
  @media (min-width: 720px) {
    padding-top: 100px !important;
  }
}

/* Posiciona el precio del curso respecto al título o contenedor del curso. */
.course-title {
  position: relative;
  /* Muestra el precio del curso como una etiqueta posicionada en la esquina superior. */
  .price {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-12%);
    border: 1px solid
      color-mix(in srgb, var(--wp--preset--color--main) 40%, transparent);
    border-radius: 999px !important;
    padding: 8px 16px 5px 16px !important;
  }
}
.desaturate img {
  min-height: unset !important;
  max-height: 240px;
  filter: grayscale(25%);
}
/* Contenedor de llamada a la acción; superpone la imagen y el contenido para crear el efecto visual. */
.cta {
  position: relative;
  > img {
    object-fit: cover !important;
    z-index: 1;
    opacity: 0.05;
  }
  /* Posiciona la etiqueta de Sequra respecto al bloque CTA. */
  .sequra-pill {
    position: absolute;
    bottom: -25px;
  }
  .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
  }
}
/* Superpone ligeramente los avatares consecutivos para formar una lista compacta. */
.avatars-list {
  figure:not(:first-child) {
    margin-left: -10px;
  }
}
/* Oculta el elemento en móvil y lo muestra a partir del breakpoint de escritorio. */
.hide-mobile {
  display: none;
  @media (min-width: 782px) {
    display: block;
  }
}
/* Muestra el elemento en móvil y lo oculta en escritorio. */
.hide-desktop {
  display: block;
  @media (min-width: 782px) {
    display: none;
  }
}
/* Da formato vertical y compacto a la fecha personalizada de una entrada. */
.custom-post-date {
  time {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    min-width: 40px;
    white-space: nowrap;
    text-align: center;
  }
  /* Destaca visualmente el día de la fecha. */
  .day {
    display: block;
    font-family: var(--wp--preset--font-family--instrument-serif);
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1;
  }
  /* Muestra el mes en mayúsculas y con el color principal. */
  .month {
    display: block;
    font-size: 0.825em;
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
    font-weight: 600;
  }
}
/* ===========================================================
   POST PROJECTS (estilos particulares)
   =========================================================== */

.project-card {
  border: 1px solid var(--wp--preset--color--border-dark);
  border-radius: 24px;
  padding: var(--wp--preset--spacing--medium);
  background-color: color-mix(
    in srgb,
    var(--wp--preset--color--white) 50%,
    transparent
  );
  figure {
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 12px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
  }
  .title-wrapper {
    h3 {
      color: var(--wp--preset--color--main);
      font-weight: var(--wp--custom--font-weight--semi-bold);
      margin: 1rem 0 0;
      transition: color 0.3s ease;
      display: inline-block;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  &:hover {
    img {
      transform: scale(1.04);
    }
    .title-wrapper {
      h3 {
        color: var(--wp--preset--color--primary);
      }
    }
  }
}
.project-taxonomia {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: calc(var(--wp--preset--spacing--small) * 1.25);
}

.project-taxonomia span,
.project-taxonomia a {
  display: inline-block;
  padding: 5px 15px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 999px;
}

.project-sistema span,
.project-sistema a {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

.projects-swiper {
  padding-bottom: var(--wp--preset--spacing--large) !important;
  .swiper-slide {
    box-sizing: border-box;
    min-width: 0;
    user-select: none;
  }
  .swiper-pagination {
    .swiper-pagination-bullet {
      transform: scale(0.65);
      position: relative;
      width: 12px;
      height: 12px;
      background: color-mix(
        in srgb,
        var(--wp--preset--color--primary) 15%,
        transparent
      );
      opacity: 1;
      &.swiper-pagination-bullet-active {
        transform: scale(1);
        background: var(--wp--preset--color--primary);
      }
      &.swiper-pagination-bullet-active-main {
        transform: scale(1);
      }
      &.swiper-pagination-bullet-active-prev,
      &.swiper-pagination-bullet-active-next {
        transform: scale(0.85);
      }
      &.swiper-pagination-bullet-active-prev-prev,
      &.swiper-pagination-bullet-active-next-next {
        transform: scale(0.65);
      }
    }
  }
}
/* ===========================================================
   BOTONES GLOBALES / WP BLOCK BUTTONS
   =========================================================== */
/* Hace que el botón y su contenedor ocupen todo el ancho en móvil. */
.btn-w-100 {
  @media (max-width: 599px) {
    width: 100%;
    .wp-block-button {
      width: 100%;
    }
  }
}
/* Fuerza el elemento a ocupar el 100 % del ancho disponible. */
.full-width {
  width: 100%;
}
/* Convierte la barra lateral en un panel sticky y limita su altura en escritorio. */
.sidebar {
  @media (min-width: 782px) {
    position: sticky;
    top: 24px;
    height: fit-content;
    transition: top 0.3s ease !important;
  }
  /* Lista las últimas noticias como tarjetas compactas. */
  .ultimas-noticias {
    display: grid;
    gap: var(--wp--preset--spacing--x-small-8);
    li {
      display: flex;
      flex-direction: column-reverse;
      margin-block-start: 0;
      padding: var(--wp--preset--spacing--small);
      border: 1px solid var(--wp--preset--color--border-dark);
      border-radius: 8px;
      background-color: var(--wp--preset--color--base);
      transition: 0.25s ease;
      time {
        color: var(--wp--preset--color--primary);
        margin-block-end: var(--wp--preset--spacing--x-small-4);
      }
      a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: var(--wp--preset--font-family--instrument-serif);
        font-size: 1rem;
      }
      &:has(> a:hover) {
        background-color: color-mix(
          in srgb,
          var(--wp--preset--color--white) 95%,
          transparent
        );
      }
    }
  }
  margin-top: 0;

  ul {
    padding: 0;
    margin: 0;
  }

  li {
    list-style: none;
  }
}
body:has(.header-fixed:not(.hide)) .sidebar {
  top: 125px;
  transition-delay: 150ms;
}
/* Ajusta separadores y espaciado de la lista de últimas publicaciones de la portada. */
.home-latests-posts {
  li:not(:last-child) {
    border-bottom: 1px solid var(--wp--preset--color--border-dark);
  }
  li:first-child > div {
    padding-top: 0 !important;
  }
  li:last-child > div {
    padding-bottom: 0 !important;
  }
}
/* Personaliza cada elemento del acordeón con borde, fondo, radio y espaciado responsive. */
.wp-block-accordion-panel {
  height: calc-size(auto, size);
  overflow: clip;
  transition:
    height 220ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    content-visibility 220ms allow-discrete;
}
.wp-block-accordion-panel[hidden] {
  height: 0;
  opacity: 0;
  transform: translateY(-4px);
}
.wp-block-accordion-panel:not([hidden]) {
  animation: accordion-panel-enter 220ms ease-out both;
}
@keyframes accordion-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-accordion-panel {
    transition: none;
  }
  .wp-block-accordion-panel:not([hidden]) {
    animation: none;
  }
}
.wp-block-accordion-item {
  padding: 1rem 1.5rem;
  border-radius: 18px;
  @media (min-width: 768px) {
    padding: 1.75rem 2.5rem;
    border-radius: 24px;
  }
  border: 1px solid var(--wp--preset--color--border-dark);
  background-color: var(--wp--preset--color--base);
  /* Sustituye el icono del acordeón por un círculo con símbolo de suma. */
  .wp-block-accordion-heading__toggle-icon {
    font-size: 0;
    width: 32px;
    height: 32px;
    display: block;
    background-color: currentColor;
    transition: transform 0.25s ease;
    mask: url("https://en-desarrollo.es/wp-content/uploads/plus-circle.svg")
      center / contain no-repeat;
    -webkit-mask: url("https://en-desarrollo.es/wp-content/uploads/plus-circle.svg")
      center / contain no-repeat;
  }
  .wp-block-accordion-heading__toggle {
    gap: 12px;
  }
  .wp-block-accordion-heading__toggle-title {
    transition: color 0.25s ease;
  }
  .wp-block-accordion-heading__toggle:hover {
    .wp-block-accordion-heading__toggle-title {
      text-decoration: none;
      color: var(--wp--preset--color--primary);
    }
    .wp-block-accordion-heading__toggle-icon {
      background-color: var(--wp--preset--color--primary);
    }
  }
}

.smaller .wp-block-accordion-item {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  @media (min-width: 768px) {
    padding: 1.25rem 2rem;
    border-radius: 18px;
  }
  border: 1px solid var(--wp--preset--color--border-dark);
  background-color: var(--wp--preset--color--base);

  .wp-block-accordion-heading {
    font-size: calc(var(--wp--preset--font-size--base) * 1.1);
  }
  /* Sustituye el icono del acordeón por un círculo con símbolo de suma. */
  .wp-block-accordion-heading__toggle-icon {
    font-size: 0;
    width: 28px;
    height: 28px;
    display: block;
    background-color: currentColor;
    transition: transform 0.25s ease;
    mask: url("https://en-desarrollo.es/wp-content/uploads/plus-circle.svg")
      center / contain no-repeat;
    -webkit-mask: url("https://en-desarrollo.es/wp-content/uploads/plus-circle.svg")
      center / contain no-repeat;
  }
  .wp-block-accordion-heading__toggle {
    gap: 12px;
  }
  .wp-block-accordion-heading__toggle-title {
    transition: color 0.25s ease;
  }
  .wp-block-accordion-heading__toggle:hover {
    .wp-block-accordion-heading__toggle-title {
      text-decoration: none;
      color: var(--wp--preset--color--primary);
    }
    .wp-block-accordion-heading__toggle-icon {
      background-color: var(--wp--preset--color--primary);
    }
  }
}
/* Maqueta la paginación y sus estados, flechas y números de página. */
.pagination {
  margin-block-start: var(--wp--preset--spacing--large);
  padding-block-start: var(--wp--preset--spacing--large);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--medium);
  @media (max-width: 600px) {
    gap: var(--wp--preset--spacing--x-small-4);
  }
  border-top: 1px solid var(--wp--preset--color--border-dark);
  .is-arrow-arrow {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
  }
  .wp-block-query-pagination-previous-arrow {
    margin-right: var(--wp--preset--spacing--x-small-4);
  }
  .wp-block-query-pagination-next-arrow {
    margin-left: var(--wp--preset--spacing--x-small-4);
  }
  .wp-block-query-pagination-next,
  .post-navigation-link-next {
    a {
      transition: color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    &:hover {
      color: var(--wp--preset--color--primary);
      .is-arrow-arrow {
        transform: translateX(5px);
      }
      a {
        color: var(--wp--preset--color--primary);
      }
    }
  }
  .wp-block-query-pagination-previous,
  .post-navigation-link-previous {
    a {
      transition: color 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    &:hover {
      color: var(--wp--preset--color--primary);
      .is-arrow-arrow {
        transform: translateX(-5px);
      }
      a {
        color: var(--wp--preset--color--primary);
      }
    }
  }
  /* Organiza los números de página en una fila flexible. */
  .wp-block-query-pagination-numbers {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--x-small-4);
    .page-numbers {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--wp--preset--spacing--x-small-8);
      width: 40px;
      height: 40px;
      border-radius: 9999px;
      color: color-mix(
        in srgb,
        var(--wp--preset--color--main) 40%,
        transparent
      );
      background: color-mix(
        in srgb,
        var(--wp--preset--color--main) 8%,
        transparent
      );
      transition: 0.25s ease;
      &.current {
        color: var(--wp--preset--color--main);
        pointer-events: none;
      }
      &:hover {
        color: var(--wp--preset--color--primary);
        background: color-mix(
          in srgb,
          var(--wp--preset--color--main) 15%,
          transparent
        );
      }
    }
  }
  @media (max-width: 600px) {
    .wp-block-query-pagination-previous,
    .wp-block-query-pagination-next {
      font-size: 0;
    }

    .wp-block-query-pagination-previous .is-arrow-arrow,
    .wp-block-query-pagination-next .is-arrow-arrow {
      font-size: 1.2rem;
    }
  }
}
/* ==============================
   BOTÓN — RIGHT ARROW
   ============================== */

/* Añade una flecha a botones y anima su desplazamiento al pasar el ratón. */
.icon-arrow {
  /* Añade una flecha al enlace del botón y la desplaza ligeramente al hacer hover. */
  .wp-block-button__link::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    vertical-align: -4px;
    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / contain no-repeat;

    transition: transform 0.25s ease;
  }

  .wp-block-button__link:hover::after {
    transform: translateX(4px);
  }
}

/* Ajusta el espacio superior de las características del aula virtual en pantallas pequeñas. */
.features-aula-virtual {
  @media (max-width: 729px) {
    padding-top: var(--wp--preset--spacing--medium) !important;
  }
}
/* ==============================
   BOTÓN — AULA
   ============================== */
/* Oculta el botón del aula en cabeceras que no disponen de espacio suficiente. */
.btn-aula-header {
  @media (max-width: 979px) {
    display: none !important;
  }
}
.icon-aula .wp-block-button__link::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  margin-right: 10px;
  vertical-align: -4px;
  background-color: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E")
    center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
/* Estiliza enlaces y textos del pie de página con estados de interacción. */
.footer-links {
  &.two-col {
    margin-top: var(--wp--preset--spacing--medium);
    @media (min-width: 1190px) {
      margin-top: 0;
      justify-content: end;
    }
  }
  a {
    color: color-mix(in srgb, var(--wp--preset--color--white) 60%, transparent);
    transition: color 0.25s ease;
    &:hover,
    &:active {
      color: var(--wp--preset--color--white);
    }
  }
  p {
    color: color-mix(in srgb, var(--wp--preset--color--white) 60%, transparent);
  }
}
@media (max-width: 781px) {
  .kit-digital {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(6rem, 100%), 1fr));
    gap: var(--wp--preset--spacing--large);
  }
}
:root :where(.wp-block-post-title a:where(:not(.wp-element-button))) {
  transition: color 0.25s ease;
}
:root :where(.wp-block-post-title a:where(:not(.wp-element-button)):hover) {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}
.social-icons {
  a {
    width: 24px;
    height: auto;
    color: color-mix(in srgb, var(--wp--preset--color--white) 60%, transparent);
    transition: color 0.25s ease;
    &:hover,
    &:active {
      color: var(--wp--preset--color--white);
    }
  }
}
/* ==============================
   BOTÓN — WHATSAPP
   ============================== */

/* Añade el icono de WhatsApp al botón y anima su escala al pasar el ratón. */
.icon-whatsapp {
  /* Añade el icono de WhatsApp al botón y lo escala ligeramente al hacer hover. */
  .wp-block-button__link::after {
    content: "";
    display: inline-block;
    width: 19px;
    height: 19px;
    margin-left: 10px;
    vertical-align: -4px;
    background-color: currentColor;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.9 11.9 0 0 0 12.1 0C5.5 0 .2 5.3.2 11.9c0 2.1.5 4.2 1.6 6L.1 24l6.2-1.6a11.8 11.8 0 0 0 5.7 1.5h.1c6.5 0 11.8-5.3 11.8-11.9 0-3.2-1.2-6.2-3.4-8.5ZM12.1 21.9c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4a9.9 9.9 0 1 1 8.3 4.6Zm5.4-7.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-1.6-.8-2.7-1.4-3.8-3.2-.3-.5.3-.5.8-1.7.1-.2 0-.4 0-.5s-.7-1.7-1-2.3c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1.1 1.1-1.1 2.6s1.1 3 1.3 3.2c.2.2 2.1 3.3 5.2 4.6 1.9.8 2.6.9 3.5.8.6-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4 0-.3-.2-.3-.5-.4Z'/%3E%3C/svg%3E")
      center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.5 3.5A11.9 11.9 0 0 0 12.1 0C5.5 0 .2 5.3.2 11.9c0 2.1.5 4.2 1.6 6L.1 24l6.2-1.6a11.8 11.8 0 0 0 5.7 1.5h.1c6.5 0 11.8-5.3 11.8-11.9 0-3.2-1.2-6.2-3.4-8.5ZM12.1 21.9c-1.8 0-3.5-.5-5-1.4l-.4-.2-3.7 1 1-3.6-.2-.4a9.9 9.9 0 1 1 8.3 4.6Zm5.4-7.4c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-1.6-.8-2.7-1.4-3.8-3.2-.3-.5.3-.5.8-1.7.1-.2 0-.4 0-.5s-.7-1.7-1-2.3c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1.1 1.1-1.1 2.6s1.1 3 1.3 3.2c.2.2 2.1 3.3 5.2 4.6 1.9.8 2.6.9 3.5.8.6-.1 1.8-.7 2-1.4.3-.7.3-1.3.2-1.4 0-.3-.2-.3-.5-.4Z'/%3E%3C/svg%3E")
      center / contain no-repeat;

    transition: transform 0.25s ease;
  }

  .wp-block-button__link:hover::after {
    transform: scale(1.1);
  }
}
@media (max-width: 781px) {
  .order-last {
    order: 9999;
  }
}
@media (max-width: 719px) {
  .order-last-nav-header {
    order: 9999;
  }
}
/* Desactiva la interacción del puntero sobre el elemento. */
.no-pointer-events {
  pointer-events: none;
}
/* Hace que las imágenes ocupen toda la altura disponible y las recorta con cover. */
.img-full-height {
  img {
    height: 100%;
    object-fit: cover;
  }
}
/* Navigation link colors */
.wp-block-navigation {
  /* Gestiona el color base, hover y estado activo de los enlaces de navegación. */
  .wp-block-navigation-item__content.wp-block-navigation-item__content {
    color: color-mix(in srgb, var(--wp--preset--color--main) 60%, transparent);
    transition: color 0.25s ease;
  }

  .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--main);
  }

  .current-menu-item .wp-block-navigation-item__content {
    pointer-events: none;
    color: var(--wp--preset--color--main);
  }
}

@media (max-width: 781px) {
  .wp-block-cover.full-height-section:not(.has-aspect-ratio) {
    min-height: 829px !important;
  }
}
.hero-striped {
  position: relative;
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    background: repeating-linear-gradient(
      90deg,
      transparent 0 118px,
      rgba(169, 227, 209, 0.05) 118px 120px
    );
  }
}
/* Aplica solo en el frontend, no en el editor */
.is-frontend .anim > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.is-frontend .anim.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.clientes-gallery img {
  mix-blend-mode: exclusion;
  &:hover {
    mix-blend-mode: multiply;
  }
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  color: var(--wp--preset--color--tertiary);
  font-size: var(--wp--preset--font-size--small);
}
/* líneas verticales entre columnas */
.wp-block-group.is-layout-grid > p {
  /* border-right: 1px solid var(--wp--preset--color--border-light); */
  padding: 0 20px;
  border-left: 1px solid var(--wp--preset--color--border-light);
}
/* Organiza una galería en una columna móvil y dos columnas desde 48rem. */
.gallery-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  @media (min-width: 48rem) {
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-block-image {
    width: 100% !important;
  }
}
.wp-block-cb-carousel-v2.alignfull .cb-button-next,
.wp-block-cb-carousel-v2.alignfull .cb-button-prev {
  color: var(--wp--preset--color--base);
}
.wp-block-cb-carousel-v2 .cb-pagination.swiper-pagination-horizontal {
  bottom: 20px;
}
.wp-block-cb-carousel-v2 .cb-pagination .cb-pagination-bullet {
  background: var(
    --wp--preset--color--base,
    var(--wp--custom--carousel-block--pagination-bullet-inactive-color, #000)
  );
}
.wp-block-cb-carousel-v2
  .cb-pagination
  .cb-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--wp--preset--color--base);
  opacity: var(
    --wp--custom--carousel-block--pagination-bullet-active-opacity,
    1
  );
}

.wp-block-cb-carousel-v2.hero-striped .swiper-wrapper {
  align-items: stretch;
}

.wp-block-cb-carousel-v2.hero-striped .swiper-slide {
  display: flex;
  height: auto;
  align-self: stretch;
}

.wp-block-cb-carousel-v2.hero-striped .swiper-slide > .wp-block-cover {
  flex: 1 1 auto;
  height: auto;
}

.wp-block-aq-mega-menu__menu-container .wp-block-group:has(> .wp-block-image) {
  position: relative;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image)
  > .wp-block-group
  > p:first-child {
  transition: color 220ms ease;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image)
  > .wp-block-group {
  position: static;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image)
  > .wp-block-group
  > p:last-child {
  font-size: 0 !important;
  line-height: 0;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image)
  > .wp-block-group
  > p:last-child
  a {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  font-size: 0;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image):focus-within
  > .wp-block-group
  > p:last-child
  a:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image):hover
  > .wp-block-group
  > p:first-child,
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image):focus-within
  > .wp-block-group
  > p:first-child {
  color: var(--wp--preset--color--primary) !important;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image)
  > .wp-block-image {
  overflow: hidden;
  border-radius: 8px;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image)
  > .wp-block-image
  img {
  transition: transform 240ms ease;
}
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image):hover
  > .wp-block-image
  img,
.wp-block-aq-mega-menu__menu-container
  .wp-block-group:has(> .wp-block-image):focus-within
  > .wp-block-image
  img {
  transform: scale(1.05);
}
.wp-block-aq-mega-menu
  .wp-block-aq-mega-menu__toggle
  .wp-block-aq-mega-menu__toggle-icon {
  width: 0.75em;
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-aq-mega-menu__menu-container
    .wp-block-group:has(> .wp-block-image)
    > .wp-block-group
    > p:first-child,
  .wp-block-aq-mega-menu__menu-container
    .wp-block-group:has(> .wp-block-image)
    > .wp-block-image
    img {
    transition: none;
  }
  .wp-block-aq-mega-menu__menu-container
    .wp-block-group:has(> .wp-block-image):hover
    > .wp-block-image
    img,
  .wp-block-aq-mega-menu__menu-container
    .wp-block-group:has(> .wp-block-image):focus-within
    > .wp-block-image
    img {
    transform: none;
  }
}
/* Estilo de etiqueta superior: tipografía monoespaciada, mayúsculas, punto decorativo y variantes. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-mute);
  &::before {
    content: "";
    width: 8%;
    height: 8px;
    flex: 0 0 8px;
    background: var(--wp--preset--color--primary);
    border-radius: 50%;
    display: inline-block;
  }
  &.accent {
    color: var(--wp--preset--color--white);
    &::before {
      background: var(--wp--preset--color--primary-accent);
    }
  }
  &.center {
    justify-content: center;
  }
}

/* =========================================
   IMAGEN DE LA CARD
   ========================================= */

.card-curso .wp-block-cover {
  position: relative;
  overflow: hidden;
}

/* Enlace invisible sobre la imagen */
.card-curso .card-curso-image-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

/* Zoom de la imagen */
.card-curso .wp-block-cover__image-background {
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}

.card-curso .wp-block-cover:hover .wp-block-cover__image-background {
  transform: scale(1.04);
}

/* =========================================
   TÍTULO
   ========================================= */

.card-curso .course-title h3 a {
  color: inherit;
  transition: color 0.25s ease;
  text-decoration: none;
}

.card-curso .course-title h3 a:hover {
  text-decoration: none;
  color: var(--wp--preset--color--primary);
}
