/*=============== GOOGLE FONTS ===============*/
/* Las fuentes se cargan localmente desde fonts.css (Montserrat + Chakra Petch) */

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #4e6679;
  --first-color-alt: #3f5468;
  --first-color-light: #a8c3d9;
  --beige-color: #d7e0e7;
  --beige-color-light: #edf2f5;
  --beige-color-alt: #b9c8d2;
  --brown-color: #26333f;
  --title-color: hsl(204, 30%, 8%);
  --text-color: hsl(204, 12%, 38%);
  --white-color: hsl(204, 20%, 98%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(204, 25%, 96%);
  --border-color: hsl(204, 18%, 85%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Chakra Petch", sans-serif;
  --biggest-font-size: 1.875rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media (width >= 1150px) {
  :root {
    --biggest-font-size: 4rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  line-height: 120%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

button {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--big-font-size);
  margin-bottom: 1.5rem;
}

.main {
  overflow: hidden; /* For animation GSAP */
}

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .4s, transform .4s, translate .4s;
}

.button:hover {
  background-color: var(--first-color-alt);
  translate: 0 -.25rem !important;
}

.button--whatsapp {
  background-color: #25D366;
}

.button--whatsapp:hover {
  background-color: #1EBE5B;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: background-color .4s, box-shadow .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo img {
  height: 2.5rem;
  width: auto;
  background-color: var(--brown-color);
  padding: .3rem .45rem;
  border-radius: .5rem;
}

.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (width <= 1149px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    /* Por encima del botón toggle del header: si no, el toggle queda
       dibujado sobre la X de cerrar y se come el toque (no se podía cerrar) */
    z-index: 100;
    background-color: var(--body-color);
    padding: 6rem 2.5rem 3rem;
    box-shadow: -4px 0 16px hsla(0, 0%, 0%, .1);
    transition: right .4s;
  }

  .nav__button {
    margin-top: 2.5rem;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  white-space: nowrap;
  transition: color .4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change header styles */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, .08);
}

.scroll-header .nav__toggle {
  color: var(--title-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  position: relative;
  height: 800px;
  overflow: hidden;
}

.home__bg,
.home__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home__bg {
  object-fit: cover;
  object-position: center;
  filter: brightness(.72) contrast(1.05) saturate(1.05);
}

.home__shadow {
  background: linear-gradient(180deg,
              hsla(0, 0%, 0%, 0) 20%,
              hsl(0, 0%, 0%) 100%);
}

.home__container {
  position: relative;
  height: 100%;
  align-content: center;
  padding-top: var(--header-height);
}

.home__data {
  text-align: center;
  display: grid;
  justify-items: center;
}

.home__logo {
  width: 175px;
  margin-bottom: 1.5rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.home__subtitle {
  font-family: var(--second-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  letter-spacing: .12em;
  line-height: 150%;
  color: var(--white-color);
  margin-bottom: 1rem;
}

.home__description {
  color: var(--white-color);
  margin-bottom: 2.5rem;
}

/*=============== ABOUT ===============*/
.about {
  background-color: var(--brown-color);
  /* Contenido centrado en la franja: mismo aire arriba y abajo */
  padding-block: 5rem;
}

.about .section__title {
  color: var(--white-color);
}

.about__description {
  color: #c9d5dd;
  text-align: center;
  margin-bottom: 2.5rem;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
}

.about__number {
  font-family: var(--second-font);
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color-light);
  text-align: center;
  margin-bottom: .5rem;
}

.about__subtitle {
  font-size: var(--small-font-size);
  color: var(--white-color);
  text-align: center;
}

.about__img {
  width: min(100%, 420px);
  border-radius: 1.5rem;
  justify-self: center;
}

/*=============== WORK ===============*/
.work {
  background-color: var(--beige-color);
  /* Contenido centrado en la franja: mismo aire arriba y abajo */
  padding-block: 5rem;
}

.work__container > * {
  min-width: 0;
}

.work__data {
  padding-bottom: 7rem;
}

.work__description {
  text-align: center;
}

.work .section__title {
  text-align: center;
}

.work .swiper-pagination-fraction {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  bottom: 3rem;
}

.work .swiper-navigation-icon {
  display: none;
}

.work :is(.swiper-button-prev, .swiper-button-next) {
  top: initial;
  bottom: .5rem;
  width: initial;
  height: initial;
  margin: 0;
  color: var(--title-color);
  font-size: 1.75rem;
}

.work .swiper-button-prev {
  left: calc(50% - 3.5rem);
  right: initial;
}

.work .swiper-button-next {
  left: calc(50% + 2rem);
  right: initial;
}

.work__swiper {
  width: 100%;
  max-width: 100%;
  border-radius: 1.5rem;
}

.work__card {
  width: 280px;
  aspect-ratio: 7 / 8;
  border-radius: 1.5rem;
  overflow: hidden;
}

.work__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*=============== SERVICE ===============*/
.service {
  background-color: var(--beige-color-light);
  /* Contenido centrado en la franja: mismo aire arriba y abajo */
  padding-block: 5rem;
}

.service__prices {
  display: grid;
  row-gap: 1rem;
}

.service__plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.service__name {
  font-size: var(--normal-font-size);
}

.service__desc {
  font-size: var(--small-font-size);
  line-height: 150%;
  margin-top: .25rem;
  max-width: 34rem;
}

.service__price {
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  color: var(--first-color);
  white-space: nowrap;
  transition: color .4s;
}

.service__price:hover {
  color: var(--first-color-alt);
  text-decoration: underline;
}

.service__container > * {
  min-width: 0;
}

.service__swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background-color: var(--first-color);
  border-radius: 1.5rem;
  /* El aire lateral va dentro de cada tarjeta: así no se asoma la siguiente */
  padding: 2.5rem 0 6.5rem;
}

.service__testimonial {
  padding-inline: 2rem;
}

.service__testimonial-description {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  line-height: 160%;
  margin-bottom: 2rem;
}

.service__testimonial-name {
  color: var(--white-color);
}

.service .swiper-pagination-bullets {
  bottom: 6rem;
  left: 2rem;
  width: auto;
  text-align: left;
}

/* Solo móvil/tablet: las rayitas de paginación respiraban poco bajo el texto
   de la tarjeta azul; en escritorio el espaciado está bien y no se toca */
@media (width < 1150px) {
  .service .swiper-pagination-bullets {
    bottom: 3.5rem;
  }
}

.service .swiper-pagination-bullet {
  width: 24px;
  height: 4px;
  border-radius: 1rem;
  background-color: hsla(0, 0%, 100%, .35);
  opacity: 1;
  margin: 0 3px !important;
  transition: width .4s, background-color .4s;
}

.service .swiper-pagination-bullet-active {
  width: 32px;
  background-color: var(--white-color);
}

.service .swiper-navigation-icon {
  display: none;
}

.service :is(.swiper-button-prev, .swiper-button-next) {
  top: initial;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 2px solid var(--white-color);
  border-radius: 50%;
  color: var(--white-color);
  font-size: 1rem;
  bottom: 2rem;
}

.service .swiper-button-prev {
  left: initial;
  right: 5.25rem;
}

.service .swiper-button-next {
  right: 2rem;
}

/*=============== EXPERT ===============*/
.expert {
  padding-block: 5rem;
}

.expert__description {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.expert__content {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.expert__card {
  background-color: var(--beige-color-light);
  border-radius: 1.5rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
}

.expert__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

.expert__name {
  font-size: var(--normal-font-size);
  margin-bottom: .25rem;
}

.expert__profession {
  font-size: var(--small-font-size);
}

/*=============== REMOTE ===============*/
.remote {
  background-color: var(--first-color);
  padding-block: 5rem;
}

.remote .section__title {
  color: var(--white-color);
}

.remote__data {
  text-align: center;
}

.remote__description {
  color: hsla(0, 0%, 100%, .85);
  font-size: var(--h3-font-size);
  line-height: 160%;
  max-width: 44rem;
  margin-inline: auto;
}

.remote__content {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.remote__card {
  background-color: hsla(0, 0%, 100%, .07);
  text-align: center;
  border: 1px solid hsla(0, 0%, 100%, .14);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
}

.remote__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: hsla(0, 0%, 100%, .12);
  color: var(--white-color);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.remote__name {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.remote__text {
  color: hsla(0, 0%, 100%, .8);
  line-height: 160%;
}

/*=============== FAQ ===============*/
.faq__title {
  margin-bottom: 0;
}

.faq__list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.faq__item {
  background-color: var(--first-color);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.faq__question {
  font-family: var(--second-font);
  font-weight: var(--font-bold);
  color: var(--white-color);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-family: var(--body-font);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white-color);
  transition: transform .3s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__item.is-closing .faq__question::after {
  transform: rotate(0deg);
}

.faq__answer {
  margin-top: .75rem;
  line-height: 160%;
  color: hsla(0, 0%, 100%, .88);
}

@media (prefers-reduced-motion: reduce) {
  .faq__question::after {
    transition: none;
  }
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
}

.contact__data {
  text-align: center;
}

.contact__description {
  margin-bottom: 2rem;
}

.contact__map {
  border-radius: 1.5rem;
  overflow: hidden;
  /* Imagen de respaldo: si el mapa de Google no carga, se ve el mapa de Almagro */
  background: url(../img/mapa-almagro.png) center / cover no-repeat var(--container-color);
}

.contact__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__card {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.contact__title {
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.contact__address a {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--brown-color);
  padding-block: 4rem 2rem;
}

.footer__container {
  row-gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo img {
  width: 250px;
  height: auto;
  margin-bottom: 1rem;
}

.footer__description {
  color: #c9d5dd;
  margin-bottom: 1rem;
}

.footer__email {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.footer__title {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer__list {
  display: grid;
  row-gap: .75rem;
}

.footer__link {
  color: #c9d5dd;
  transition: color .4s;
}

a.footer__link:hover {
  color: var(--white-color);
}

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social a {
  color: #c9d5dd;
  display: inline-flex;
  transition: color .4s, transform .4s;
}

.footer__social a:hover {
  color: var(--white-color);
  transform: translateY(-.25rem);
}

.footer__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  color: #93a5b1;
  padding-top: 2rem;
  border-top: 1px solid hsla(0, 0%, 100%, .12);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(204, 20%, 18%);
}

::-webkit-scrollbar-thumb {
  border-radius: .5rem;
  background-color: hsl(204, 15%, 55%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(204, 15%, 65%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, .15);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media (width <= 350px) {
  .container {
    margin-inline: 1rem;
  }

  .about__info {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .service__swiper {
    padding-inline: 1.25rem;
  }
}

/* For medium devices */
@media (width >= 540px) {
  .home__container,
  .about__container,
  .service__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .work__data {
    width: 400px;
    margin-inline: auto;
  }

  .expert__content {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .nav__menu {
    width: 50%;
  }
}

@media (width >= 768px) {
  .expert__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .remote__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .expert__card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .expert__img {
    width: calc(100% + 3rem);
    max-width: none;
    height: 210px;
    margin: -2rem -1.5rem 1.25rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .contact__info {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* For large devices */
@media (width >= 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav {
    justify-content: flex-start;
    column-gap: 4rem;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 4rem;
    width: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .nav__link {
    color: var(--white-color);
  }

  .scroll-header .nav__link,
  .scroll-header .active-link.nav__button {
    color: var(--title-color);
  }

  .scroll-header .active-link {
    color: var(--first-color);
  }

  .home {
    height: 870px;
  }

  .home__container {
    grid-template-columns: 665px;
    justify-content: center;
  }

  .home__logo {
    width: 230px; /* Logo completo JOBS (2025) al ~70% — tamaño que marcó Maxi el 2026-11-11 */
  }

  .home__description {
    margin-bottom: 4rem;
  }

  .about {
    padding-block: 7rem;
  }

  .about__container {
    grid-template-columns: 460px 500px;
    column-gap: 4rem;
    align-items: center;
  }

  .about__img {
    order: -1;
    width: 100%;
  }

  .about .section__title,
  .about__description,
  .about__number,
  .about__subtitle {
    text-align: initial;
  }

  .about__number {
    font-size: var(--big-font-size);
    margin-bottom: 1rem;
  }

  .about__subtitle {
    font-size: var(--h3-font-size);
  }

  .work {
    padding-block: 7rem;
  }

  .work__container {
    grid-template-columns: 300px 740px;
    column-gap: 5rem;
  }

.work__data {
  width: auto;
  margin-inline: 0;
}

  .work .section__title,
  .work__description,
  .work .swiper-pagination-fraction {
    text-align: initial;
  }

  .work .swiper-button-prev {
    left: 0;
  }

  .work .swiper-button-next {
    left: 4.5rem;
    right: initial;
  }

  .work__img,
  .work__card {
    width: 320px;
  }

  .service {
    padding-block: 7rem;
  }

  .expert {
    padding-block: 7rem;
  }

  .remote {
    padding-block: 7rem;
  }

  .service__container {
    grid-template-columns: repeat(2, 450px);
    align-items: center;
    column-gap: 12rem;
  }

  .service__swiper {
    order: -1;
    padding: 3rem 0;
  }

  .service__testimonial {
    padding-inline: 3rem;
  }

  .service__testimonial-description {
    margin-bottom: 9rem;
  }

  .service__testimonial-name {
    font-size: var(--h3-font-size);
  }

  .service .swiper-pagination-bullets {
    bottom: 10rem;
  }

  .service .swiper-button-prev {
    right: 6.75rem;
    bottom: 3rem;
  }

  .service .swiper-button-next {
    right: 3rem;
    bottom: 3rem;
  }

  .service__data .section__title {
    text-align: initial;
  }

  .expert__content {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }

  .remote__content {
    grid-template-columns: repeat(4, 1fr);
  }

  .faq__list {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .contact__container {
    grid-template-columns: repeat(2, 480px);
    justify-content: center;
    column-gap: 4rem;
  }

  .contact__data,
  .contact__data .section__title {
    text-align: initial;
  }

  .contact__info {
    grid-column: 1 / -1;
  }

  .footer__container {
    grid-template-columns: 2fr 1fr 1fr 1fr .6fr;
  }

  .scrollup {
    right: 3rem;
  }
}
