@import url("reset.css");

@import url("https://fonts.googleapis.com/css?family=Inter:regular,500,600,700&display=swap");

/* ************SEÑAMEXSA BRAND COLORS************ */
:root {
  --color-yellow: #F6C10E;
  --color-black: #111111;
  --color-white: #FFFFFF;
  --color-gray: #555555;
  --color-light: #F5F5F5;
}

/* Scroll suave — el JS maneja el scroll personalizado del hero */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__image {
  height: 50px;
  width: auto;
  display: block;
}

.logo__text {
  color: var(--color-white);
  font-weight: 700;
  font-size: 2.25rem;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  background: var(--color-white);
  color: var(--color-gray);
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: var(--color-black);
  background-color: var(--color-yellow);
  border: 2px solid var(--color-black);
}
.button:hover {
  background-color: var(--color-black);
  color: var(--color-yellow);
}

.title {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-black);
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* ************HEADER************ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-black);
  border-bottom: 4px solid var(--color-yellow);
  z-index: 1000;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
  color: var(--color-white);
  transition: color 0.3s;
}

.menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--color-yellow);
  transition: width 0.3s;
}

.menu__link:hover {
  color: var(--color-yellow);
}

.menu__link:hover::after,
.menu__link_active::after {
  width: 100%;
}

.menu__link_active {
  color: var(--color-yellow);
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-yellow);
  background-color: var(--color-yellow);
  color: var(--color-black);
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}
.actions-header__button:hover {
  background-color: var(--color-black);
  color: var(--color-yellow);
  border-color: var(--color-yellow);
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 160px;
}

/* *****************HOME**************** */

/* Fondo por defecto para páginas generales */
.main {
  min-height: 100vh;
}

/* Fondo específico para la página de inicio: carretera limpia + capa oscura para legibilidad del texto */
.main_home {
  position: relative;
  background:
    linear-gradient(rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.35)),
    url("../img/home/hero-carretera.jpg") center / cover no-repeat !important;
}

/* Tarjeta flotante de señales viales reales, sobre la carretera */
.main__signs {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1180px;
  background-color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  padding: 1.5rem 2rem;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
}

.main__sign {
  display: block;
  width: 100%;
  max-width: 130px;
  height: auto;
  object-fit: contain;
}

/* Reserva espacio en el hero de inicio para que la tarjeta no tape el botón,
   manteniendo el texto visualmente centrado */
.main_home .main__container {
  padding-top: 18rem;
  padding-bottom: 9rem;
}

/* Fondo específico para la página de servicios */
.main_services {
  background: url("../img/services/background_placeholder.png") center / cover no-repeat !important;
}

/* Fondo específico para la página de contacto */
.main_contact {
  background: url("../img/contact/background_placeholder.png") center / cover no-repeat !important;
}

/* Fondo específico para la página de nosotros */
.main_about {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat !important;
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 19.188rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.main__title {
  font-size: 4rem;
  font-weight: 600;
  max-width: 63.375rem;
  margin-bottom: 2rem;
  color: var(--color-black);
}

/* Títulos específicos por página */
.main_home .main__title {
  color: var(--color-white);
  
  margin-top: -3rem;
}

/* Estilos para el botón de scroll */
#scroll-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

#scroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.main_services .main__title,
.main_contact .main__title,
.main_about .main__title {
  color: var(--color-white);
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 43.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

/* Textos específicos por página */
.main_home .main__text {
  color: var(--color-white);
  font-size: 1.2rem;
  max-width: 38.375rem;
}

.main_services .main__text,
.main_contact .main__text,
.main_about .main__text {
  color: var(--color-white);
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: var(--color-black);
  background-color: var(--color-yellow);
  border: 2px solid var(--color-black);
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}
.main__button:hover {
  background-color: var(--color-black);
  color: var(--color-yellow);
}

.outro_home {
  background-color: var(--color-yellow);
}

/* ************ABOUT**************** */

.main_about {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
  text-align: justify;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.outro_about {
  background-color: var(--color-yellow);
}

/* **************SERVICES**************** */

.main_services {
  background: url("../img/services/background_placeholder.png") center / cover no-repeat;
}

.services {
  background-color:var(--color-yellow);
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  color: var(--color-black);
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.services__button-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.services__button {
  background-color: var(--color-black);
  border: 2px solid var(--color-black);
  color: var(--color-white);
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
}

.services__button:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #303a4d;
  color: #ffffff;
}

.outro_services {
  background-color: var(--color-yellow);
}

/* ************CLIENTS**************** */

.clients {
  background-color: var(--color-light);
  border-top: 1px solid #e1e4eb;
}

.clients__container {
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

.clients__title {
  text-align: center;
  margin-bottom: 1rem;
}

.clients__subtitle {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
  line-height: 150%;
  color: var(--color-gray);
}

.clients__content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.clients__image {
  max-width: 900px;
  width: 100%;
  height: auto;
}

.clients__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
  background-color: var(--color-black);
  color: var(--color-yellow);
  border-color: var(--color-black);
}

.outro__button:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
  background: var(--color-black);
  color: var(--color-white);
  border-top: 4px solid var(--color-yellow);
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 74.624rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
  color: var(--color-white);
}

.footer__logo {
  justify-self: center;
  color: var(--color-yellow);
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
  color: var(--color-white);
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid rgba(48, 58, 77, 0.4);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../img/contact/background_placeholder.png") center / cover no-repeat;
}

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: #303a4d;
  border-radius: 64px;
}

.team {
  background-color: #e1e4eb;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

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

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: #303a4d;
  border-radius: 100px;
  display: inline-block;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #303a4d;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #303a4d;
  border-radius: 64px;
}

/* ************WHY / ¿POR QUÉ ELEGIRNOS?************ */
.why {
  background-color: var(--color-light);
}

.why__container {
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

.why__title {
  text-align: center;
  margin-bottom: 1rem;
}

.why__subtitle {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
  line-height: 150%;
  color: var(--color-gray);
}

.why__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.item-why {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  border-bottom: 4px solid var(--color-yellow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.item-why:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.item-why__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-yellow);
  border-radius: 50%;
  color: var(--color-black);
}

.item-why__icon svg {
  width: 32px;
  height: 32px;
}

.item-why__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-black);
}

