:root {
  --font-primary: 'Cause', sans-serif;
  --font-secondary: 'Story Script', sans-serif;

  --bg: #222222;
  --text-color: #eee;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  position: relative;

  margin: 0;

  font-family: var(--font-primary);
  font-size: 1.6rem;
  color: var(--text-color);

  background-color: var(--bg);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-secondary);
}

img {
  width: 100%;
  height: auto;
  padding: 0;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.container {
  width: 95%;
  max-width: 100rem;
  margin: 0 auto;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  width: 100%;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.8);

  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.overlay__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: auto;
  height: 70%;

  border-radius: .5rem;
}

.overlay__close {
  position: absolute;
  bottom: 5rem;
}

/* Components */
/* Btns */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  width: max-content;
  padding: 1.5rem 2rem;
  border: 0;
  border-radius: .5rem;

  outline: none;
  cursor: pointer;

  color: var(--text-color);
}

.btn--success {
  background-color: rgba(78, 160, 6, 0.8);
  
  transition: .3s ease-in-out;
}

.btn--success:hover {
  transform: translateY(-.5rem);
  background-color: rgba(78, 160, 6, 1);
}

.btn--danger {
  background-color: rgba(160, 57, 6, 0.8);
  
  transition: .3s ease-in-out;
}

.btn--danger:hover {
  transform: translateY(-.5rem);
  background-color: rgba(160, 57, 6, 1);
}

.btn--instagram {
  background-color: rgba(137, 6, 160, 0.8);

  transition: .3s ease-in-out;
}

.btn--instagram:hover {
  transform: translateY(-.5rem);
  background-color: rgba(137, 6, 160, 1);
}

.btn--tiktok {
  background-color: rgba(0, 0, 0, 1);

  transition: .3s ease-in-out;
}

.btn--tiktok:hover {
  transform: translateY(-.5rem);
  background-color: rgb(25, 25, 25);
}

.btn--facebook {
  background-color: rgba(0, 100, 250, 0.8);

  transition: .3s ease-in-out;
}

.btn--facebook:hover {
  transform: translateY(-.5rem);
  background-color: rgba(0, 100, 250, 1);
}

/* Header */
.header {
  --hover-color: #eee;

  position: fixed;
  z-index: 5;
  top: 0;

  width: 100%;
  padding: 1rem 2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 2rem;

  color: var(--text-color-overlay);

  transition: .3s ease-in-out;
}

@media screen and (min-width: 768px) {
  .header {
    flex-direction: row;
  }
}


header.change {
  background-color: #fff;
  color: #000;
}

.header__heading {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}

.header__heading--heading {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 5vw, 3rem);
  color: inherit;
  margin: 0;
}

.header__heading--image {
  width: clamp(5rem, 20vw, 10rem);
  height: auto;
  border-radius: .5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  color: #eee;
}

.nav__item {
  position: relative;

  color: inherit;
  font-size: clamp(2rem, 4vw, 2.4rem);
  text-decoration: none;
}

.nav__item::after {
  content: '';

  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -.5rem;
  
  width: 0px;
  height: 2px;
  
  background-color: var(--hover-color);
  transform: translate(-50%, -50%);

  transition: width .3s ease-in-out;
}

.nav__item:hover::after {
  width: 100%;
  background-color: #eee;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100dvh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.hero__content--heading {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 10vw, 5rem);
}

.hero__content--text {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
  margin-top: 1rem;
}

.hero__content--btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
  font-size: 1.8rem;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Main */

.main {
  width: 95%;
  max-width: 120rem;
  margin: 5rem auto;
}

/* Sections */

.section__heading {
  margin-bottom: 3rem;
  margin-top: 2rem;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
}

.article {
  margin-top: 3rem;
}

.article .section__heading {
  font-size: clamp(2rem, 4vw, 2.4rem);
  margin-bottom: 2rem;
}

/* Servicios */
.servicios {
  margin: 2rem;
}

@media screen and (min-width: 768px) {
  .servicios {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
  }
}

.servicios__image {
  border-radius: .5rem;
}

@media screen and (min-width: 768px) {
  .servicios__image {
    width: 50%;
  }
}

.servicios .card {
  border: 1px solid #555;
  border-radius: .5rem;
  margin-bottom: 2rem;
  height: max-content;
}

@media screen and (min-width: 768px) {
  .servicios .card {
    width: 50%;
    margin-bottom: 0;
  }
}

