/* =========================================================
   SERVICIOS - CSS FINAL
   ✅ MISMO NAVBAR + MISMA TIPOGRAFÍA QUE INDEX
   ✅ Arregla: “navbar más grande / corrido” (sin @media duplicados)
   ✅ Arregla footer: rayita alineada (sin heredar text-align:center)
========================================================= */

/* =========================================================
   VARIABLES (PALETA OFICIAL)
========================================================= */
:root {
  --color-text-body: #373636;
  --color-secondary: #3f5e73;
  --color-background-light: #f2e8cf;
  --color-accent: #7d8f84;
  --color-primary: #c47a5a;

  --color-background-gray: #f2e8cf;

  --box-shadow-dark: 3px 3px 5px 1.8px rgba(0, 0, 0, 0.3),
    inset -5px -5px 5px rgba(0, 0, 0, 0.3),
    inset 5px 5px 5px rgba(203, 213, 225, 0.3);

  --border-radius: 0.25rem;
  --height-navbar: 6rem;

  --font-size-h1: 3rem;
  --font-size-h2: 2.6rem;
  --font-size-h3: 1.8rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.4rem;
  --font-size-paragraph: 1.3rem;

  --padding-box: 1.5rem;

  /* ===== MOTION (SNAPPY) ===== */
  --ease-snap: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);

  --dur-xxfast: 120ms;
  --dur-xfast: 160ms;
  --dur-fast: 220ms;
  --dur-med: 320ms;
}

/* =========================================================
   RESET / BASE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text-body);
  background: #fff;
}

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

ul {
  list-style: none;
}

/* Igual al index: tu <main class="container"> */
main.container {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================
   WRAPPERS (max-width)
   ✅ Igual index arriba (centrado)
   ✅ Footer NO hereda el centrado para no romper la rayita
========================================================= */
.services-intro__wrapper,
.services__wrapper,
.project-action__wrapper,
.navbar__wrapper,
.banner__wrapper {
  max-width: 75rem;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

/* Footer wrapper: mismo ancho, pero NO centrado */
.footer__wrapper {
  max-width: 75rem;
  width: 90%;
  margin: 0 auto;
  text-align: left;
}

/* =========================================================
   HEADER / NAVBAR (MISMO QUE INDEX)
========================================================= */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-primary);
}

.navbar__wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: var(--height-navbar);
}

.logo-brand {
  width: 8rem;
  height: 100%;
  text-decoration: none;
  display: grid;
  justify-self: start;
  align-items: center;
  grid-column: 1/2;
  grid-row: 1/2;
}

.logo-brand__image {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.menu-btn {
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  justify-self: end;
  align-items: center;
  padding: 0.5rem;
  grid-column: 2/3;
  grid-row: 1/2;
}

.menu-icon {
  color: var(--color-background-light);
}

.menu-icon--close {
  display: none;
}

/* Mobile menu (transform, igual index) */
.menu-list {
  position: absolute;
  top: var(--height-navbar);
  left: 0;
  z-index: 110;
  background-color: #c47a5a;
  width: 100%;
  height: calc(100vh - var(--height-navbar));
  border-top: 0.5px solid var(--color-background-light);
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 3.5rem); /* ✅ Servicios tiene 5 links */

  transform: translateX(-100%);
  transition: transform var(--dur-med) var(--ease-snap);
  will-change: transform;
}

.menu-list__item {
  border-bottom: 0.5px solid rgba(242, 232, 207, 0.5);
}

.menu-list__link {
  text-decoration: none;
  display: block;
  color: var(--color-background-light);

  font-family: "Space Grotesk", sans-serif;
  font-size: var(--font-size-paragraph);
  font-weight: 300;

  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;
  padding-left: 7.5%;

  transition: background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}

.menu-list__link:hover {
  background-color: rgba(242, 232, 207, 0.15);
}

/* Clase que activa tu JS */
.show {
  transform: translateX(0);
}

/* =========================================================
   BANNER
========================================================= */
.banner {
  position: relative;
  height: calc(100vh - var(--height-navbar));
  display: grid;
  place-items: center;
  color: var(--color-background-light);
}

.banner picture,
.banner .banner-image__container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.banner .banner__overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.5;
  z-index: 2;
}

.banner .banner__wrapper {
  position: relative;
  z-index: 3;
}

.banner__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

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

.banner__title--h2 {
  font-size: var(--font-size-h1);
  font-weight: 900;
  margin-bottom: 1rem;
}

/* =========================================================
   SERVICES INTRO
========================================================= */
.services-intro {
  background: var(--color-background-light);
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
}

.services-intro__wrapper {
  margin: 5rem auto;
}

.services-intro__title {
  font-size: var(--font-size-h2);
  color: var(--color-primary);
  font-weight: 900;
  margin-bottom: 2rem;
}

.services-intro__paragraph {
  font-size: var(--font-size-paragraph);
  font-weight: 400;
  color: var(--color-text-body);
  text-align: center;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.services-intro__paragraph a {
  text-decoration: none;
  color: var(--color-accent);
}

/* =========================================================
   SERVICES
========================================================= */
.services {
  position: relative;
  background: var(--color-text-body);
  color: var(--color-background-light);

  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
}

.services__wrapper {
  margin: 5rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.services__title--h2 {
  font-size: var(--font-size-paragraph);
  color: var(--color-background-light);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
}

.services__paragraph {
  font-size: var(--font-size-paragraph);
  font-weight: 400;
  color: var(--color-background-light);
  text-align: center;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.services__boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.services__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}


.services__item {
  background: #24262b;
  border-radius: 0.5rem;
  overflow: hidden;
  .services__image {
  width: 80px;            /* Tamaño del icono */
  height: 80px;           /* Alto igual para alineación */
  margin-top: 2.5rem;     /* Espacio superior */
  display: block;
  object-fit: contain;    /* Para que no se deforme */
  
  /* Esto hace que el icono negro pase a ser blanco crema */
  filter: brightness(0) invert(1) sepia(1) hue-rotate(10deg) saturate(0.5); 
}
  /* Forzamos el centrado total con Flexbox */
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;

  /* Animaciones Snappy */
  transition: transform var(--dur-fast) var(--ease-snap),
              box-shadow var(--dur-fast) var(--ease-soft);
  will-change: transform;
}

.services__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.15);
}

