/* **********Custom properties ************/
:root {
  --primary-color: rgb(248, 166, 44);
  --primary1-color: rgba(248, 166, 44, 0.75);
  --secondary-color: rgb(126 173 14);
  --third-color: rgb(33 53 2);
  --white-color: rgb(255, 255, 255);
  --gray-ligth-colo: rgb(243 243 243);
  --gray-color: rgb(204 204 204);
  --gray-dark-color: rgb(102 102 102);
  --black-color: rgb(0, 0, 0);
  --link-color: rgb(80 158 227);
  --title-color: rgb(51 51 51);
  --text-color: rgb(34 34 34);
  --white-color-opacity: rgba(255, 255, 255, 0.5);
  --black-alpha-color: rgba(0, 0, 0, 0.5);
  --font-family: "Montserrat, sans-serif";
  --max-width: 100%;
  --header-height: 4rem;
}

/* **********Resets ************/
html {
  box-sizing: border-box;
  font-family: var(--font-family);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white-color);
  color: var(--text-color);
}

a {
  color: var(--link-color);
  transition: opacity 0.5s ease-out;
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}
h5 {
  font-size: 0.875rem;
}

p {
  line-height: 1.6;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.no-responsive {
  max-width: none;
  height: auto;
}

/* **********Utilities ************/
.box-shadow {
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.5);
}

/* **********Header / Navbar ************/

.hamburger {
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.bar {
  display: block;
  width: 100%;
  height: 4px;
  background: #000;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
}

.hamburger.open .bar1 {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.open .bar2 {
  opacity: 0;
}

.hamburger.open .bar3 {
  transform: translateY(-10px) rotate(-45deg);
}

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 2rem 1rem;
}

.container1 {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white-color);
  z-index: 100000000;
  padding: 1rem;
}

