/*!
Theme Name: Zanesco
Theme URI: http://underscores.me/
Author: Preciso - Agencia de Contenidos
Author URI: https://preciso.pe/
Description: Web creado para Zanesco
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: zanesco
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

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

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

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

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Root
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Root
--------------------------------------------- */
:root {
  --color-first: #783703;
  --color-second: #d8282f;
  --color-third: #272727;
  --color-forth: #4169e1;
  --color-fifth: #8e6741;
  --color-sixth: #e2b594;
  --color-black: #000000;
  --color-white: #ffffff;
  --font-roboto: "Roboto", sans-serif;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: var(--color-black);
  font-family: var(--font-roboto);
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-second);
  clear: both;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
  background: #fff;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

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

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: var(--color-forth);
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: var(--color-second);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  padding: 2.125rem 0;
  z-index: 100;
  transition: padding 0.3s ease-in;
  background: linear-gradient(
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.6) 40%,
    transparent
  );
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.site-header.is-scrolled {
  padding: 1.125rem 0;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  width: min(50%, 220px);
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 5vh, 4rem);
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;

  & a {
    color: inherit;
    text-decoration: none;
  }
}

.site-description {
  font-size: 12px;
  color: var(--color-white);
  font-style: italic;
  margin: 0;
}

/* Footer
--------------------------------------------- */
.site-footer {
  background-color: var(--color-third);
  border-top: 4px solid var(--color-second);
  padding-top: 3rem;
  /* margin-top: 3rem; */
  color: var(--color-white);

  & .widget {
    margin: 0;
  }
}

.footer--container {
  display: flex;
  flex-direction: column;
  gap: 3.125rem;
}

