@import url(root.css);
@import url(fonts.css);
@import url(common.css);

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-margin: 150px;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: var(--main-font), system-ui, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2em;
  font-size: var(--main-font-size);
  color: var(--font-color);
  background-color: var(--primary-color);
}

h1,
h2,
h3 {
  font-family: var(--h1-font), system-ui, Arial, sans-serif;
  font-weight: 600;
  line-height: normal;
  margin: 0;
}

h1 {
  font-size: var(--h1-font-size);
  position: relative;
  letter-spacing: 1px;
  margin-bottom: -20px;
}

h1 span {
  transform: scaleX(-1);
  display: inline-block;
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

ul {
  list-style-type: none;
  margin-block-start: 0;
  padding-inline-start: 0;
}

ul li:not(:last-child) {
  margin-bottom: 35px;
}

header {
  color: var(--header-font-color);
  font-size: var(--header-font-size);
  font-weight: 600;
  /* overflow: hidden; */
  background: var(--header-bg-color);
  box-shadow: var(--box-shadow);
}

header .logo {
  transition: all 0.3s ease;
}

header nav a {
  padding: 15px 0;
}

footer {
  font-size: var(--footer-font-size);
}

footer .contenido {
  padding: 30px 15px;
}

footer .copy {
  background-color: var(--tertiary-color);
}

footer .copy .contenido {
  padding: 5px 15px;
}

table {
  border-spacing: 0;
  width: 100%;
}

th,
td {
  padding: 5px 0;
  border-collapse: collapse;
}

hr {
  border: none;
  border-top: #ccc solid 1px;
  margin: 20px auto;
  width: min(1000px, 95%);
  margin-top: 100px;
}

/* section:not(#home section) { */
/* 	padding: 0 10px; */
/* } */

section {
  margin: var(--margin-sections);
}

section:first-of-type {
  margin-top: 175px;
}

strong {
  font-weight: bold;
  color: var(--secondary-color);
}

img {
  max-width: 100%;
}

button,
button[type="button"],
.btn {
  border: none;
  padding: 15px 8px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  color: white;
}

button {
  background-color: #343434;
  width: 100%;
}

button[type="button"],
.btn {
  font-weight: 600;
  width: min(270px, 100%);
  border: 3px solid white;
}

.error {
  font-size: 12px;
  color: red;
  font-weight: bold;
}

.logo {
  width: 60px;
  max-width: 100%;
}

.btn-dark,
button[type="button"] {
  background-color: var(--primary-btn-color);
  border: none;
}

.btn,
.btn-dark,
.back {
  margin-top: 50px;
  font-weight: 700;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
}

.btn-dark:hover,
button[type="button"]:hover {
  outline: 3px solid #262626;
  outline-offset: -3px;
}

.btn:hover,
.btn-dark:hover,
button[type="button"]:hover {
  background-color: white;
  color: #262626;
}

button[type="button"] {
  min-width: 70px;
}

div[aria-labelledby="swal2-title"] {
  border-radius: 0;
}

a {
  text-decoration: none;
}

a>svg,
span>svg {
  vertical-align: middle;
  height: 100%;
  width: 100%;
}

input:-webkit-autofill {
  background-color: white !important;
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  box-shadow: 0 0 0 1000px white inset !important;
  color: black !important;
}

input,
textarea {
  display: block;
  padding: 7px 10px;
  width: 100%;
  border-radius: 0;
  border: 1px solid #333;
}

input.invalid,
select.invalid,
textarea.invalid {
  border: 2px solid red;
  background-color: #ffe6e6;
  color: red;
}

input:focus {
  /* background-color   : white; */
  outline: none;
  border-radius: 0;
  /* border       : 2px solid black; */
}

input:focus.invalid {
  outline: none;
  border: 2px solid red;
}

label {
  display: block;
}

label:not(:first-of-type) {
  margin: 25px 0;
}

.contenido {
  max-width: var(--contenido);
  margin: auto;
  padding: 15px;
  /* position : relative; */
}

.loader {
  border-radius: 50%;
  border: 3px solid black;
  border-top-color: transparent;
  animation: spin 1.2s linear infinite;
  height: 50px;
  width: 50px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

#pages {
  margin-top: 50px;
}

#pages .active {
  color: #990000;
}