.header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  height: 60px;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.menu {
  position: fixed;
  left: 0;
  top: var(--header-height);
  width: 100%;
  background-color: var(--white-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.menu a {
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  color: var(--black-color);
  width: 100%;
}

.menu a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.menu-btn {
  cursor: pointer;
}

.menu {
  transform-origin: top;
  transform: translateY(-100%);
  opacity: 0;

  transition: transform 0.8s cubic-bezier(0.23, 0.93, 0.37, 1),
    opacity 0.4s ease;

  pointer-events: none;
  z-index: 8;
}

.menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media screen and (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
  .menu {
    position: static;
    width: auto;
    flex-direction: row;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu a {
    padding: 0 1rem;
    font-size: 1rem;
  }

  .menu a:last-child {
    padding-right: 0;
  }
  .menu a:hover {
    background-color: transparent;
    color: var(--primary-color);
  }
}

/* ********** Hero image ************/

.hero-image {
  background-image: var(--image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-image-opacity {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--black-alpha-color);
}

.her {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.her a {
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn1 {
  border-radius: 0.5rem;
  padding: 1rem;
  display: inline-block;
  width: 150px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  height: 50px;
  border: 4px solid;
  background-color: transparent;
}

.btn1:hover {
  color: var(--white-color);
}
.hero-image-opacity1 {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.1);
  padding-bottom: 5%;
}

.hero {
  background-size: auto;
}

.hero-image-title {
  color: var(--primary-color);
  font-size: 7.5vw;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.titler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.lista {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item {
  position: absolute;
  animation: roll 8s ease-out 1s infinite;
  opacity: 0;
}

.item:nth-child(1) {
  animation-delay: 0s;
}

.item:nth-child(2) {
  animation-delay: 2s;
  color: #4a90e2;
}

.item:nth-child(3) {
  animation-delay: 4s;
  color: #d7bfae;
}

.item:nth-child(4) {
  animation-delay: 6s;
  color: var(--secondary-color);
}

@keyframes roll {
  0% {
    opacity: 0;
    transform: translate3d(0, -50%, 0);
  }
  2.5%,
  25% {
    opacity: 1;
    transform: translateZ(0);
  }

  27.5%,
  100% {
    opacity: 0;
    transform: translate3d(0, 10%, 0);
  }
}

@media screen and (min-width: 1024px) {
  .hero-image1 {
    background-image: url("/Graphicsmaterial/compu.jpg?v=3");
  }

  .hero1 {
    background-position: center 10%;
  }
}

/* ********** Acerca ************/
.text-center {
  text-align: left;
}

.title {
  text-align: center;
  /* aqui un border botton si falla */
  width: 100%;
}

.title h2 {
  position: relative;
  text-align: center;
  padding-bottom: 0.5rem;
}

.acerca-article img {
  width: 100%;
}

.title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: var(--primary-color);
  transition: width 1s ease-in-out;
}

.title h2.animate::after {
  width: 100%;
}

.acerca {
  padding: 2rem 1rem;
}

.acerca > article {
  margin-bottom: 1rem;
}

/* ********** servicios ************/
.section-title {
  border-top: solid var(--primary-color);
  border-bottom: solid var(--primary-color);
  text-align: center;
  color: var(--third-color);
  width: 90vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
}

.sectiontitle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.conta {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.conta a:hover {
  opacity: 1;
}

.conta a {
  color: var(--title-color);
}
.services-card {
  margin: 2rem auto;
  padding: 0.5rem 1rem;
  margin: 1rem auto;
  padding: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border-radius: 5px;
}

.services-card:hover {
  box-shadow: 4px 4px 16px var(--primary-color);
}

.services-card svg {
  margin-bottom: 1.25rem;
}

.services-card h3 {
  position: relative;
  text-align: center;
  width: 100%;
  padding-bottom: 0.5rem; /* para que no se encime */
}

.services-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: var(--primary-color);
  transition: width 1s ease-in-out;
}

/* Se activa cuando el elemento entra en vista */
.services-card h3.animate::after {
  width: 100%;
}
.imagen3 {
  flex: 0 0 auto;
  width: 100%;
  height: 192px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.25rem;
}

.imagen3 img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

.imagen2 {
  order: 0;
}

/* ********** Formulario ************/
.contac {
  background-color: #213502;
  margin: 0;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  height: 90vh;
}

.sectiontitle1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sectiontitle1 > * {
  color: var(--white-color);
  margin-top: 1rem;
}

.btn {
  border-radius: 0.5rem;
  padding: 1rem;
  display: inline-block;
  width: 150px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: var(--primary-color);
  height: 50px;
  border-color: #000;
}

.btn:hover {
  color: var(--white-color);
}

.modal {
  position: fixed;
  z-index: 9999999999;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: var(--black-alpha-color);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 1s;
}

.modal-content {
  position: relative;
}

.contac-form {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 800px;
}

.contac-form > * {
  padding: 0.5rem;
  margin: 1rem auto;
  display: block;
  width: 100%;
}

.contac-form input,
.contac-form textarea {
  font-size: 0.85rem;
  font-family: var(--font-family);
}

.contac-form input {
  border: 0;
  border-bottom: thin solid var(--primary-color);
  padding-left: 0;
  background-color: #213502;
  color: var(--white-color);
}

.contac-form textarea {
  border: thin solid var(--primary-color);
  resize: none;
  background-color: #213502;
  color: var(--white-color);
}

.none {
  display: none;
}

.contac-form input.btn[type="submit"] {
  background-color: var(--primary-color);
  width: 150px;
  border-color: #000;
  color: #000;
  margin-top: 0;
  cursor: pointer;
  transition: opacity 0.2s ease-out, background-color 0.2s ease-out;
  margin: 1rem 0 0 0;
  padding: 1rem;
}

.contac-form input.btn[type="submit"]:hover {
  color: var(--white-color);
  background-color: var(--primary1-color);
  text-align: center;
}

.contac-form *::placeholder {
  color: var(--primary-color);
  opacity: 0.75;
}

.contac-form input,
.contac-form textarea {
  outline: none;
}

.modal#gracias:target {
  opacity: 1;
  pointer-events: auto;
}

.contact-form-response {
  padding: 1rem;
  width: 300px;
  text-align: center;
  background-color: var(--white-color);
  border-radius: 10px;
}

.contact-form-response svg {
  margin-top: 1rem;
}

.contact-form-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-loader img {
  width: 40px;
  height: auto;
  display: block;
}

.none {
  display: none;
}

.contac-form input:-webkit-autofill,
.contac-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #213502 inset !important;
  -webkit-text-fill-color: var(--white-color) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ********** contacto ************/
.hablame {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding: 1rem;
  margin: 1rem;
}
.contacto {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 200px;
  justify-content: center;
  align-items: center;
  color: var(--title-color);
  border-radius: 10px;
}

.link {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 200px;
  justify-content: center;
  align-items: center;
}

.contacto p {
  padding-top: 0;
  margin-top: 0;
}

.contacto:hover {
  box-shadow: 4px 4px 16px var(--primary-color);
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .hablame {
    display: grid;
    grid-template-columns: repeat(2, 45%);
    justify-content: space-between;
  }
  .contacto {
    width: 352px;
  }
  .center {
    grid-column: 1 / span 2;
    justify-self: center;
    width: 352px;
  }
}

@media screen and (min-width: 1024px) {
  .hablame {
    display: grid;
    grid-template-columns: repeat(3, 30%);
    justify-content: space-between;
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
  .contac {
    height: 85vh;
  }
  .contacto {
    width: 100%;
  }

  .center {
    grid-column: auto;
    justify-self: auto;
    margin-top: 0;
  }
}

/* ********** Footer ************/
.footer {
  background-color: var(--primary-color);
  color: var(--black-color);
  text-align: center;
  padding: 0.5rem;
  margin-top: 0;
  padding-top: 0;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ********** Media Queries ************/

@media screen and (min-width: 768px) {
  .services > .container {
    display: grid;
    grid-template-columns: repeat(2, 45%);
    justify-content: space-between;
  }

  .container .services-card {
    margin: 1rem auto;
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* pegar arriba */
    align-items: flex-start; /* alinear al inicio horizontal */
    box-sizing: border-box;
    min-height: 608px;
  }

  .services-card svg {
    align-self: center;
  }

  .services > .container {
    grid-auto-rows: 1fr;
  }
  .services-card {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (min-width: 1024px) {
  .contac-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
  }

  .contac-form input,
  .contac-form textarea {
    font-size: 1rem;
  }

  .contac-form textarea,
  .contact-form-loader {
    grid-column: span 2;
  }

  .services > .container {
    grid-template-columns: repeat(3, 30%);
  }

  .header {
    position: sticky;
    top: 0;
    padding: 2rem;
    height: calc(var(--header-height) - 0.5rem);
  }

  .full-lg {
    width: 100%;
    min-height: 100vh;
  }

  .acerca {
    display: grid;
    grid-template-columns: repeat(2, 45%);
    justify-content: space-between;
    align-content: center;
    background-color: var(--white-color);
  }

  .acerca-article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 0;
  }

  .contenido {
    order: 0;
  }

  .imagen {
    order: 1;
  }

  .contenido1 {
    order: 2;
  }

  .imagen2 {
    order: 3;
  }

  .contenido4 {
    order: 5;
  }

  .imagen4 {
    order: 6;
  }

  .contenido5 {
    order: 11;
  }

  .imagen5 {
    order: 10;
  }
}