.site-info {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 30px;
  padding: 1rem 0 1.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);

  & p {
    margin: 0;
  }

  & .info-preciso {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Container
--------------------------------------------- */
.container {
  width: min(calc(100% - 2.5rem), 75rem);
  margin-left: auto;
  margin-right: auto;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
  & * {
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
  }
}

.nav-menu {
  color: var(--color-white);

  a {
    color: inherit;
  }

  .page_item_has_children > a::after,
  .menu-item-has-children > a::after {
    content: "keyboard_arrow_down";
    font-family: "Material Symbols Outlined";
    float: right;
    transition: transform 0.3s ease-in-out;
  }

  @media (max-width: 769px) {
    position: fixed;
    top: 0;
    left: 100%;
    width: 300px;
    height: 100vh;
    padding: 1.5rem 1rem;
    background-color: var(--color-third);
    overflow-y: auto;
    transition: left 0.3s ease-in-out;

    a {
      display: block;
      padding: 0.5rem 1rem;
      border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    }

    .children,
    .sub-menu {
      background-color: rgba(255, 255, 255, 0.2);
      border-left: 5px solid rgba(255, 255, 255, 0.2);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-in;

      .focus > & {
        max-height: 500px;
      }
    }

    .toggled & {
      left: calc(100% - 300px);
    }
  }

  @media (min-width: 769px) {
    display: flex;
    gap: 1.25rem;

    & a {
      position: relative;
      padding: 1rem 0;

      .current_page_item:not(.menu-accent) & {
        color: var(--color-fifth);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 6px;
      }
    }

    & .sub-menu,
    & .children {
      display: none;
      position: absolute;
      background-color: var(--color-white);
      box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
      margin-top: 0.5rem;

      & li:not(:last-child) {
        border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
      }

      a {
        display: block;
        color: var(--color-black);
        padding: 0.5rem 1rem;

        &:hover {
          background-color: var(--color-second);
          color: var(--color-white);
        }
      }
    }

    /* Mostrar submenú principal */
    .menu-item-has-children:hover > .sub-menu,
    .page_item_has_children:hover > .children {
      display: block;
      min-width: 100px;
    }

    /* Icono del Level 2 rota cuando se despliega */
    .sub-menu > .menu-item-has-children > a::after,
    .sub-menu > .page_item_has_children > a::after {
      transform: rotate(-90deg);
    }

    /* --- CORRECCIÓN --- */
    /* Submenús internos se abren hacia la derecha */
    .sub-menu .sub-menu,
    .children .children {
      top: 0;
      left: 100%;
      margin-top: 0;
    }
  }
}

.list-menu__close {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px double rgba(255, 255, 255, 0.2);

  @media (min-width: 769px) {
    display: none;
  }
}

.menu-toggle {
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid var(--color-white);
  padding: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;

  @media (min-width: 769px) {
    display: none;
  }
}

.menu-option {
  background-color: transparent;
  border: none;
  color: var(--color-white);
  display: flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;

  @media (min-width: 769px) {
    display: none;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Banner
--------------------------------------------- */
.banner__page {
  min-height: 500px;
  background-image: linear-gradient(
    30deg,
    var(--color-first),
    var(--color-black) 55%
  );
  display: flex;
  align-items: center;
  justify-content: center;

  &.banner__page--home {
    min-height: 580px;
  }
}

.banner__row {
  display: flex;
  justify-content: center;

  &.banner__row--home {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    width: min(calc(100% - 2.5rem), 53.125rem);
  }
}

.banner__page-title {
  font-size: clamp(3.125rem, 5vw, 4.375rem);
  color: var(--color-white);
  text-align: center;
  text-wrap: balance;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;

  @media (min-width: 769px) {
    margin-left: auto;
  }
}

.banner__text {
  color: var(--color-white);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

/* .post:not(body),
.page:not(body) {
  margin: 0 0 1.5em;
} */

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

.widget_social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;

  & ul {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 1rem;
  }

  & .widget-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 1rem 0 0;
  }

  & a {
    text-decoration: none;
    background-color: var(--color-white);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  & svg {
    fill: var(--color-black);
  }

  & a:hover {
    background-color: var(--color-second);

    & svg {
      fill: var(--color-white);
    }
  }
}

.site-footer .widget_nav_menu {
  margin-bottom: 0;

  & ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (min-width: 426px) {
      flex-direction: row;
    }
  }

  a {
    text-decoration: none;
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    color: var(--color-white);

    &:hover {
      color: var(--color-second);
    }
  }

  & .sub-menu {
    display: none;
  }
}

.whatsapp-float {
  --color-whatsapp: #25d366;
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 1000;
}

.whatsapp-float__wrapper {
  display: flex;
  flex-direction: column;
  width: 200px;
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: #f1ebe3;
  margin-bottom: 1rem;
  border-radius: 8px;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.3s ease-in-out;

  &.active {
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
  }
}

.whatsapp-float__header {
  background-color: var(--color-whatsapp);
  border-radius: 8px 8px 0 0;
  padding: 0.8rem 1rem;

  & p {
    color: var(--color-white);
    margin: 0;
  }
}

.whatsapp-float__options {
  padding: 15px 10px;
}

.whatsapp-float__ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;

  & a {
    position: relative;
    display: block;
    padding: 0.5rem 1rem;
    background-color: var(--color-white);
    border-radius: 5px;
    color: #090909;
    text-decoration: none;
    font-size: 12px;
    box-shadow: 0px 1px 0 rgba(0, 0, 0, 0.1);
    margin-left: 10px;

    &:focus {
      outline: none;
    }

    &::after {
      position: absolute;
      top: 0;
      left: -10px;
      content: "";
      display: block;
      width: 0;
      height: 0;
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      border-top: 10px solid var(--color-white);
    }

    &:hover {
      scale: 1.05;
    }
  }
}

.whatsapp-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  background-color: var(--color-whatsapp);
  transition: transform 0.3s ease-in-out;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;

  & svg {
    width: 35px;
    height: 35px;
    fill: #fff;
  }
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
  width: min(100%, 140px);
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

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

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

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

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

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

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

/* Block General */
.zanesco-title {
  --color: var(--color-black);
  font-size: clamp(28px, 5vh, 34px);
  text-align: left;
  color: var(--color);
  line-height: 1.1em;
  margin: 0 0 2.5rem;
  position: relative;

  &::after {
    content: "";
    width: 32px;
    height: 4px;
    border-radius: 50px;
    background-color: var(--color);
    display: inline-block;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
  }
}

.zanesco-paragraph {
  margin: 0;
  font-size: clamp(1rem, 5vh, 1.25rem);
  text-wrap: pretty;
}

[data-bg] {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* block Title description */

.title-description {
  width: min(calc(100% - 2.5rem), 877px);
  margin: 4.375rem auto;
  display: flex;
  align-items: flex-start;
  gap: 0 2.5rem;
  flex-wrap: wrap;

  & .zanesco-title {
    flex-grow: 1;
    flex-basis: 160px;
    --color: var(--color-second);

    @media (min-width: 769px) {
      text-align: right;

      &::after {
        right: 0;
        left: auto;
      }
    }

    .title-description--service & {
      --color: var(--color-first);
    }
  }
}

.title-description__div {
  flex-grow: 9;
  flex-basis: 500px;

  & .zanesco-paragraph:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}

.title-description__link {
  display: inline-flex;
  background-color: var(--color-second);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-second);
  transition: background-color 0.3s ease-in-out;

  &:hover {
    background-color: transparent;
  }
}

/* block Three options */

.three-options {
  background: #f3f3f3;
  padding: 3.75rem 1.25rem;
}

.three-options__container {
  width: min(100%, 1230px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.three-options__content {
  flex-grow: 1;
  flex-basis: 250px;
}

.three-options__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.875rem;
}

.three-options__a {
  color: var(--color-white);
  text-decoration: none;
  align-content: end;
  text-align: right;
  font-size: clamp(1.125rem, 2.5vh, 1.375rem);
  font-weight: 600;
  padding: 1rem;
  flex-grow: 1;
  flex-basis: 200px;
  width: 260px;
  height: 320px;
  border-radius: 20px;
  background-size: cover;
  background-image: linear-gradient(0deg, var(--color-first), transparent);
  background-position: center;
  transition:
    flex-basis 0.3s ease-in-out,
    color 0.3s ease-in-out;

  &:hover {
    flex-basis: 300px;
    color: var(--color-white);
  }
}

/* block Contact */

.contact {
  background-color: var(--color-black);
  padding: 7.5rem 0 3.75rem;

  & .zanesco-title {
    --color: var(--color-white);
  }
}

.contact__container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  width: min(calc(100% - 2.5rem), 68.75rem);
  margin: auto;
}

.contact__col {
  flex-grow: 1;
  flex-basis: 300px;

  &:last-child {
    flex-grow: 3;
  }
}

.contact__ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  color: var(--color-white);

  & li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1rem, 5vh, 1.25rem);
  }

  & div {
    flex-grow: 1;
    flex-basis: 30px;
  }

  & span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    background-color: var(--color-first);
    border-radius: 50%;
  }

  & p {
    margin: 0;
    flex-grow: 3;
    flex-basis: 300px;
    text-wrap: pretty;
  }
}

