/*
 Theme Name:     Hiberus Twenty Twenty-Five Child
 Theme URI:      https://www.hiberus.com/
 Description:    Twenty Twenty-Five child theme customized by Hiberus.
 Author:         Hiberus Teams
 Template:       twentytwentyfive
 Version:        1.0.0
 License:        GNU General Public License v2 or later
 License URI:    https://www.gnu.org/licenses/gpl-2.0.html
 Tags:           child-theme, responsive, accessible, tailwindcss, custom
 Text Domain:    twentytwentyfive-child
*/

/* ========================================= */
/* header & footer                           */
/* ========================================= */
header.wp-block-template-part {
  position: fixed;
  width: 100%;
  top: var(--wp-admin--admin-bar--height, 0);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.wp-block-template-part .h--header {
  flex-direction: row;
  border-style: solid;
  border-width: 0 0 1px 0;
  border-color: var(--wp--preset--color--border-base);
  z-index: 990;
  transition: all 0.3s ease;
  margin: unset;
}

header.wp-block-template-part img.custom-logo {
  transition: all 0.3s ease;
}

header.wp-block-template-part.scrolled {
  top: var(--wp-admin--admin-bar--height, 0);
  background: var(--wp--preset--color--background-base);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.wp-block-template-part.scrolled .h--header {
  min-height: 50px;
}

header.wp-block-template-part.scrolled img.custom-logo {
  width: 80px;
}

.h--nav-list button svg {
  width: 50px;
  height: 50px;
}

.h--nav-list .wp-block-navigation-item__content:hover {
  text-decoration: none;
}

.h--nav-list .wp-block-navigation-item:hover,
.h--nav-list .wp-block-navigation-item.current-menu-item {
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  box-shadow: inset 0 4px 0 0 var(--wp--preset--color--primary);
  min-height: 100px;
}

.h--nav-list .wp-block-navigation-item {
  min-height: 100px;
  transition: all 0.3s ease;
}

@media screen and (min-width: 901px) {
  header.wp-block-template-part.scrolled .h--nav-list .wp-block-navigation-item {
    min-height: 80px;
  }
}


.wp-site-blocks {
  min-height: 100vh;
}

footer.wp-block-template-part {
  margin-top: auto;
}

.h--footer .wp-block-social-links svg {
  width: 30px;
  height: 30px;
}

/* ========================================= */
/* search                                    */
/* ========================================= */

.h--nav-list .wp-block-search {
  margin-right: 20px;
}

.h--nav-list .wp-block-search__inside-wrapper {
  border: none;
  box-sizing: unset;
  padding: 0;
}

.h--nav-list .wp-block-search__input {
  padding: 0;
  border-radius: 0;
  border-color: var(--wp--preset--color--border-base);
  background-color: unset;
  color: var(--wp--preset--color--txt-primary) !important;
  font-family: var(--wp--preset--font-family--sora);
  font-size: var(--wp--preset--font-size--h-md);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.h--nav-list .wp-block-search__input::placeholder {
  color: var(--wp--preset--color--txt-primary);
}

.h--nav-list .wp-block-search__button {
  padding: 0;
  margin-left: 0;
  background-color: unset;
  border: unset;
  box-shadow: none;
}

.h--nav-list button svg {
  color: var(--wp--preset--color--txt-primary);
  width: 25px;
  height: 25px;
}

.h--nav-list .wp-block-search {
  min-height: 100px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

header.wp-block-template-part.scrolled .h--nav-list .wp-block-search {
  min-height: 80px;
}

.h--nav-list .wp-block-search:hover,
.h--nav-list .wp-block-search:focus-within {
  color: var(--wp--preset--color--primary);
  box-shadow: inset 0 4px 0 0 var(--wp--preset--color--primary);
}

.h--nav-list .wp-block-search__button svg {
  fill: var(--wp--preset--color--txt-primary);
  /* Color base del texto */
  width: 25px;
  /* Mantener tu tamaño definido en la sección search */
  height: 25px;
  /* Mantener tu tamaño definido en la sección search */
  transition: fill 0.3s ease;
}

.h--nav-list .wp-block-search__button:hover svg,
.h--nav-list .wp-block-search__button:focus svg {
  fill: var(--wp--preset--color--primary) !important;
}

.h--nav-list .wp-block-search__button:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ========================================= */
/* form                                      */
/* ========================================= */

.wpcf7 form label {
  display: block;
  font-size: var(--wp--preset--font-size--xs);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--wp--preset--color--border-base);
  border-radius: 4px;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--sm);
  box-sizing: border-box;
  margin-top: var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--20);
  color: var(--wp--preset--color--txt-muted);
  background-color: var(--wp--preset--color--background-base);
}

.wpcf7 textarea {
  height: 120px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 10px;
  padding-right: 30px;
  padding-bottom: 10px;
  padding-left: 30px;
  border-style: solid;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 400;
  color: var(--wp--preset--color--txt-inverse);
  border-color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary);
}

