/* GLOBALES */
/* para media queries escribir mq en el codidgo */

:root {
  --blanco: #ffffff;
  --oscuro: #212121;
  --primario: #ffc107;
  --secundario: #0097a7;
  --gris: #757575;
  --grisClaro: #dfe9f3;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-snap-type: y proximity;
}

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

body {
  font-size: 16px;
  font-family: "Krub", sans-serif;
  background-image: linear-gradient(
    to top,
    var(--grisClaro) 0%,
    var(--blanco) 100%
  );
}

header {
  display: flex;
  flex-direction: column;
}

.sombra {
  -webkit-box-shadow: 0px 5px 15px 0px rgba(112, 112, 112, 0.48);
  -moz-box-shadow: 0px 5px 15px 0px rgba(112, 112, 112, 0.48);
  box-shadow: 0px 5px 15px 0px rgba(112, 112, 112, 0.48);
  background-color: var(--blanco);
  padding: 2rem;
  border-radius: 1rem;
}

hr {
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(242, 56, 10, 1) 0%,
    rgba(232, 222, 26, 1) 50%,
    rgba(242, 56, 10, 1) 100%
  );
  border: none;
  outline: none;
  margin: 3em 3em 5em;
  position: relative;
}

/*TITULOS */

h1 {
  font-size: 3.8rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 1.8rem;
}

h1,
h2,
h3 {
  text-align: center;
}

/* UTILIDADES */

.w-100 {
  width: 100%;
}

@media (min-width: 768px) {
  .w-100 {
    width: auto;
  }
}

.flex {
  display: flex;
}

.alinear-derecha {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ESPECIFICOS */

header {
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 35%,
    rgba(0, 212, 255, 1) 100%
  );
  color: white;
}

.titulo span {
  font-size: 2rem;
}

.contenedor {
  max-width: 120rem;
  margin: 0 auto;
}

.boton {
  background-color: var(--secundario);
  text-decoration: none;
  color: var(--blanco);
  padding: 1rem 3rem;
  margin-top: 0;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 0.5rem;
  text-align: center;
  border: none;
  width: auto;
}

.boton:hover {
  cursor: pointer;
}