.item-why__text {
  font-size: 1rem;
  line-height: 150%;
  color: var(--color-gray);
}

/* ************STATS / ESTADÍSTICAS************ */
.stats {
  background-color: var(--color-black);
}

.stats__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-yellow);
  line-height: 1;
}

.stats__label {
  font-size: 1rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

/* ************GALLERY HOME / NUESTROS TRABAJOS************ */
.gallery-home__container {
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

.gallery-home__title {
  text-align: center;
  margin-bottom: 1rem;
}

.gallery-home__subtitle {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
  line-height: 150%;
  color: var(--color-gray);
}

.gallery-home__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-home__item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 280px;
}

.gallery-home__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-home__item:hover img {
  transform: scale(1.08);
}

.gallery-home__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.5rem 1.25rem 1rem;
  color: var(--color-white);
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* ************VALUES / ABOUT (Misión, Visión, Valores)************ */
.values {
  background-color: var(--color-light);
}

.values__container {
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

.values__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-values {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--color-yellow);
}

.item-values__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.item-values__text {
  line-height: 150%;
  color: var(--color-gray);
}

.item-values__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 140%;
  color: var(--color-gray);
}

.item-values__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background-color: var(--color-yellow);
  border-radius: 3px;
}

/* ************CONTACT FORM************ */
.contact__intro {
  line-height: 150%;
  margin-bottom: 2rem;
  color: var(--color-gray);
  max-width: 545px;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-black);
  font-size: 1rem;
}

.form__optional {
  font-weight: 400;
  color: var(--color-gray);
  font-size: 0.875rem;
}

.form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e1e4eb;
  border-radius: 12px;
  font-size: 1rem;
  background-color: var(--color-white);
  transition: border-color 0.3s;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-yellow);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__button {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.form__note {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--color-gray);
  text-align: center;
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 80px;
  }

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

  .stats__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

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

  .values__row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stats__number {
    font-size: 2.5rem;
  }
}