.wpcf7 {
  max-width: 500px;
  margin-right: auto;
}

.h--columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--30);
}

.h--column {
  flex: 1 1 45%;
}

.h--full {
  flex: 1 1 100%;
}

.wpcf7-form .h--column>p,
.wpcf7-form .h--full>p,
.wpcf7-form>p {
  padding: auto;
  margin: auto;
}

.wpcf7-form .h--column>h4,
.wpcf7-form .h--full>h4 {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.wpcf7-form .h--column .first,
.wpcf7-form .h--full .first {
  margin: 0;
}

.h--no-max-width .wpcf7 {
  max-width: var(--wp--style--global--content-size) !important;
}

.h--card-form {
  background-color: var(--wp--preset--color--border-base);
  border-color: var(--wp--preset--color--border-base);
}

/* Asterisk for required fields */
.required-label::after {
  margin-top: 0.75rem;
  content: " *";
  color: var(--wp--preset--color--error);
  font-weight: bold;
}

/* Validation message under invalid fields */
.wpcf7-not-valid-tip {
  font-size: var(--wp--preset--font-size--xs);
}

/* ========================================= */
/* list                                      */
/* ========================================= */

.wp-block-list {
  list-style: none;
}

.wp-site-blocks .wp-block-list li {
  position: relative;
  padding-left: 1.5em !important;
}

.wp-block-list li::before {
  content: "➜";
  position: absolute;
  left: 0.25em;
  top: 0;
  line-height: 1.4;
  transform: translateY(0.1em);
  color: var(--wp--preset--color--accent);
}

/* ========================================= */
/* buttons                                   */
/* ========================================= */


a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.h--href a {
  color: var(--wp--preset--color--txt-accent);
  font-family: var(--wp--preset--font-family--montserrat-sans);
  font-size: var(--wp--preset--font-size--h-md);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  font-style: normal;
  text-decoration: none;
  cursor: pointer;
}

.h--href a:hover {
  color: var(--wp--preset--color--hover-interactive);
  text-decoration: none;
}

.h--href a:focus {
  color: var(--wp--preset--color--hover-interactive);
}

.h--icon-arrow-right-href a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.h--icon-arrow-right-href a::after {
  content: "➜";
  margin-left: 0.3em;
  transition: transform 0.3s;
}

.h--icon-arrow-right-href a:hover::after {
  transform: translateX(5px);
}

.h--icon-arrow-right-up-href a {
  text-decoration: none;
  color: inherit;
  position: relative;
}

.h--icon-arrow-right-up-href a::after {
  content: "↗";
  margin-left: 0.3em;
  transition: transform 0.3s;
}

.h--icon-arrow-right-up-href a:hover::after {
  transform: translate(3px, -3px);
}

.taxonomy-catalog_type {
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--sora);
  font-size: var(--wp--preset--font-size--h-2);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.2em;
  font-style: normal;
  text-decoration: none;
}

.wp-block-post-title {
  color: var(--wp--preset--color--accent);
  font-family: var(--wp--preset--font-family--sora);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.2em;
  font-style: normal;
  text-decoration: none;
}

/* ========================================= */
/* image                                     */
/* ========================================= */