.contact__form {
  color: var(--color-white);

  & form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;

    @media (min-width: 769px) {
      grid-template-columns: 1fr 1fr;
    }
  }

  & p {
    margin: 0;

    @media (min-width: 769px) {
      &:nth-last-of-type(2),
      &:last-of-type {
        grid-column: span 2;
        text-align: center;
      }
    }
  }

  @media (min-width: 769px) {
    & .wpcf7-response-output {
      grid-column: span 2;
      text-align: center;
    }
  }

  & input:not([type="submit"]),
  & textarea {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    padding: 0.75rem 1rem;
    width: 100%;
  }

  & input[type="submit"] {
    background-color: var(--color-first);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    grid-column: span 2;
    border: 1px solid var(--color-first);
    transition: background-color 0.3s ease-in-out;

    &:hover {
      background-color: transparent;
    }
  }
}

/* block image option*/

.image-options {
  scroll-margin-top: 145px;
  width: min(calc(100% - 2.5rem), 72.5rem);
  margin: 3rem auto;

  & .zanesco-title {
    --color: var(--color-second);
  }
}

.image-options__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(370px, 100%), 1fr));
  grid-gap: 40px;
}

.image-options__option {
  display: flex;
  flex-wrap: wrap;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  min-height: 14.375rem;
}

.image-options__image {
  flex-grow: 1;
  flex-basis: 200px;
  display: flex;
  position: relative;
  aspect-ratio: 4 / 3;

  & img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) brightness(1.1) contrast(0.9);
  }

  &::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 1) 100%);
  }
}

.image-options__content {
  flex-grow: 1;
  flex-basis: 200px;
  padding: 1.5rem 1.875rem;
  align-content: end;

  /* Patrón general (2 y 2) */
  .image-options__option:nth-child(4n-3) &,
  .image-options__option:nth-child(4n-2) & {
    background-color: var(--color-black);
  }

  .image-options__option:nth-child(4n-1) &,
  .image-options__option:nth-child(4n) & {
    background-color: var(--color-fifth);
  }

  /* Caso 1 solo elemento */
  .image-options__option:only-child & {
    background-color: var(--color-black);
  }

  /* Caso exactamente 2 elementos */
  .image-options__option:first-child:nth-last-child(2) & {
    background-color: var(--color-black);
  }

  .image-options__option:first-child:nth-last-child(2)
    + .image-options__option
    & {
    background-color: var(--color-fifth);
  }
}

.image-options__title {
  font-size: clamp(1.25rem, 5vh, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--color-white);
}

.image-options__text {
  font-size: clamp(1.125rem, 5vh, 1.375rem);
  line-height: 1.2;
  margin: 0;
  color: var(--color-white);
}

/* Block Servicies */

.services {
  width: min(calc(100% - 2.5rem), 54.6875rem);
  margin: 3rem auto;

  & .zanesco-title {
    --color: var(--color-second);
  }
}

.services__ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 47.375rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2.8125rem;
}