@media (min-width: 53.125rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

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

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 53.125rem) {
  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

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

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu {
    display: block;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.875rem;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: var(--color-white);
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .menu__body {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 5.75rem;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-yellow);
    z-index: 2;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__item {
    text-align: center;
    margin-bottom: 3rem;
  }

  .menu__item:last-child {
    margin-bottom: 0;
  }

  .menu__link {
    font-size: 2.5rem;
    color: var(--color-white);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: block;
    position: relative;
    overflow: hidden;
  }

  .menu__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(246, 193, 14, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .menu__link:hover {
    color: var(--color-yellow);
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(246, 193, 14, 0.3);
  }

  .menu__link:hover::before {
    left: 100%;
  }

  .actions-header__button {
    padding: 1rem 2rem;
    margin-top: 2rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
  }

  .actions-header__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(246, 193, 14, 0.3);
  }

  /* Ajuste específico para el botón en la página de inicio en móvil */
  .main_home .main__button {
    font-size: 1rem;
    padding: 1.25rem 2.5rem;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  /* Ajuste específico para la página de inicio en móvil */
  .main_home .main__container {
    padding-top: 13rem; /* Equilibrado con el padding inferior para centrar el texto */
    text-align: center;
  }

  /* Fondos móviles específicos por página */
  .main_home {
    background:
      linear-gradient(rgba(17, 17, 17, 0.55), rgba(17, 17, 17, 0.35)),
      url("../img/home/hero-carretera.jpg") center / cover no-repeat !important;
  }

  /* Tarjeta de señales en móvil: una sola fila con las 6 señales */
  .main__signs {
    width: calc(100% - 1.5rem);
    bottom: 1.25rem;
    padding: 0.6rem 0.5rem;
    border-radius: 16px;
    gap: 0.25rem;
  }

  .main__sign {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  /* En móvil dejamos espacio para que la banda de señales no tape el texto */
  .main_home .main__container {
    padding-bottom: 11rem;
  }
  
  .main_services {
    background: url("../img/services/background_placeholder.png") center / cover no-repeat !important;
  }
  
  .main_contact {
    background: url("../img/contact/background_placeholder.png") center / cover no-repeat !important;
  }
  
  .main_about {
    background: url("../img/about/background_placeholder.png") center / cover no-repeat !important;
  }

  .main__container_pages {
    padding-top: 290px;
  }

  .main__title {
    font-size: 2rem;
  }

  /* Estilos específicos para móvil en la página de inicio */
  .main_home .main__title {
    font-size: 2rem; /* Mismo tamaño que en escritorio */
    color: var(--color-white);
    margin-top: -1rem;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .main_home .main__text {
    font-size: .8rem;
    margin-left: 2rem;
    margin-right: 2rem;
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .title {
    font-size: 2rem;
  }

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

  .about__container {
    flex-direction: column;
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .services__button {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }

  .why__row {
    grid-template-columns: 1fr;
  }

  .why__container,
  .gallery-home__container,
  .values__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .why__subtitle,
  .gallery-home__subtitle {
    margin-bottom: 2.5rem;
  }

  .gallery-home__row {
    grid-template-columns: 1fr;
  }

  .stats__container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .stats__number {
    font-size: 2.25rem;
  }

  .clients__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .clients__image {
    max-width: 100%;
    height: auto;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .logo__image {
    height: 40px;
  }
  
  .logo__text {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
    gap: 0.625rem;
  }
  
  .logo__image {
    height: 45px;
  }
  
  .logo__text {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  .reviews__row {
    grid-template-columns: 1fr;
  }

  .team__row {
    grid-template-columns: 1fr;
  }

  .gallery__row {
    grid-template-columns: 1fr;
  }

  .resources__container {
    grid-template-columns: 1fr;
  }
}


/* ************WHATSAPP FLOAT BUTTON************ */
.whatsapp-float{
  position: fixed; right:16px; bottom:16px; z-index:9999;
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#25D366; box-shadow:0 8px 16px rgba(0,0,0,.15);
}
.whatsapp-float img{ width:28px; height:28px; display:block; }
@media (max-width:480px){ .whatsapp-float{ right:12px; bottom:12px; } }
/* =========================================================================
   MEJORAS FINALES — sitio de una sola página
   1. Anclas y transiciones entre secciones
   2. Animaciones de aparición al hacer scroll
   3. Micro-interacciones (botones, tarjetas, enlaces, formulario)
   4. Estilos nuevos: fichas de servicio y sección de contacto
   5. Ajustes móviles y accesibilidad
   ========================================================================= */

/* ---------- 1. Anclas: el header fijo no debe tapar los títulos ---------- */
section[id] {
  scroll-margin-top: 6.5rem;
}

/* Header: sombra y tamaño compacto al bajar */
.header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header__container,
.logo__image {
  transition: min-height 0.3s ease, height 0.3s ease;
}

.header_scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.header_scrolled .header__container {
  min-height: 4.5rem;
}

.header_scrolled .logo__image {
  height: 40px;
}

/* ---------- 2. Animaciones de aparición al hacer scroll ---------- */
/* Solo se ocultan si hay JS que los vuelva a mostrar (ver clase .js en <head>) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal] {
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Escalonado: cada elemento entra un instante después del anterior */
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
[data-reveal]:nth-child(5) { transition-delay: 0.32s; }
[data-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* Entrada del hero al cargar la página */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* La tarjeta de señales va centrada con translateX, hay que conservarlo */
@keyframes signsIn {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.main_home .main__title  { animation: heroIn 0.8s 0.10s both cubic-bezier(0.22, 0.61, 0.36, 1); }
.main_home .main__text   { animation: heroIn 0.8s 0.25s both cubic-bezier(0.22, 0.61, 0.36, 1); }
.main_home .main__button { animation: heroIn 0.8s 0.40s both cubic-bezier(0.22, 0.61, 0.36, 1); }
.main__signs             { animation: signsIn 0.9s 0.55s both cubic-bezier(0.22, 0.61, 0.36, 1); }

/* ---------- 3. Micro-interacciones ---------- */

/* Botones: se elevan al pasar el cursor y se hunden al hacer clic */
.button,
.actions-header__button {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              transform 0.2s ease, box-shadow 0.3s ease;
}

.button:hover,
.actions-header__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.button:active,
.actions-header__button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Foco visible por teclado (accesibilidad) */
.button:focus-visible,
.actions-header__button:focus-visible,
.menu__link:focus-visible,
.connect-contact__item:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Tarjetas de servicio: elevación y acercamiento de la foto */
.item-services {
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 1rem 1rem 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.item-services:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.item-services__image {
  width: 100%;
  max-width: none;
  height: 240px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 14px;
}

.item-services__image img {
  width: 100%;
  transition: transform 0.5s ease;
}

.item-services:hover .item-services__image img {
  transform: scale(1.06);
}

.item-services__title,
.item-services__text,
.item-services__specs {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.item-services__text {
  max-width: none;
  flex-grow: 0;
  margin-bottom: 1.25rem;
}

/* Galería: la foto se acerca y la tarjeta se eleva */
.gallery-home__item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-home__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* Cifras: el número crece ligeramente */
.stats__number {
  display: inline-block;
  transition: transform 0.3s ease;
}

.stats__item:hover .stats__number {
  transform: scale(1.08);
}

/* Logos de clientes: pasan de gris a color al acercarse */
.clients__image img {
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.clients__image:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Enlaces de contacto y redes */
.connect-contact__item {
  transition: transform 0.25s ease, color 0.25s ease;
}

.connect-contact__item:hover {
  transform: translateX(5px);
  color: var(--color-black);
}

.contact__link img {
  transition: transform 0.3s ease;
}

.contact__link:hover img {
  transform: scale(1.15) rotate(-5deg);
}

/* Campos del formulario: anillo suave al enfocar */
.form__input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form__input:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 4px rgba(246, 193, 14, 0.3);
}

/* ---------- 4. Estilos nuevos ---------- */

/* Fichas técnicas dentro de cada tarjeta de servicio */
.item-services__specs {
  list-style: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.item-services__specs li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-gray);
}

.item-services__specs li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background-color: var(--color-yellow);
  border: 1px solid var(--color-black);
  transform: rotate(45deg);
}

/* Sección de contacto: cierre en amarillo con una sola acción, centrada */
.contact {
  background-color: var(--color-yellow);
}

.contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

.contact__heading {
  margin-bottom: 1rem;
}

.contact__lead {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 150%;
  color: var(--color-black);
}

/* Botón principal: grande y en negro para que destaque sobre el amarillo */
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.15rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid var(--color-black);
  transition: background-color 0.3s ease, color 0.3s ease,
              transform 0.2s ease, box-shadow 0.3s ease;
}

/* WhatsApp: acción principal, en negro para contrastar con el amarillo */
.contact__cta_whats {
  background-color: var(--color-black);
  color: var(--color-white);
}

.contact__cta_whats img {
  width: 22px;
  height: 22px;
  display: block;
}

.contact__cta_whats:hover {
  background-color: #25D366;
  border-color: #25D366;
  color: var(--color-white);
}

/* Correo: acción secundaria, en blanco */
.contact__cta_mail {
  background-color: var(--color-white);
  color: var(--color-black);
}

.contact__cta_mail:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.contact__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.contact__cta:active {
  transform: translateY(0);
}

/* Datos de contacto, en fila bajo el botón */
.contact .connect-contact {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2rem;
  row-gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
  width: 100%;
  /* Ancho suficiente para que los tres datos quepan en un solo renglón */
  max-width: 64rem;
}

/* Texto algo más compacto aquí que en la página de contacto original */
.contact .connect-contact__label {
  font-size: 1.15rem;
}

.contact .connect-contact__content {
  text-align: left;
}

.connect-contant__type,
.connect-contact__label {
  color: var(--color-black);
}

.contact__links {
  display: flex;
  justify-content: center;
}

/* Pie de página: el correo se resalta al pasar el cursor */
.footer__policy {
  transition: color 0.3s ease;
}

.footer__policy:hover {
  color: var(--color-yellow);
}

/* ---------- 5. Ajustes móviles ---------- */
@media (max-width: 53.125rem) {
  section[id] {
    scroll-margin-top: 5.5rem;
  }

  .item-services__image {
    height: 220px;
  }

  /* Galería en móvil: dos por renglón para ver más trabajos de un vistazo */
  /* (regla de escritorio para los 4 servicios más abajo, fuera de este bloque) */
  .gallery-home__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-home__item {
    height: 170px;
    border-radius: 12px;
  }

  .gallery-home__caption {
    font-size: 0.8rem;
    line-height: 1.25;
    padding: 1.5rem 0.7rem 0.65rem;
  }

  .contact__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .contact__cta {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  /* Los datos de contacto vuelven a apilarse en teléfono */
  .contact .connect-contact {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.5rem;
  }

  /* El correo es largo: debe encogerse y partirse, no cortarse en pantalla */
  .connect-contact__item {
    width: 100%;
    gap: 1rem;
  }

  .connect-contact__content {
    min-width: 0;
  }

  .connect-contact__label {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  /* En pantallas táctiles el "hover" no aplica: quitamos los desplazamientos */
  .item-services:hover,
  .gallery-home__item:hover,
  .button:hover,
  .actions-header__button:hover {
    transform: none;
  }
}

/* ---------- Accesibilidad: menos movimiento si el sistema lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Cuatro servicios en una sola fila (escritorio) ----------
   Va después del bloque móvil y limitada a pantallas grandes, para no
   pisar la regla de una sola columna en teléfono. */

/* Pantallas anchas: las cuatro tarjetas en fila, compactas */
@media (min-width: 1180px) {
  .services__row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .item-services {
    padding: 0.75rem 0.75rem 1.5rem;
    border-radius: 16px;
  }

  .item-services__image {
    height: 175px;
    margin-bottom: 1.1rem;
    border-radius: 12px;
  }

  .item-services__title,
  .item-services__text,
  .item-services__specs {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .item-services__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .item-services__text {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    /* Reserva la misma altura en las cuatro para que las fichas de abajo
       arranquen todas a la misma altura */
    min-height: 4.15rem;
  }

  .item-services__specs {
    gap: 0.4rem;
  }

  .item-services__specs li {
    font-size: 0.85rem;
    padding-left: 1.15rem;
  }

  .item-services__specs li::before {
    left: 0.5rem;
    width: 6px;
    height: 6px;
  }
}

/* Pantallas medianas: 2x2, porque cuatro en fila quedarían apretadas */
@media (min-width: 993px) and (max-width: 1179px) {
  .services__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .item-services__image {
    height: 250px;
  }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 3px;
}

/* En teléfono los botones de contacto ocupan el ancho, más fáciles de tocar */
@media (max-width: 53.125rem) {
  .contact__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .contact__cta {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* ---------- Título del hero: siempre en una sola línea en escritorio ----------
   El texto necesita ~18.25px de ancho por cada 1px de tipografía. Con clamp()
   la letra se ajusta al ancho disponible, así nunca se parte en dos renglones.
   En teléfono baja al mínimo (2rem) y ahí sí puede envolver, como debe ser. */
.main_home .main__title {
  max-width: none;
  font-size: clamp(2rem, 5.1vw, 3.7rem);
}

/* -------------------------------------------------------------------------
   Fichas técnicas en teléfono: el texto va centrado en la tarjeta, pero una
   lista con viñetas necesita alinearse a la izquierda para leerse pareja.
   Centramos el bloque completo y alineamos su contenido a la izquierda.
   ------------------------------------------------------------------------- */
@media (max-width: 53.125rem) {
  .item-services__specs {
    text-align: left;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* -------------------------------------------------------------------------
   Pie de página: bloque centrado.
   La rejilla de tres columnas (1fr auto 1fr) no tenía separación, así que
   el aviso de copyright se encimaba con el logo del centro al ser largo.
   ------------------------------------------------------------------------- */
.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer__logo {
  font-size: 1.75rem;
  line-height: 1.1;
}

.footer__policy {
  font-weight: 500;
  color: var(--color-white);
}

/* El aviso legal pesa menos que el resto: es información secundaria */
.footer__copyright {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 32rem;
}

/* Aclaración bajo la zona de servicio: dónde trabajamos principalmente */
.connect-contact__nota {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.75;
}