.services__content {
  text-align: center;    /* Cambiado de 'start' a 'center' para que coincida con el icono */
  padding: 1.5rem;
  color: var(--color-background-light);
  width: 100%;
}
.services__subtitle {
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-background-light);
}

.services__text--item {
  font-size: var(--font-size-paragraph);
  font-weight: 300;
  color: var(--color-background-light);
  margin-bottom: 1rem;
}

/* =========================================================
   CTA (SERVICIOS)
========================================================= */
.project__cta {
  background: var(--color-background-light);
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
}

.project-action__wrapper {
  margin: 5rem auto;
}

.project-action__title {
  font-size: var(--font-size-h2);
  font-weight: 900;
  color: var(--color-text-body);
  text-align: center;
  margin-bottom: 1rem;
}

.project__cta--text {
  font-size: var(--font-size-paragraph);
  font-weight: 400;
  color: var(--color-text-body);
  text-align: center;
  margin-bottom: 2rem;
}

.project__cta--buttons {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.2rem;
  align-items: center;
}

.btn {
  position: relative;
  display: flex;
  width: 100%;
  height: 60px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01rem;
  border-radius: 0.3rem;
  overflow: hidden;

  transition: transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-soft);
  will-change: transform;
}

.btn--primary {
  background-color: var(--color-text-body);
  color: var(--color-background-light);
}

.btn--secondary {
  color: var(--color-background-light);
  background: var(--color-primary);
  border: 1.5px solid var(--color-background-light);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2),
    0 2px 5px rgba(0, 0, 0, 0.15);
}

.bnt--text {
  position: absolute;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
}


/* ===================== SCROLL TO TOP + WHATSAPP ===================== */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 25px;
  z-index: 999;
  border: none;
  outline: none;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

  transition: transform var(--dur-fast) var(--ease-snap),
    background-color var(--dur-fast) var(--ease-soft);
}

#scrollToTopBtn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

#scrollToTopBtn i {
  font-size: 24px;
  color: var(--color-text-light);
}

.whatsapp__button {
  position: fixed;
  display: grid;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  bottom: 25px;
  right: 25px;
  box-shadow: var(--box-shadow-dark);

  transition: transform var(--dur-fast) var(--ease-snap);
}

.whatsapp__button:hover {
  transform: translateY(-2px);
}

.whatsapp__button--float i {
  font-size: 24px;
  color: #ffffff;
}


/* =========================================================
   FOOTER (IGUAL INDEX + FIX RAYITA)
   ✅ NO heredamos text-align:center
   ✅ h4 inline-block para que la rayita “nazca” bajo el texto
========================================================= */
.row {
  display: flex;
  flex-wrap: wrap;
}

.footer {
  background-color: #24262b;
  padding: 70px 0;
  display: grid;
  justify-items: center;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
  text-align: left;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--color-primary);
  height: 2px;
  width: 50px;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  text-decoration: none;
  font-weight: 300;
  color: #bbbbbb;
  display: block;

  transition: color var(--dur-fast) var(--ease-soft),
    transform var(--dur-fast) var(--ease-snap);
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(8px);
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(242, 232, 207, 0.12);
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;

  transition: transform var(--dur-fast) var(--ease-snap),
    background-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: var(--color-background-light);
  transform: translateY(-2px);
}

/* Footer responsive */
@media (max-width: 767px) {
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}

/* =========================================================
   MEDIA QUERIES
========================================================= */
@media (min-width: 768px) {
  .banner__title--h2 {
    font-size: 4rem;
  }

  .project__cta--buttons {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .btn {
    width: 300px;
  }
}

/* ✅ ÚNICO @media 910px (sin duplicados) */
@media (min-width: 910px) {
  .menu-btn {
    display: none;
  }

  .navbar__wrapper {
    grid-template-columns: 1fr auto;
    grid-column-gap: 0.5rem;
  }

  .menu-list {
    display: grid;
    grid-template-columns: repeat(5, auto); /* ✅ 5 links */
    grid-template-rows: var(--height-navbar);
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    grid-column-gap: 3rem;

    position: static;
    width: 100%;
    height: var(--height-navbar) !important;
    overflow: visible !important;
    border-top: none;
    background: transparent;
    transition: none;
    transform: none;
  }

  .menu-list__item {
    border-bottom: none;
    width: 100%;
  }

  .menu-list__link {
    padding: 0;
    position: relative;
    color: #ffffff;
    text-align: center;
  }

  .menu-list__link:hover {
    background: none;
  }

  .menu-list__link::before,
  .menu-list__link::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-background-light);
    transform: scaleX(0);
    transition: transform var(--dur-med) var(--ease-snap);
  }

  .menu-list__link::before {
    top: 5px;
    transform-origin: left;
  }

  .menu-list__link::after {
    bottom: 5px;
    transform-origin: right;
  }

  .menu-list__link:hover::before,
  .menu-list__link:hover::after {
    transform: scaleX(1);
  }
}

@media (min-width: 1080px) {
  .banner__title--h2 {
    font-size: 5rem;
  }
}
