* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Para Chrome, Edge, Safari, Brave, Opera */
::-webkit-scrollbar {
  width: 4px; /* Ancho vertical */
}

::-webkit-scrollbar-track {
  background: #ffffff; /* Fondo de la pista */
}

::-webkit-scrollbar-thumb {
  background-color: #4e4e4e; /* Color del scroll */
  border: 2px solid #4e4e4e; /* Espacio alrededor */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #bebebe; /* Oscurece al pasar el mouse */
  border: 2px solid #bebebe; /* Espacio alrededor */
}

/* Para Firefox */
body {
  scrollbar-width: thin; /* Estrecho */
  scrollbar-color: #888 #f0f0f0; /* thumb | track */
}

body {
  background-color: #ffffff;
  color: #000;
  line-height: 0;
}

button {
  color: #000;
}

:focus {
  outline: 0.5px solid rgb(225, 225, 225);
  outline-offset: 1px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: white;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a {
  text-decoration: none;
  color: #000;
}

.logo-texto {
  font-size: 0.9rem;
  font-weight: 160;
  line-height: 1.5 !important;
  margin: 0;
  padding: 0;
}

.logo-nombre {
  color: rgb(41, 42, 49);
  font-size: 22px;
  font-weight: 400;
  font-style: normal;
  line-height: 2 !important;
  margin: 0;
  padding: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger .fa-bars,
.hamburger .fa-xmark {
  font-size: 1.5rem;
  color: #000;
}

.hamburger .fa-xmark {
  display: none;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
}

.gallery-grid {
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery-item:nth-child(1) {
  grid-column: span 0;
}

.gallery-item:nth-child(2) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item:nth-child(3) {
  grid-column: span 3;
}

.gallery-item:nth-child(4) {
  grid-column: span 3;
}

.gallery-item:nth-child(5) {
  grid-column: span 3;
}

.gallery-item:nth-child(6) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item:nth-child(7) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item:nth-child(8) {
  grid-column: span 0;
}

.gallery-item:nth-child(9) {
  grid-column: span 3;
}

.gallery-item:nth-child(10) {
  grid-column: span 3;
}

.gallery-item:nth-child(11) {
  grid-column: span 3;
}

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

.team-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 2rem;
  margin-top: 2rem;
  align-items: center;
}

.team-info {
  padding-right: 2rem;
}

.team-info h2 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.team-info p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.div-pub-boton {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.publications-btn {
  padding: 0.8rem 1rem;
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 0.9rem !important;
  font-weight: normal;
  transition: 0.3s;
}

.publications-btn:hover {
  background: #000;
  color: #fff;
}

.team-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.services {
  padding: 6rem 2rem;
  background-color: #f5f5f5;
}

.services h2 {
  text-align: center;
  font-weight: normal;
  font-size: 1.1rem;
  margin-bottom: 4rem;
}

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

.service-card {
  text-align: center;
}

.service-card img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-weight: normal;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.activo {
  font-weight: bold;
}

footer {
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  line-height: 1;
}

.contact-info h3 {
  font-size: 0.9rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 0.9rem;
}

.nombres {
  font-weight: bold;
  font-size: 2rem !important; /* Tamaño inicial en pantallas grandes */
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 1200px) {
  .nombres {
    font-size: 1.8rem !important;
  }
}

@media screen and (max-width: 992px) {
  .nombres {
    font-size: 1.6rem !important;
  }
}

@media screen and (max-width: 768px) {
  .nombres {
    font-size: 1.4rem !important;
  }
}

@media screen and (max-width: 576px) {
  .nombres {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 375px) {
  .nombres {
    font-size: 1rem !important;
  }
}

@media screen and (max-width: 320px) {
  .nombres {
    font-size: 0.9rem !important;
  }
}

.servicios {
  font-weight: bold;
  font-size: 2rem !important;
  margin-bottom: 5rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-item:nth-child(n) {
    grid-column: span 3;
  }

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

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: white;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease-in-out;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.5rem;
    line-height: 2;
  }

  .team-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-info {
    padding-right: 0;
  }

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

  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .gallery-item:nth-child(n) {
    grid-column: span 2;
  }
}

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

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
}
.ver-mas {
  color: #ffffff;
  text-decoration: underline;
}
.data-caption {
  text-align: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 0.9;
}

.gallery-item .overlay-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  width: 100%;
  padding: 1rem;
}

.gallery-item:hover .overlay-caption {
  opacity: 1;
}

.gallery-item a {
  display: block;
  height: 100%;
}

.gallery-item img {
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.fama-form-container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  margin: auto;
}

.fama-form-title {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 120px;
  margin-bottom: 3rem;
  font-weight: 500;
}

.fama-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fama-form-left {
  padding: 2rem;
  background: #f5f5f5;
}

.fama-form-right {
  background-image: url("./img/2-5.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}

.fama-form-left-404 {
  background-image: url("https://blackbelt.cl/demos/afmaa/img/404.webp");
  background-size: cover;
  background-position: unset;
  background-repeat: no-repeat;
  min-height: 400px;
}

.fama-form-right-404 {
  padding: 2rem;
  background: #f5f5f5;
}

.fama-form-contact-info {
  margin-bottom: 2rem;
}

.fama-form-group {
  margin-bottom: 1.5rem;
}

.fama-form-input {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid #333;
  background: transparent;
  font-size: 16px; /* Changed to 16px */
}

.fama-form-input:focus {
  outline: none;
  border-bottom: 2px solid #000;
}

.fama-form-textarea {
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  border-bottom: 1px solid #333;
  background: transparent;
  font-size: 16px; /* Changed to 16px */
  resize: vertical;
  min-height: 100px;
}

.fama-form-textarea::placeholder,
.fama-form-input::placeholder {
  font-size: 16px;
}

.fama-form-submit {
  width: 100%;
  padding: 1rem;
  background: #ffffff;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}
.fama-form-submit:hover {
  background: #000;
  color: #ffffff;
}

@media (max-width: 768px) {
  .fama-form-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .fama-form-right {
    order: 2;
    min-height: 300px;
  }

  .fama-form-left {
    order: 1;
  }

  .fama-form-right-404 {
    order: 1;
    min-height: 300px;
  }

  .fama-form-left-404 {
    order: 2;
  }
}
.error {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.two-images-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 1rem 2rem;
}

.image-wrapper {
  width: 100%;
  height: 100%;
  max-height: 600px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .two-images-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.info-project {
  font-weight: lighter;
  margin-top: 200px;
  margin-bottom: 150px;
  margin-left: 100px;
  line-height: 1.5;
}
@media (max-width: 500px) {
  .info-project {
    margin-left: 30px;
  }
}
.projects-section {
  margin-top: 200px;
  margin-left: 10px;
  margin-right: 10px;
}
.error {
  line-height: 1;
  text-align: center;
}
.masonry-gallery {
  max-width: 1200px;
  margin: auto;
}
.masonry-item {
  width: calc(25% - 12px);
  margin-bottom: 16px;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.masonry-item:hover img {
  transform: scale(1.02);
}
.masonry-item {
  position: relative;
  overflow: hidden;
}

.masonry-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.masonry-item:hover::before {
  opacity: 0.9;
}

.masonry-item .overlay-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  width: 100%;
  padding: 1rem;
}

.masonry-item:hover .overlay-caption {
  opacity: 1;
}

.masonry-item a {
  display: block;
  height: 100%;
}

.masonry-item img {
  transition: transform 0.3s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 1000px) {
  .masonry-item {
    width: calc(33.333% - 11px);
  }
}
@media (max-width: 600px) {
  .masonry-item {
    width: calc(50% - 10px);
  }
}
@media (max-width: 400px) {
  .masonry-item {
    width: calc(100%);
  }
}
