/*
Theme Name:  Theme Nexo
Theme URI:   https://nexo.audiovisual
Author:      Nexo Audiovisual
Author URI:  https://nexo.audiovisual
Description: Tema personalizado para NEXO.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-nexo
Tags:        custom-logo, custom-menu, featured-images, gsap, animation
*/

@font-face {
  font-family: "Indivisible";
  src: url("assets/fonts/indivisible-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Indivisible";
  src: url("assets/fonts/indivisible-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Indivisible";
  src: url("assets/fonts/indivisible-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Indivisible";
  src: url("assets/fonts/indivisible-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Indivisible";
  src: url("assets/fonts/indivisible-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Indivisible";
  src: url("assets/fonts/indivisible-bold-italic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --nexo-dark: #15071f;
  --nexo-cream: #f0f0e4;
  --nexo-white: #ffffff;
  --nexo-green: #4bf29a;
  --nexo-purple: #b200e3;
  --nexo-cyan: #0cf2ff;
  --nexo-yellow: #f2e35d;
  --nexo-red: #ff3151;
  --nexo-orange:    #f2853f;
  --nexo-teal:      #5f96a6;
  --nexo-tan:       #d9a070;
  --nexo-slate:     #8591a8;
  --nexo-turquoise: #2fe6c8;

  --nexo-bg: #F2FFE0;

  --section-accent: var(--nexo-purple);

  --font-heading: "Indivisible", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Indivisible", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-none:    1;
  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.4;
  --lh-base:    1.5;
  --lh-relaxed: 1.6;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3rem;
  --fs-5xl:  4rem;
  --fs-6xl:  5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --container-max: 1640px;
  --container-pad: clamp(1.625rem, 3.6vw, 3.25rem);
  --section-pad:   var(--container-pad);

  --section-y:     clamp(var(--space-12), 8vh, var(--space-16));

  --bp-mobile:  640px;
  --bp-tablet:  768px;
  --bp-desktop: 1024px;
  --bp-extra:   1280px;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-fast: 180ms;
  --duration-base: 420ms;

  --x-relief: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.28));

  --z-nav: 100;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--nexo-cream);
  background: var(--nexo-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

button {
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-block: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-none);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

[hidden] {
  display: none !important;
}

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

:is(a, button):is([class*="cta"], [class*="btn"], [class*="button"]):not([class*="filter"]),
button[type="submit"] {
  position: relative;
  overflow: hidden;
  z-index:  0;
  transition: color 380ms ease 130ms;
}

:is(a, button):is([class*="cta"], [class*="btn"], [class*="button"]):not([class*="filter"])::before,
button[type="submit"]::before {
  content:          "";
  position:         absolute;
  left:             50%;
  top:              50%;
  width:            100%;
  aspect-ratio:     1;
  background:       var(--btn-reveal, var(--nexo-red));
  transform:        translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center;
  transition:       transform 850ms cubic-bezier(0.45, 0, 0.25, 1);
  z-index:          -1;
  pointer-events:   none;
}

:is(a, button):is([class*="cta"], [class*="btn"], [class*="button"]):not([class*="filter"]):hover:not(:disabled)::before,
button[type="submit"]:hover:not(:disabled)::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.9);
}

:is(a, button):is([class*="cta"], [class*="btn"], [class*="button"]):not([class*="filter"]):hover:not(:disabled),
button[type="submit"]:hover:not(:disabled) {
  color: var(--btn-reveal-fg, var(--nexo-dark)) !important;
}

input:is([class*="cta"], [class*="btn"], [class*="button"]):not([class*="filter"]),
input[type="submit"] {
  background-image:    radial-gradient(circle farthest-corner, var(--btn-reveal, var(--nexo-red)) 99%, transparent 100%) !important;
  background-repeat:   no-repeat !important;
  background-position: center !important;
  background-size:     0% 0% !important;
  transition:          background-size 850ms cubic-bezier(0.45, 0, 0.25, 1), color 380ms ease 130ms;
}

input:is([class*="cta"], [class*="btn"], [class*="button"]):not([class*="filter"]):hover:not(:disabled),
input[type="submit"]:hover:not(:disabled) {
  background-size: 150% 150% !important;
  color:           var(--btn-reveal-fg, var(--nexo-dark)) !important;
}

@media (min-width: 1280px) {
  :root {
    --fs-4xl: 3.25rem;
    --fs-5xl: 4.5rem;
    --fs-6xl: 5.5rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.25rem;
    --fs-4xl: 2.625rem;
    --fs-5xl: 3.25rem;
    --fs-6xl: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-xl:  1.375rem;
    --fs-2xl: 1.625rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 2.75rem;
    --fs-6xl: 3.25rem;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 72px;

    --fs-lg:  1.125rem;
    --fs-xl:  1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.75rem;
    --fs-4xl: 2rem;
    --fs-5xl: 2.5rem;
    --fs-6xl: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