.wp-block-cover {
  position: relative;
  background-size: cover;
  background-position: center;
}

.wp-block-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 80%,
      var(--wp--preset--color--background-base) 100%);
  z-index: 1;
}

.wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

/* ========================================= */
/* newsletter                                */
/* ========================================= */

.h--newsletter_form br {
  display: none;
}

.h--newsletter_form input[type="text"],
.h--newsletter_form input[type="email"],
.h--newsletter_form input[type="tel"],
.h--newsletter_form select,
.h--newsletter_form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--wp--preset--color--border-base);
  border-radius: 4px;
  font-family: inherit;
  font-weight: inherit;
  font-size: var(--wp--preset--font-size--sm);
  box-sizing: border-box;
  margin-top: var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--30);
}

.h--newsletter_form input[type="submit"] {
  width: 100%;
  padding-top: 10px;
  padding-right: 30px;
  padding-bottom: 10px;
  padding-left: 30px;
  border-radius: 100px;
  border-style: solid;
  font-family: inherit;
  font-weight: inherit;
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--txt-inverse);
  border-color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary);
  margin-top: var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--20);
}

/* ========================================= */
/* colors                                    */
/* ========================================= */

.h--color--background-primary {
  background-color: var(--wp--preset--color--background-primary);
}

.h--color--background-secondary {
  background-color: var(--wp--preset--color--background-secondary);
}

.h--color--background-base {
  background-color: var(--wp--preset--color--background-base);
}

.h--color--background-soft {
  background-color: var(--wp--preset--color--background-soft);
}

.h--color--background-ghost {
  background-color: var(--wp--preset--color--border-base);
}

.h--color--background-dark {
  background-color: var(--wp--preset--color--background-dark);
}

.h--color--border-base {
  border-color: var(--wp--preset--color--border-base);
}

.h--color--list-icon-primary li::before {
  color: var(--wp--preset--color--primary);
}

.h--color--list-icon-secondary li::before {
  color: var(--wp--preset--color--secondary);
}

.h--color--list-icon-accent li::before {
  color: var(--wp--preset--color--accent);
}

.h--color--svg-primary svg {
  fill: var(--wp--preset--color--primary);
}

.h--color--svg-secondary svg {
  fill: var(--wp--preset--color--secondary);
}

.h--color--svg-accent svg {
  fill: var(--wp--preset--color--accent);
}

/* ========================================= */
/* split                                     */
/* ========================================= */