.services__option {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.services__description {
  font-size: 1.25rem;
  line-height: 1.2em;
  margin: 0;
  text-wrap: balance;

  & strong {
    color: var(--color-fifth);
    font-weight: 600;
  }
}

/* block Brands */
.swiperBrands {
  width: min(calc(100% - 2.5rem), 53.125rem);
  margin: 0 auto 3rem;
  padding-bottom: 3rem !important;

  & .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border: 1px solid var(--color-black);
    background-color: transparent;
    opacity: 1;
  }

  & .swiper-pagination-bullet-active {
    border-color: var(--color-second);
    background-color: var(--color-second);
  }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;

  & .zanesco-paragraph {
    margin-bottom: 0.5rem;
  }
}

.brand__content {
  flex-grow: 1;
  flex-basis: 400px;
}

.brand__button {
  display: inline-block;
  background-color: var(--color-second);
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid;
  border-radius: 8px;

  &:hover {
    background-color: var(--color-white);
  }
}

/* block testimonials */
.testimonials {
  background-color: var(--color-third);
  padding: 3.75rem 0;

  & .zanesco-title {
    --color: var(--color-white);
  }

  & .zanesco-paragraph {
    color: var(--color-white);
    margin-bottom: 1rem;
  }
}

.testimonials__container {
  width: min(calc(100% - 2.5rem), 53.125rem);
  margin: auto;
}

.testimonial {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.testimonial__ul {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;

  @media (min-width: 769px) {
    display: flex;
  }
}

.testimonial__btn {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-white);
  background-color: var(--color);
  display: block;
  width: 100%;

  &.testimonial__btn--1 {
    --color: var(--color-second);
  }

  &.testimonial__btn--2 {
    --color: var(--color-first);
  }

  &.testimonial__btn--3 {
    --color: var(--color-fifth);
  }
}

.testimonial__resumen {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  flex-grow: 1;
  flex-basis: 300px;
}

.testimonial__header {
  width: 100%;
  padding: 1rem;
  cursor: pointer;
  border: none;
  background: var(--color);
  color: var(--color-white);

  @media (min-width: 769px) {
    display: none;
  }
}

.testimonial__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  transition:
    min-height 0.45s ease,
    opacity 0.35s ease;
}

.testimonial__resumen.active .testimonial__content {
  max-height: 700px;
  opacity: 1;
  padding: 1rem;
}

@media (min-width: 769px) {
  .testimonial__resumen {
    display: none;
  }

  .testimonial__resumen.active {
    display: block;
  }
}

.testimonial__title {
  font-size: 1.25rem;
  line-height: 1.2em;
  margin: 0;
  font-weight: 600;
  color: var(--color-white);
}

.testimonial__stars span {
  color: rgba(255, 255, 255, 0.25);
}

.testimonial__text {
  margin: 0 0 0.5rem;
  color: var(--color-white);
}

.testimonial__name,
.testimonial__cargo {
  font-size: 1.125rem;
  line-height: 1.2em;
  margin: 0;
}

.testimonial__name {
  font-weight: 600;
}

.testimonial__stars {
  margin: 0.8rem 0;
}

/* Block Choose us */

.choose-us {
  width: min(calc(100% - 2.5rem), 53.125rem);
  margin: 4.375rem auto;

  & .zanesco-title {
    --color: var(--color-second);
  }
}