#collapsing-menu {
  background-color: var(--primary-color);
  /* padding         : 15px; */
  /* padding-top     : 130px; */
  max-width: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

#collapsing-menu.open {
  max-width: 100%;
  opacity: 1;
}

#collapsing-menu div {
  padding: 10px;
}

#collapsing-menu div:first-of-type {
  padding-top: 0;
}

#collapsing-menu div:last-of-type {
  padding-bottom: 0;
}

.sombra {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
}

details>summary:first-of-type {
  list-style: none;
}

details>summary {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

details>summary::before {
  content: "+";
  height: max-content;
  transition: all 0.3s ease-in-out;
}

details[open]>summary::before {
  transform: rotate(45deg);
}

summary {
  color: white;
  padding: 15px 20px;
}

details {
  user-select: none;
  overflow: hidden;
  margin-bottom: 3px;
  outline-offset: -3px;
}

.w3-dropdown-content {
  background-color: var(--tertiary-color);
  text-transform: uppercase;
  font-size: 13px;
  top: 55px;
  left: -16px;
  min-width: 124px;
}

.wa-flotante {
  position: fixed;
  z-index: 99;
  bottom: 30px;
  right: 25px;
  text-align: center;
  font-weight: bold;
}

.wa-flotante img {
  filter: drop-shadow(-2px 2px 8px rgba(0, 0, 0, 0.3));
  width: 70px;
}

.fondo {
  background-color: rgba(0, 0, 0, 0.2);
  height: 100%;
  width: 100%;
}

.circulo {
  height: 130%;
  background-color: var(--primary-color);
  aspect-ratio: 1;
  z-index: 1;
  border-radius: 50%;
}

#background-text{
  position: fixed;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--h1-font);
  gap: 0 100px;
  align-content: flex-start;
  pointer-events: none;
  line-height: 1.4;
  margin-top: -5em
}

#background-text span{
  font-size: 3.8rem;
  font-size: 8rem;
  /* font-size: clamp(3.3rem, 15.5vw, 15rem); */
  font-size: 15.5vw;
  white-space: nowrap;
  background: linear-gradient(90deg, #696869, #696869, #000, #000, #000, #000, #696869) -100% / 200%;
  background: linear-gradient(90deg, #444, #000, #000, #000, #000, #000, #000, #000, #000, #444) -200% / 300%;
  /* being excessively careful with compat, 
   * though this has been supported unprefixed and 
   * in the shorthand across major browsers for a while */
  -webkit-background-clip: text;
          background-clip: text;
  /* use color, don't use -webkit-text-fill-color anymore, 
   * was meant to solve a problem we haven't had in years */
  color: transparent;
  animation: shimmer 13s linear infinite;
  margin-bottom: -0.35em;
}

@media only screen and (max-width: 2600px) {
  #background-text span:nth-child(1) {
    margin-top: -0.2em;
  }
}

@keyframes shimmer { to { background-position: 100% } }

@media only screen and (min-width: 601px) {
  header.scrolled .logo {
    width: 45px;
  }
}

@media screen and ((min-width: 600px) and (max-width: 950px)) {}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: var(--h1-small-font-size);
  }

  h2 {
    font-size: var(--h2-small-font-size);
  }

  h3 {
    font-size: var(--h3-small-font-size);
  }

  button[type="button"],
  .btn {
    padding: 10px 5px;
    width: min(200px, 100%);
  }

  .logo {
    width: 100px;
  }

  .btn,
  .btn-dark {
    font-size: 15px;
  }

  section:first-of-type {
    margin-top: 124px;
  }

  footer .flex {
    flex-direction: column;
  }

  .wa-flotante {
    bottom: 20px;
    right: 10px;
  }

  .wa-flotante img {
    width: 60px;
  }
  .circulo {
    height: 140%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
