* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}
body {
  background: #ffffff;
  color: #000000;
}
body.modal-abierto {
  overflow: hidden;
  pointer-events: none;
}

body.modal-abierto .modal {
  pointer-events: auto; /* permitir interacción dentro del modal */
}

header {
  margin-top: 0;
  padding-top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  text-align: center;
  animation: fadeIn 2s ease-in;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-wrapper {
    margin-top: 0;
  padding-top: 0;
  display: inline-block;
  animation: bounce 2s infinite;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.1);
}

.logo-wrapper img {
  width: 250px;
  display: block;
}
.btn-ver-mas {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  background-color: #222;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}


header h1 {
  margin-top: 0;
  padding-top: 0;
  font-size: 5rem;
  letter-spacing: 2px;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
    max-width: 100vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-bottom: 1px solid #eaeaea;
  transition: top 0.3s;

}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
    display:inline-block;
  /*overflow: hidden;*/
}

nav a::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

nav a:hover {
  transform: scale(1.50);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  background-color: #f7f7f7;
  transition: transform 0.25s cubic-bezier(.4,2,.3,1), box-shadow 0.25s, background 0.25s;
}
section {
  padding: 80px 20px;
  width: 100%;
  min-height: 100vh; 
  margin: auto;
}
h2 {
  font-size: 5rem;
  margin-bottom: 20px;
}
p, li {
  font-size: 1.1rem;
  line-height: 1.6;
}
.contact-info {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.contact-info a img {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.3s;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 16px; /* Más padding para centrar mejor */
}

.contact-info a img:hover {
  transform: scale(1.18);
}
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #fff;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

.btn-claro:hover {
  background-color: #ddd;
  color: #000;
}

/* Fondos diferenciados por sección */
.fondo-claro {
  background-color: #f9f9f9;
  color: #000;
  padding: 80px 20px;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 20px;
}

.fondo-oscuro {
  background-color: #000;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 20px;
}

.fondo-oscuro h2 {
  color: #fff;
}

.fondo-oscuro p {
  color: #ddd;
}

/* Botones */
.btn-claro {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #fff;
  color: #000;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-claro:hover {
  background-color: #ddd;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1);
}
.contenedor {
  max-width: 1000px;
  margin: 0 auto;
}
/* Layout para la sección Nosotros */
.contenedor-nosotros {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.right-image {
  flex: 1 1 300px;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  margin-left: auto;
}
.nosotros-texto {
  flex: 1 1 350px;
  text-align: left;
  /* Opcional: limita el ancho del bloque de texto */
  max-width: 600px;
}

.centrar-boton {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .contenedor-nosotros {
    flex-direction: column;
    align-items: flex-start;
  }
  .right-image {
    margin: 30px 0 0 0;
    max-width: 100%;
    width: 100%;
  }
  .nosotros-texto {
    width: 100%;
  }
}
.flecha-abajo-fija {
  position: fixed;
  left: 48.7%; /* antes: 50% */
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 1000;
  animation: bounce 2s infinite;
  cursor: pointer;
 transition: opacity 0.4s;
}

.flecha-abajo-fija svg {
  display: block;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  padding: 8px;
  box-sizing: content-box;
  width: 20px;
  height: 20px;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.card-proyecto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.card-proyecto:hover {
  transform: scale(1.03);
}
.card-proyecto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-proyecto .contenido {
  padding: 16px;
  text-align: left;
}
.card-proyecto .contenido h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #000;
}
.card-proyecto .contenido p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal.active {
  display: flex;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.modal-content-custom {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  max-width: 90%;
  max-height: 90%;
  padding: 30px;
  overflow-y: auto;
}
.modal-imagenes {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.modal-imagenes img,
.modal-imagenes video {
  max-width: 400px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid #ccc;
  background: #fafafa;
}
.modal-texto {
  text-align: center;
  margin-top: 20px;
}
.modal-texto h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.modal-texto p {
  font-size: 1rem;
  color: #333;
}
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #222;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive navbar */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100vw;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: none;
    padding: 16px 0;
    z-index: 99;
  }
  .nav-links.active {
    display: flex;
  }
  nav a {
    padding: 16px 24px;
    width: 100%;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }
}
@media (max-width: 700px) {
  .modal-imagenes {
    flex-direction: column;
    gap: 16px;
  }
  .modal-imagenes img,
  .modal-imagenes video {
    max-width: 50vw;
    max-height: 220px;
  }
  .titulo-servicio {
    font-size: 4.5rem;
  }
}