.choose-us__row {
  width: min(100%, 60rem);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.choose-us__column {
  flex-grow: 1;
  flex-basis: 250px;
  max-width: 270px;
  text-align: center;
}

.choose-us__title {
  color: var(--color-fifth);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.choose-us__text {
  font-size: 20px;
  line-height: 1.1em;
  text-wrap: balance;
  margin: 0.5rem 0 0;
}

/* Block Contact options */
.contact-options {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  width: min(calc(100% - 2.5rem), 60rem);
  margin: 4.375rem auto;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 200px;
  min-width: 180px;
}

@media (min-width: 768px) {
  .contact-option:nth-child(2) {
    flex: 2 1 300px;
  }

  .contact-option:last-child {
    flex: 1.5 1 250px;
  }
}

@media (max-width: 767px) {
  .contact-options {
    flex-direction: column;
  }

  .contact-option {
    flex: 1 1 100%;
  }
}

.contact-option__title {
  margin: 0;
  color: var(--color-fifth);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2em;
}

.contact-option__text {
  font-size: 20px;
  line-height: 1.2em;
  margin: 0;
  text-wrap: balance;
}

/* Block Description with Background Image */
.description-bgimage {
  background-color: black;
  padding-top: 5rem;
  padding-bottom: 5rem;

  & .zanesco-title {
    --color: var(--color-white);
  }

  & .zanesco-paragraph {
    color: var(--color-white);
  }

  & .zanesco-paragraph:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}

.description-bgimage__container {
  display: flex;
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 0 auto;
}

.description-bgimage__content {
  width: min(100%, 34.375rem);
}

/* Block Paragraph */
.paragraph-block {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 3.75rem auto;

  & .zanesco-paragraph:not(:last-child) {
    margin-bottom: 1.5rem;
  }
}

/* Block Nationale Swiper */
.national-swiper {
  padding: 5rem 0;

  & .zanesco-paragraph {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

.national-swiper__container {
  width: min(calc(100% - 2.5rem), 53.125rem);
  margin: auto;
}

.national-swiper__title {
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  color: var(--color-white);
  text-align: center;
  margin: 0 0 1.5rem;
}

.national-swiper__content {
  position: relative;
  width: min(100%, 85rem);
  margin: auto;
}

.nationaleSwiper {
  width: min(calc(100% - 2.5rem), 75rem);
  margin: 3rem auto 0;

  & .swiper-wrapper {
    min-height: 320px;
    align-items: center;
  }
}

.nationaleSwiper__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--color-white);
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 8px;
  max-width: 200px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;

  &:hover {
    & .nationaleSwiper__name {
      font-size: 22px;
      color: var(--color-second);
    }

    & .nationaleSwiper__resumen {
      max-height: 300px;
      transition: max-height 0.3s ease-in-out;
      margin-top: 10px;
    }
  }
}

.nationaleSwiper__name {
  text-align: center;
  line-height: 1.2em;
  color: var(--color-fifth);
  margin: 0;
  font-size: 20px;
}

.nationaleSwiper__description {
  color: var(--color-third);
  margin: 0;
  font-size: 18px;
  font-style: italic;
  text-align: center;
  line-height: 1.2em;
}

.nationaleSwiper__resumen {
  font-size: 16px;
  text-align: center;
  line-height: 1.1em;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--color-third);
}

.nationaleSwiper__image {
  width: 100px;
  margin-bottom: 10px;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--color-white) !important;
}

/* Block text and image */
.text-image {
  display: flex;
  width: min(calc(100% - 40px), 75rem);
  gap: 40px 20px;
  flex-wrap: wrap;
  margin: 3rem auto;

  & .zanesco-title {
    --color: var(--color-white);
  }
}

.text-image__item {
  flex-grow: 1;
  flex-basis: 400px;
  display: flex;
  flex-wrap: wrap-reverse;
  background-color: var(--color-fifth);
  border-radius: 20px;
  overflow: hidden;

  &.text-image__item--reverse {
    flex-direction: row-reverse;
    background-color: var(--color-black);
  }
}

.text-image__link {
  display: inline-block;
  color: var(--color-white);
  padding: 10px 15px;
  border: 1px solid var(--color-white);
  border-radius: 8px;
  text-decoration: none;

  &:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.4);
  }
}

.text-image__column {
  flex-grow: 1;
  flex-basis: 100px;
  align-content: center;
  padding: 1.5rem min(2.5rem, 10%);
}

.text-image__image {
  flex-grow: 1;
  flex-basis: 320px;
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;

  & img {
    object-fit: cover;
    object-position: center;
    width: 100%;
  }
}

/* Block Text Summary Image */
.summary {
  background-color: var(--color-black);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  color: var(--color-white);

  & .zanesco-title {
    --color: var(--color-white);
  }
}

.summary__column {
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-basis: 300px;
}

.summary__content {
  width: min(100%, 600px);
  margin-left: auto;
  padding: 3rem min(2.5rem, 5%);
}

.summary__paragraphs {
  font-size: 17px;
  text-wrap: pretty;

  & > p {
    margin: 0;
  }

  & > p:not(:last-child) {
    margin-bottom: 10px;
  }
}

.summary__details {
  border: 1px solid var(--color-white);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;

  &:hover {
    border-color: var(--color-primary);
  }

  &[open] {
    summary::after {
      transform: rotate(180deg);
    }
  }

  & summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    position: relative;
    user-select: none;

    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      content: "keyboard_arrow_down";
      font-family: "Material Symbols Outlined";
      font-size: 1.2rem;
      transition: transform 0.3s ease;
    }

    &:focus-visible {
      outline: 2px solid var(--color-primary);
      outline-offset: 2px;
    }
  }

  & > div {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 1.6;
  }
}

.summary__link {
  display: inline-flex;
  background-color: var(--color-second);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-second);
  transition: background-color 0.3s ease-in-out;

  &:hover {
    background-color: transparent;
  }
}

.summary__image {
  display: flex;
  aspect-ratio: 4 / 3;
  flex-grow: 1;
  flex-basis: 300px;

  & img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    min-height: 100%;
  }
}

/* block Text image background*/