.formulario .boton {
  display: block;
  margin: 2rem auto 0 auto; /* centro vertical y horizontal */
  width: auto;
  background-color: var(--secundario);
  color: var(--blanco);
  padding: 1rem 3rem;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

@media (min-width: 480px) {
  .boton {
    width: auto;
  }
}
.nav-bg {
  background-color: var(--secundario);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
}
.navegacion-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

@media (min-width: 768px) {
  .navegacion-principal {
    flex-direction: row;
    justify-content: space-between;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    justify-content: space-between;
  }
}

.navegacion-principal a {
  display: block;
  text-align: center;
  color: var(--blanco);
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem;
}

.navegacion-principal a:hover {
  background-color: var(--primario);
  color: var(--oscuro);
}

.logo {
  width: 10rem;
  height: 10rem;
}

.hero {
  background-image: url("../img/Firefly_software\ development\ background\ 24839.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 450px;
  position: relative;
  margin-bottom: 2rem;
}

.contenido-hero {
  position: absolute;
  background-color: rgb(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contenido-hero h2,
.contenido-hero p {
  color: var(--blanco);
}

.ubicacion {
  display: flex;
  align-items: baseline;
}

/* --------------
    SOBRE MI 
-----------------*/

.sobre-mi {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.yo {
  position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 350px;
  margin: 0 10rem;
  background: #fff;
  padding: 15px;
  border-style: solid;
  border-width: 10px;
  border-top-color: lighten(#000, 20%);
  border-right-color: lighten(#000, 0%);
  border-bottom-color: lighten(#000, 20%);
  border-left-color: lighten(#000, 0%);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.intro {
  max-width: 45rem;
  text-indent: 40px;
  font-weight: 550;
  font-size: 17px;
}

.check-menu {
  display: none;
}

.label-check {
  display: none;
}

.nav-links {
  list-style: none;
}

/*MEDIA HAMBURGUESA */

@media (max-width: 768px) {
  .label-check {
    display: block;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    right: 0;
    width: 100%;
    top: 100%;
    background-color: var(--secundario);
  }

  .check-menu:checked + .nav-links {
    display: flex;
  }
  .check-menu:checked + .menu-hamburguesa {
    display: none;
  }
}

@media (max-width: 500px) {
  .sobre-mi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .yo {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 25rem;
    max-height: 25rem;
    margin: 0 5rem;
    background: #fff;
    padding: 10px;
    border-style: solid;
    border-width: 10px;
    border-top-color: lighten(#000, 20%);
    border-right-color: lighten(#000, 0%);
    border-bottom-color: lighten(#000, 20%);
    border-left-color: lighten(#000, 0%);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }
}

/* --------------
    SERVICIOS 
-----------------*/

/*scroll snap */
.servicios,
.navegacion-principal,
.formulario {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

@media (min-width: 768px) {
  .servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
  }
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.servicio h3 {
  color: var(--secundario);
  font-weight: 660;
}

.servicio p {
  line-height: 2;
  text-align: center;
}

/* Ajustes para .servicio-1 */
.servicio-1 {
  background: url("../assets/icons/wordpress-logo-svgrepo-com.svg") no-repeat
    top center/cover;
  position: relative;
  z-index: 20;
  height: 15rem;
  width: 15rem;
  border-radius: 15rem;
}

.servicio-1:hover {
  background: url("../assets/icons/woo-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.5s ease-in-out;
}

/* Ajustes para .servicio-2 */
.servicio-2 {
  background: url("../assets/icons/next-dot-js-svgrepo-com.svg") no-repeat top
    center/cover;
  position: relative;
  z-index: 20;
  height: 15rem;
  width: 15rem;
  border-radius: 15rem;
}

.servicio-2:hover {
  background: url("../assets/icons/logo-react-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.5s ease-in-out;
}

/* Ajustes para .servicio-3 */
.servicio-3 {
  background: url("../assets/icons/shopify-color-svgrepo-com.svg") no-repeat top
    center/cover;
  position: relative;
  z-index: 20;
  height: 16rem;
  width: 16rem;
  border-radius: 15rem;
}

.servicio-3:hover {
  background: url("../assets/icons/woo-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.5s ease-in-out;
}

/* Ajustes para .servicio-4 */
.servicio-4 {
  background: url("../assets/icons/bokun.png") no-repeat top center/cover;
  position: relative;
  z-index: 20;
  height: 16rem;
  width: 16rem;
  border-radius: 15rem;
}

.servicio-4:hover {
  background: url("../assets/icons/fareharbor.png") no-repeat top center/cover;
  transition: 0.5s ease-in-out;
}

/* Ajustes para .servicio-5 */
.servicio-5 {
  background: url("../assets/icons/gyg.png") no-repeat top center/cover;
  position: relative;
  z-index: 20;
  height: 16rem;
  width: 16rem;
  border-radius: 15rem;
}

.servicio-5:hover {
  background: url("../assets/icons/viator.png") no-repeat top center/cover;
  transition: 0.5s ease-in-out;
}

/* Ajustes para .servicio-6 */
.servicio-6 {
  background: url("../assets/icons/html-5-svgrepo-com.svg") no-repeat top
    center/cover;
  position: relative;
  z-index: 20;
  height: 16rem;
  width: 16rem;
  border-radius: 15rem;
}

.servicio-6:hover {
  background: url("../assets/icons/css-3-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.5s ease-in-out;
}

/* ICONOS */

.iconos {
  height: 15rem;
  width: 15rem;
  border-radius: 15rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  z-index: 10;
}

.iconos-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 10rem;
  background-color: transparent;
}

/* -----------------
    TECNOLOGIAS
----------------- */

.tecnologias {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tecnologias-listas {
  display: flex;
  flex-direction: row;
}

.tecnologias-lista {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tecnologias-li {
  justify-content: space-around;
}

#bootstrap {
  background: url("/assets/icons/bootstrap-fill.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#google-ads {
  background: url("/assets/icons/icons1/ads1.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#google-ads:hover {
  background: url("/assets/icons/ads.svg") no-repeat top center/cover;
  transition: 0.4s ease-in-out;
  height: 45px;
  width: 45px;
}
#html5 {
  background: url("/assets/icons/icons1/html5.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#html5:hover {
  background: url("/assets/icons/html-5-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.4s ease-in-out;
}

#css3 {
  background: url("/assets/icons/icons1/css3.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#css3:hover {
  background: url("/assets/icons/css-3-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.4s ease-in-out;
}

#js {
  background: url("/assets/icons/icons1/js.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#js:hover {
  background: url("/assets/icons/js.svg") no-repeat top center/cover;
  transition: 0.4s ease-in-out;
}

#react {
  background: url("/assets/icons/icons1/react1.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#react:hover {
  background: url("/assets/icons/react.svg") no-repeat top center/cover;
  transition: 0.4s ease-in-out;
}

#mongodb {
  background: url("/assets/icons/icons1/mongo1.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}
#mongodb:hover {
  background: url("/assets/icons/mongodb.svg") no-repeat top center/cover;
  transition: 0.4s ease-in-out;
}

#stripe {
  background: url("/assets/icons/icons1/stripe.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}
#stripe:hover {
  background: url("/assets/icons/stripe-v2-svgrepo-com.svg") no-repeat top
    center/cover;
  transition: 0.4s ease-in-out;
}

#analytics {
  background: url("/assets/icons/icons1/anaylytics1.svg") no-repeat top
    center/cover;
  height: 45px;
  width: 45px;
}

#analytics:hover {
  background: url("/assets/icons/analytics.svg") no-repeat top center/cover;
  transition: 0.4s ease-in-out;
}

#nextjs {
  background: url("/assets/icons/nextjs.svg") no-repeat top center/cover;
  height: 45px;
  width: 45px;
}

#wordpress {
  background: url("/assets/icons/wordpress-logo-svgrepo-com.svg") no-repeat top
    center/cover;
  height: 45px;
  width: 45px;
}

@media only screen and (min-width: 768px) {
  .clientes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .tecnologias-lista {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
  }
}

@media only screen and (min-width: 480px) {
  .tecnologias {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .tecnologias-lista {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  #html5 {
    background: url("/assets/icons/html-5-svgrepo-com.svg") no-repeat top
      center/cover;
  }

  #css3 {
    background: url("/assets/icons/css-3-svgrepo-com.svg") no-repeat top
      center/cover;
  }

  #js {
    background: url("/assets/icons/js.svg") no-repeat top center/cover;
  }

  #react {
    background: url("/assets/icons/react.svg") no-repeat top center/cover;
  }

  #mongodb {
    background: url("/assets/icons/mongodb.svg") no-repeat top center/cover;
  }

  #stripe {
    background: url("/assets/icons/stripe-v2-svgrepo-com.svg") no-repeat top
      center/cover;
  }

  #analytics {
    background: url("/assets/icons/analytics.svg") no-repeat top center/cover;
  }

  #google-ads {
    background: url("/assets/icons/ads.svg") no-repeat top center/cover;
  }

  #nextjs {
    background: url("/assets/icons/nextjsw.svg") no-repeat top center/cover;
  }
  #wordpress {
    background: url("/assets/icons/wp.svg") no-repeat top center/cover;
  }
}

/* -----------------
    CLIENTES Y  MAS 
----------------- */

.clientes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cliente {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

#pkpc {
  background: url("/img/pkpc.png") no-repeat top center/cover;
  height: 200px;
  width: 350px;
}

#pkpc:hover {
  background: url("/img/pkpc-alt.png") no-repeat top center/cover;
  transition: 0.5s ease-in-out;
}

#antiparos {
  background: url("/img/antiparos.png") no-repeat top center/cover;
  height: 200px;
  width: 350px;
}

#antiparos:hover {
  background: url("/img/antiparos-alt.png") no-repeat top center/cover;
  transition: 0.5s ease-in-out;
}

#dental {
  background: url("/img/dental-opsis.png") no-repeat top center/cover;
  height: 200px;
  width: 350px;
}

#dental:hover {
  background: url("/img/dental-opsis-alt.png") no-repeat top center/cover;
  transition: 0.5s ease-in-out;
}

#daily {
  background: url("/img/dailytrips.png") no-repeat top center/cover;
  height: 200px;
  width: 350px;
}

@media only screen and (min-width: 768px) {
  .clientes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

/*contacto */

.formulario {
  background-color: var(--gris);
  width: min(60rem, 100%);
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  flex-direction: column;
  align-items: center;
}

.formulario fieldset {
  border: none;
}

.formulario legend {
  text-align: center;
  font-size: 1.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primario);
}
.contenedor-campos {
  width: 100%;
}

@media (min-width: 768px) {
  .contenedor-campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .campo:nth-child(3),
  .campo:nth-child(4) {
    grid-column: 1 / 3;
  }
  .boton {
    grid-column: 1 / 3;
    justify-self: center;
    margin-top: 2rem;
  }
}
.campo:nth-child(5) {
  /* El contenedor del botón */
  grid-column: 1 / 3;
  display: flex;
  justify-content: center;
  width: 100%;
}
.campo {
  margin-bottom: 1rem;
}

.campo label {
  color: var(--blanco);
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.campo textarea {
  height: 20rem;
}

.input-text {
  width: 100%;
  border: none;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.enviar .boton {
  width: auto;
}

/* FOOTER */
.footer {
  text-align: center;
}
