a {
  text-decoration: none;
}

img {
  max-width: 100%;
}


.txt-justify {
  text-align: justify;
}

.sin-estilo {
  list-style: none;
}

.list-margin {
  margin-right: 0;
}

/* Navegador */
.navbar {
  background-color: #fff;
  height: 80px;
  margin: 20px;
  border-radius: 16px;
  padding: .5rem;
}

.navbar-toggler {
  border: none;
  font-size: 1.25rem;
}

.navbar-toggler:focus,
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.navbar-nav .nav-item .nav-link {
  color: #323236;
  font-weight: 600;
  position: relative;

}

.navbar-nav .nav-item .nav-link:hover,
.nav-link.active {
  color: #000;
}

@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #000;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    width: 100%;
    visibility: visible;
  }
}

.navbar.oculto {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.logo {
  width: 100px;
}

@media screen and (min-width: 991px) {
  .logo {
    width: 10%;
    margin-bottom: 15px;
    padding-top: 20px;
  }

  .logo.oculto {
    transform: scale(0.5);
  }
}

/* ocultar barra google translate */
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Imagen Fondo */
.hero-section {
  background: url(../img/Casa-Tzintzun/4-DSC07588.webp) no-repeat center;
  background-size: cover;
  width: 100%;
  color: white;
  margin-bottom: 9rem;
  position: relative;
  z-index: 0;
}

.hero-section::before {
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero-section .container {
  height: 100vh;
  z-index: 1;
  position: relative;
}

.hero-section h1 {
  font-size: 3rem;
}

.hero-section h2 {
  font-size: 1.2rem;
}

/* Main */
@media screen and (min-width: 991px) {
  .imagen__inicio {
    max-width: 60%;
  }
}

.row h1 {
  text-align: center;
  text-justify: inter-word;
}


.margen {
  margin-top: 10rem;
}

/* Proyectos */

.proyecto-1 img {
  width: 100%;
  height: 450px;
  /* Ajusta según el tamaño visual deseado */
  object-fit: cover;
  /* Opcional, para estética uniforme */
}

/* Footer */
.footer {
  margin-top: 3rem;
  background-color: rgb(240, 240, 240);
  font-weight: bold;
}

.footer__info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
}

.footer__info a,
.footer__info span {
  display: block;
  font-size: 0.9rem;
  color: black;
}

.footer__brand {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer__copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}

@media screen and (min-width: 768px) {
  .footer__info {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__info a,
  .footer__info span {
    display: inline-block;
    margin: 0 0.5rem;
  }

  .footer__copyright {
    margin-top: 0;
  }
}

.footer__social {
  text-align: center;
  margin-bottom: 1rem;
}

.footer__social a {
  margin: 0 1rem;
  color: #333;
  font-size: 1.2rem;
  text-decoration: none;
}

.footer__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
}

.footer__brand {
  font-weight: bold;
  text-transform: uppercase;
}

/* Animaciones */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Call to action */
.cto {
  background: url(../img/cto.webp);
  background-size: cover;
  background-position: center;
  width: 100%;
  color: white;
  margin: 9rem 0;
  position: relative;
  z-index: 0;
  background-attachment: scroll; /* default para móviles */
}

@media (min-width: 768px) {
  .cto {
    background-attachment: fixed; /* solo en pantallas más grandes */
  }
}
.cto::before {
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.cto .container {
  height: 100vh;
  z-index: 1;
  position: relative;
}

/* Boton Whatsapp */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  /* distancia desde abajo */
  right: 20px;
  /* distancia desde el borde derecho */
  z-index: 9999;
  /* para que quede arriba de todo */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  /* verde WhatsApp */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

/* Galeria de los proyectos */
.grid {
  margin: 0 auto;
}

.grid>div {
  overflow: hidden;
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.grid img:hover {
  transform: scale(1.05);
}

.grid img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  border: none;
}

#imgModal img {
  max-width: 100%;
  max-height: 90vh;
  /* limita el alto al 90% del viewport */
  width: auto;
  height: auto;
  object-fit: contain;
  /* mantiene proporción */
  display: block;
  margin: 0 auto;
  /*sin borde redondeado */
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#imgModal.show img {
  opacity: 1;
  transform: scale(1);
}

/* Quitar bordes redondeados en móviles */
.container, 
.row, 
img, 
section, 
div {
  border-radius: 0 !important;
}
@media (max-width: 768px) {
  .fade-in-section,
  .fade-in-section .row,
  .fade-in-section img {
    border-radius: 0 !important;
  }
}