.text-background {
  background-size: cover;
  background-position: center bottom;
  margin-bottom: 10rem;

  & .zanesco-title {
    --color: var(--color-white);
  }

  &.text-background--brown {
    --bgcolor: rgba(142, 100, 65, 0.85);
    --backgroundcolor: var(--color-first);
    --color: var(--color-white);
  }

  &.text-background--black {
    --bgcolor: rgba(0, 0, 0, 0.65);
    --backgroundcolor: var(--color-black);
    --color: var(--color-white);

    & .text-background__link {
      border: 1px solid var(--color-white);
    }
  }

  &.text-background--red {
    --bgcolor: rgba(216, 40, 47, 0.65);
    --backgroundcolor: var(--color-white);
    --color: var(--color-second);
  }
}

.text-background__row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  width: min(calc(100% - 40px), 75rem);
  margin: 0 auto;
  padding: 3rem 0;

  .text-background--reverse & {
    flex-direction: row-reverse;
  }
}

.text-background__column {
  flex-grow: 1;
  flex-basis: 350px;
}

.text-background__pretitle {
  color: var(--color-white);
  margin: 0 0 10px;
}

.text-background__paragraph p {
  color: var(--color-white);
  font-size: 20px;
  margin: 0 0 30px;
}

.text-background__link {
  display: inline-flex;
  background-color: var(--backgroundcolor);
  border-radius: 8px;
  color: var(--color);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;

  &:hover {
    background-color: var(--color);
    color: var(--backgroundcolor);
  }
}

.text-background__image {
  margin-bottom: -10rem;
}

/* Block Option vertical */
.option-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  grid-gap: 40px;
  width: min(calc(100% - 40px), 72.5rem);
  margin: 0 auto 3rem;
}

.option-vertical__option {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;

  &:nth-child(3n + 1) {
    background-color: var(--color-fifth);
  }

  &:nth-child(3n + 2) {
    background-color: var(--color-black);
  }

  &:nth-child(3n) {
    background-color: var(--color-second);
  }
}

.option-vertical__picture {
  display: flex;
  aspect-ratio: 4 / 3;
  position: relative;

  & img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    filter: grayscale(1) brightness(1.1) contrast(0.9);
  }

  &::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 1) 100%);
  }
}

.option-vertical__content {
  padding: 40px 20px 20px;
  height: 100%;
  align-content: end;
}

.option-vertical__title {
  font-size: clamp(1.25rem, 5vh, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--color-white);
  max-width: 70%;
  line-height: 1.1em;
}

/* Block Call to action */

.call-to-action {
  width: min(calc(100% - 20px), 50rem);
  margin: 3rem auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
  border: 1px solid var(--color-second);
  padding: 1.5rem min(3rem, 10%);
  border-radius: 6px;
}

/* Block Grid brands */
.grid-brands {
    background: #efefef;
    padding: 4rem 0;

    & .zanesco-title{
        --color: var(--color-second);
    }
    
    & p{
        margin: 0;
    }
}

.grid-brands__container{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    width: min(calc(100% - 40px), 75rem);
    margin: 0 auto;
    background: var(--color-white);
    padding: 5rem min(3rem, 5%);
    
    & > *{
        flex-grow: 1;
        flex-basis: 300px;
    }
}

.grid-brands__options {
  width: min(877px, 100%);
  margin: 0 auto;
  display: flex;
  
  flex-wrap: wrap;
}

.grid-brands__option {
    flex-grow: 1;
    flex-basis: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  & img{
      aspect-ratio: 3 / 2;
      object-fit: contain;
      object-position: center;
  }

}

/* CPT Equipment */

.equipment {
  margin: 4.375rem auto 6.25rem;
  container-type: inline-size;
  container-name: equipment-product;

  @container (min-width: 1040px) {
    .equipment-product__image {
      --deg: 90deg;
    }

    .equipmenet-product__content {
      padding-top: 3rem;
      padding-left: 6.25rem;
      padding-right: 1rem;
    }

    .equipment-product__image {
      padding-left: 1rem;
      padding-right: 6.25rem;
      padding-bottom: 3rem;
    }
  }
}