.servicios .card__heading {
  padding: 2rem 1rem;
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
}

.servicios .card__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  padding: 2rem 1rem;
  border: 1px solid #555;
  border-left: 0;
  border-right: 0;
  
  text-align: center;
  font-size: 2rem;
}

.servicios .card__body svg {
  width: 3rem;
}

.servicios .card__footer {
  padding: 2rem 1rem;
}

.servicios .card__footer p {
  text-align: center;
  margin: 0;
  margin-bottom: 2rem;
}

.servicios .card__ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  list-style: none;

  padding: 0;
  margin: 0;
}

.servicios .card__li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-direction: column;
  
  padding: 1rem;
  border-bottom: 1px solid #555;
}

.servicios .card__li:last-child {
  border-bottom: 0;
}

.servicios .card__li span {
  font-size: 2rem
}

@media screen and (min-width: 768px) {
  .servicio {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
  }

  .servicios__desc {
    width: 50%;
  }

  .servicios__image {
    width: 50%;
    height: auto;
    object-fit: cover;
    object-position: top;
  }
}

/* Includes */
.includes {
  
}

.includes .card {
  position: relative;

  border: 1px solid #555;
  border-radius: .5rem;
  max-width: 25rem;
  margin: 0 auto;
  margin-bottom: 5rem;
}

@media screen and (min-width: 768px) {
  .includes .card {
    max-width: 100%;
  }
}

.includes .card__heading {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);

  font-size: 2.4rem;
  background: var(--bg);

  padding: 1rem 2rem;

  margin: 0;
}

.includes .card .elements {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 5rem;
}

@media screen and (min-width: 768px) {
  .includes .card .elements {
    flex-direction: row;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

.includes .card .element {
  width: 100%;
  border-bottom: 1px solid #555;
  padding: 2rem;
}

@media screen and (min-width: 768px) {
  .includes .card .element {
    border-bottom: 0;
    border-right: 1px solid #555;
  }
  
  .includes .card .element:last-child {
    border-right: 0;
  }
}

.includes .card .element__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;

  margin-bottom: 2rem;
}

.includes .card .element__icon svg {
  padding: .5rem;
  border-radius: 50%;
}

.includes .card .element__icon--red svg {
  background-color: rgb(101, 5, 7);
}

.includes .card .element__icon--green svg {
  background-color: rgb(20, 114, 4);
}

.includes .card .element__icon--yellow svg {
  background-color: rgb(244 117 15);
}

.includes .card .element__icon span {
  font-size: 2rem;
  text-transform: uppercase;
}

.includes .card .element__ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 2rem;
  list-style-type: "✔️";
}

.includes .card .element__li {
  margin-bottom: 1rem;
}

.includes .card .element__li:last-child {
  margin-bottom: 0;
}

/* Galery */
.galery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .galery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  .galery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.galery__image {
  border-radius: .5rem;
  cursor: pointer;
  max-height: 30rem;
  max-width: 25rem;
  object-fit: cover;
  object-position: center;
}

/* Cotizar */

.section--cotizar .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-direction: column;
  margin: 2rem;
}

@media screen and (min-width: 768px) {
  .section--cotizar .links {
      flex-direction: row;
    }
}

.form {
  padding: 2rem;
  border: 1px solid #444;
  border-radius: .5rem;
}

.form__heading {
  margin-bottom: 2rem;
}

.form__campos {
  margin: 5rem 0;

  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form__campo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
}

.form__label {
  margin-left: 1rem;
  cursor: pointer;
}

.form__input {
  padding: 1rem 1rem;
  border: 1px solid #444;
  border-radius: .5rem;
  outline: none;

  background: transparent;
  
  color: var(--text-color);

  transition: .3s ease-in-out;
}

.form__input:hover,
.form__input:focus {
  border-color: #666;
}

.form__input:disabled {
  opacity: .5;
  background-color: rgba(191, 66, 66, 0.3);
}

.form__submit {
  margin-top: 2rem;
  width: 100%;
}

.form--cotizar {
  width: 95%;
  max-width: 60rem;
  margin: 0 auto;
}

.form--cotizar .form__result {
  padding: 1rem 2rem;
  border-radius: .5rem;

  text-align: center;
  background-color: #2a2a2a;
}

/* Footer */
.footer {
  background-color: #303030;
  padding: 2rem 1rem;
}

.footer__copy {
  text-align: center;
}
.footer__copy--text {
  margin: 0;
  opacity: 0.8;
}