.split-line-1200 {
  display: block;
  word-wrap: break-word;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.split-line-1000 {
  display: block;
  word-wrap: break-word;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.split-line-800 {
  display: block;
  word-wrap: break-word;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.split-line-600 {
  display: block;
  word-wrap: break-word;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.split-line span {
  white-space: nowrap;
}

/* ========================================= */
/* Align                                     */
/* ========================================= */

/* ========================================= */
/* responsive                                */
/* ========================================= */

/* Desktop M 1280px  */
@media (max-width: 1280px) {}

/* Laptop 1024px */
@media (max-width: 1024px) {}

/* Tablet horizontal / small laptops 900px */
@media (max-width: 900px) {
  /* ========================================= */
  /* header & footer                           */
  /* ========================================= */

  .h--nav-list {
    margin-right: var(--wp--preset--spacing--30) !important;
    gap: unset !important;
  }

  .h--nav-list .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .h--nav-list .wp-block-navigation__responsive-container-content {
    gap: var(--wp--preset--spacing--30);
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-search {
    display: none !important;
  }

  .h--nav-list .wp-block-search__icon-button,
  .h--nav-list .wp-block-navigation__container {
    margin-left: 1em;
    font-size: var(--wp--preset--font-size--xxl);
  }

  .h--nav-list .wp-block-navigation__container {
    gap: var(--wp--preset--spacing--20) !important;
    display: none;
  }

  .h--nav-list .wp-block-navigation-item__content:hover {
    text-decoration: none;
  }

  .h--nav-list .wp-block-navigation-item {
    min-height: 0;
    transition: none;
  }

  .h--nav-list .wp-block-navigation-item:hover,
  .h--nav-list .wp-block-navigation-item.current-menu-item {
    text-decoration: none;
    color: var(--wp--preset--color--primary) !important;
    box-shadow: none;
    min-height: 0;
  }

  /* .h--nav-list .wp-block-navigation-item__content:focus,
  .h--nav-list .wp-block-navigation-item__content:active {
    outline: none;
    box-shadow: none;
  } */

  .wp-block-navigation-item>.wp-block-navigation__submenu-container {
    padding: 0.5rem 0 0 0 !important;
  }

  .wp-block-navigation-item>.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    flex-direction: row;
    padding: 0.25rem 1rem !important;
    text-align: left;
  }
}

@media (max-width: 800px) {
  .h--browser-date-fix .has-text-align-right {
    text-align: left;
  }

  .h--browser-date-fix {
    column-gap: 5px;
    row-gap: 5px;
  }
}

@media (max-width: 781px) {

  /* ========================================= */
  /* Border                                    */
  /* ========================================= */
  .h--border-unset {
    border: unset;
  }

  /* ========================================= */
  /* Highlights                                */
  /* ========================================= */
  .h--highlights .wp-block-columns {
    flex-wrap: unset !important;
  }

  .h--highlights .wp-block-column {
    flex-grow: unset !important;
    gap: var(--wp--preset--spacing--40);
  }

  .h--highlights .wp-block-columns:not(.is-not-stacked-on-mobile)>.h--highlights-number {
    flex-basis: 10% !important;
  }
}

/* Tablet vertical */
@media (max-width: 768px) {

  /* ========================================= */
  /* header & footer                           */
  /* ========================================= */
  .h--footer .is-horizontal {
    flex-direction: column;
  }

  .h--footer .h--menu-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .h--footer .h--menu-footer div {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .h--footer .h--menu-footer nav,
  .h--footer .h--menu-footer ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: 1em;
    margin-right: 1em;
  }

  /* ========================================= */
  /* form                                      */
  /* ========================================= */

  .wpcf7 input[type="submit"] {
    width: 100%;
  }

  .privacy-policy-link {
    text-align: center;
  }

  /* - image column is hidden on mobile - */
  .colum-none {
    display: none;
  }
}

/* Móvil */
@media (max-width: 600px) {
  header.wp-block-template-part.scrolled {
    top: 0;
  }

  .h--columns {
    flex-direction: column;
  }
}

/* Móvil small */
@media (max-width: 480px) {}


.form-container [id^="_form_"],
#form-container [id^="_form_"] {
  margin: 0;
  padding: 0px;
  max-width: 100%;
  background: transparent !important;
  border-radius: 10px !important;
  box-sizing: content-box;
}


.form-container ._form_element,
#form-container ._form_element {
  margin-bottom: 20px;
  color: #757575;
}

.form-container label._form-label,
#form-container label._form-label {
  color: #757575 !important;
}

.form-container button._submit,
#form-container button._submit {
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 10px;
  padding-right: 30px;
  padding-bottom: 10px;
  padding-left: 30px;
  border-radius: 0px !important;
  border-style: solid;
  font-size: var(--wp--preset--font-size--base);
  font-weight: 400;
  color: var(--wp--preset--color--txt-inverse) !important;
  border-color: var(--wp--preset--color--primary) !important;
  background-color: var(--wp--preset--color--primary) !important;
  box-sizing: border-box;
}

.form-container ._form_element select,
#form-container ._form_element select {
  border-radius: 4px;
  padding: 6px
}

/* Seleccionamos botones de bloques, botones de formularios y botones generales de WP */
.wp-block-button__link,
.wp-element-button,
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  transition: all 0.3s ease-in-out !important;
  border-radius: 0px !important;
}

/* Efecto hover para todos */
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  filter: brightness(0.85) !important;
  /* El fondo se oscurece un 15% */
  cursor: pointer;
  text-decoration: none !important;
}

html {
  scroll-behavior: smooth;
}

.wp-block-file__button,
.wp-block-search__button,
.wp-block-button__link,
.wp-element-button {
  border-radius: 0px;
}