.equipment-brands {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: min(calc(100% - 2.5rem), 860px);
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;

  & li {
    flex-grow: 1;
    flex-basis: 100px;
    text-align: center;
  }

  & img {
    width: 200px;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    margin: 0 auto;
    filter: opacity(0.5) grayscale(1);
    transition: filter 0.3s ease-in;
    cursor: pointer;
  }

  & li:hover img,
  & li.active img {
    filter: opacity(1) grayscale(0);
  }

  & li.active span {
    font-weight: 600;
    color: var(--color-first, #000);
  }
}

.equipment-categories {
  display: none;
  justify-content: flex-start;
  width: min(calc(100% - 40px), 75rem);
  overflow: scroll hidden;
  scrollbar-width: none;
  margin: 2rem auto 3rem;

  &.active {
    display: flex;
  }

  @media (min-width: 769px) {
    justify-content: center;
  }
}

.equipment-category {
  --separtion: min(0.9375rem, 1vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--separtion);
  list-style: none;
  padding: 0;
  margin: 0;

  & li {
    font-size: clamp(18px, 5vw, 20px);
    cursor: pointer;
    width: max-content;

    &.active,
    &:hover {
      font-weight: 600;
      color: var(--color-first);
    }

    &:not(:last-child)::after {
      content: "|";
      margin-left: var(--separtion);
      color: var(--color-fifth);
    }
  }

  &.active {
    display: flex;
  }
}

.equipment-product {
  display: none;
  flex-wrap: wrap-reverse;
  width: min(calc(100% - 2.5rem), 75rem);
  margin: 2rem auto;
  background:
    radial-gradient(
      circle at left bottom,
      rgba(0, 0, 0, 0.55),
      transparent 90%
    ),
    var(--color-first);
  border-radius: 20px;
  overflow: hidden;

  & > * {
    flex-grow: 1;
    flex-basis: 500px;
  }

  &.active {
    display: flex;
  }
}

.equipmenet-product__content {
  padding: 1rem min(10%, 3rem) 3rem;
  align-content: center;
}

.equipment-product__title {
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  color: var(--color-sixth);
  margin: 0 0 0.625rem;
  line-height: 1.3em;
  text-wrap: pretty;
}

.equipment-product__description {
  font-size: clamp(1rem, 5vw, 1.25rem);
  color: var(--color-white);
  line-height: 1.2em;
  margin: 0 0 1.5rem;
  text-wrap: pretty;

  & p:first-child {
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

.equipment-product__row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.equipment-product__link {
  background: var(--color-first);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 5px;

  &:hover {
    background: var(--color-white);
    color: var(--color-first);
  }
}

.equipment-product__images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;

  & img {
    flex-basis: 50px;
    width: 50px;
    cursor: pointer;
  }
}

.equipment-product__image {
  --deg: 0deg;
  text-align: center;
  align-content: center;
  background: linear-gradient(
    var(--deg),
    transparent 50%,
    var(--color-fifth) 50%
  );
  padding: 3rem 2rem 1rem;

  & img {
    width: min(100%, 550px);
  }

  & iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
  }
}

/* CPT Equipment - Filtros */

.equipment-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.equipment-filter label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  display: block;
}

.equipment-filter__select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-fifth);
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-third);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.equipment-filter__select:hover {
  border-color: var(--color-fifth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.equipment-filter__select:focus {
  outline: none;
  border-color: var(--color-third);
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.equipment-filter__select option {
  padding: 0.5rem;
  background-color: var(--color-white);
  color: var(--color-third);
}

/* Contenedor de filtros */
.filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto 2rem;
  background-color: var(--color-seventh);
  border-radius: 8px;
  width: min(calc(100% - 2rem), 1200px);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .filter {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .equipment-filter {
    margin-bottom: 1rem;
  }

  .equipment-filter__select {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .filter {
    padding: 0.75rem;
    gap: 1rem;
  }

  .equipment-filter {
    margin-bottom: 0.75rem;
  }

  .equipment-filter label {
    font-size: 0.9rem;
  }

  .equipment-filter__select {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
  }
}

/**/

.gallery-text__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 20px;
  width: min(calc(100% - 40px), 75rem);
  margin: 3rem auto;
}

.gallery-text__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;

  & h5 {
    font-size: 18px;
    margin: 10px 0 0;
  }
}

.gallery-text__link {
  display: inline-block;
  text-decoration: none;
  background: var(--color-first);
  border: 1px solid var(--color-first);
  border-radius: 10px;
  color: var(--color-white);
  padding: 0.5rem 1rem;

  &:hover {
    background: var(--color-white);
    color: var(--color-first);
  }
}

/* Page posts and single posts
--------------------------------------------- */
.type-post {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 4.375rem auto 6.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-fifth);

  & .entry-header {
    margin-bottom: 2.5rem;
  }

  & .entry-title {
    font-size: clamp(28px, 5vh, 34px);
    line-height: 1.1em;
    margin: 0 0 1rem;
  }

  & .entry-content {
    & p:not(:last-child) {
      margin-bottom: 1.5rem;
    }

    & img {
      max-width: 100%;
      height: auto;
      margin: 1.5rem 0;
    }

    & blockquote {
      border-left: 4px solid var(--color-first);
      padding-left: 1rem;
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--color-fifth);
    }

    & a {
      color: var(--color-first);
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  & .entry-footer {
    margin-top: 3rem;
    font-size: 0.875rem;
    color: var(--color-fifth);
  }
}

/* Page home, category and archive
--------------------------------------------- */
.archive .page-header,
.category .page-header {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 4.375rem auto 2.5rem;
  text-align: center;
}

.archive .entry-title a,
.category .entry-title a,
.home .entry-title a {
  text-decoration: none;
  color: var(--color-black);

  &:hover {
    text-decoration: underline;
  }
}

.archive .widget-area,
.category .widget-area,
.home .widget-area {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 4.375rem auto 6.25rem;
}

.archive .wp-block-archives,
.category .wp-block-archives,
.home .wp-block-archives {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: capitalize;
}

.archive .wp-block-categories,
.category .wp-block-categories,
.home .wp-block-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: capitalize;
}

.archive .wp-block-latest-comments,
.category .wp-block-latest-comments,
.home .wp-block-latest-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive .wp-block-latest-posts,
.category .wp-block-latest-posts,
.home .wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Search results page
--------------------------------------------- */
.search-results .page-header,
.search-no-results .page-header {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 4.375rem auto 2.5rem;
  text-align: center;
}

.search-results .widget-area,
.search-no-results .widget-area {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 4.375rem auto 6.25rem;
}

.search-results .wp-block-archives,
.search-no-results .wp-block-archives {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: capitalize;
}

.search-results .wp-block-categories,
.search-no-results .wp-block-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: capitalize;
}

.search-results .wp-block-latest-comments,
.search-no-results .wp-block-latest-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results .wp-block-latest-posts,
.search-no-results .wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-no-results .page-content {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 0 auto 6.25rem;
  text-align: center;
  border-bottom: 1px solid var(--color-fifth);
  padding-bottom: 3rem;
}

/* Comment form
--------------------------------------------- */
.comments-area {
  width: min(calc(100% - 2.5rem), 54.1875rem);
  margin: 4.375rem auto 6.25rem;
}

.comment-respond {
  margin-top: 3rem;

  & .comment-reply-title {
    margin-bottom: 1.5rem;
  }

  & .comment-form input[type="text"],
  & .comment-form input[type="email"],
  & .comment-form input[type="url"],
  & .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-fifth);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
  }

  & .comment-form input[type="submit"] {
    background-color: var(--color-first);
    color: var(--color-white);
    border: 1px solid var(--color-first);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;

    &:hover {
      background-color: var(--color-white);
      color: var(--color-first);
    }
  }
}

.comment-metadata {
  display: inline-flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;

  & a {
    color: var(--color-fifth);
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  & time {
    text-transform: capitalize;
  }
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;

  & .comment {
    margin-bottom: 2.5rem;
  }

  & .comment .comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  & .comment .comment-metadata {
    font-size: 0.875rem;
    color: var(--color-fifth);
    margin-bottom: 1rem;
  }

  & .comment .comment-content {
    font-size: 1rem;
    line-height: 1.5em;
    background-color: var(--color-sixth);
    padding: 0.5rem 1rem;
    border-radius: 10px;
  }
}

.reply {
  margin-top: 1rem;
  text-align: right;
}

.comment-reply-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-first);
  text-decoration: none;
  border: 1px solid var(--color-first);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;

  &:hover {
    background-color: var(--color-first);
    color: var(--color-white);
  }
}

/* 404 Page
--------------------------------------------- */
.error-404.not-found {
  width: min(calc(100% - 2.5rem), 75rem);
  text-align: center;
  margin: 0 auto;
  padding: 4rem 0;

  & .page-header {
    position: relative;

    &::after {
      content: "404";
      position: absolute;
      font-size: clamp(8rem, 20vw, 10rem);
      color: var(--color-fifth);
      opacity: 0.15;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: -1;
    }
  }

  & .page-title {
    line-height: 1.2em;
  }

  & ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
  }

  & .search-form {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Marquese Clients - Shortcode */
.client-logos-marquee {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding: 2.5rem 0;
  
  & .zanesco-title{
      --color: var(--color-second);
  }
}

.client-logos-marquee-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 2rem;
  will-change: transform;
}

.client-logos-marquee-item {
  flex: 0 0 auto;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.client-logos-marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-logos-marquee-item:hover img {
  filter: grayscale(0%);
}

.menu-accent a {
  position: relative;
  padding: 10px 15px;
  border: 1px solid var(--color-white);
  background: var(--color-white);
  border-radius: 8px;
  color: var(--color-black);

  &:hover {
    background-color: transparent;
    color: var(--color-white);
  }
}
