*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Helvetica', sans-serif;
    background-color: white;
    color: #111;
}

header{
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: white;
}

.navbar {
  background-color: #fff; /* o el color que estés usando */
  padding: 10px 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #000; /* color de texto */
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Línea que aparece al hacer hover */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px; /* espacio debajo del texto */
  background-color: #007BFF; /* color del subrayado */
  transition: width 0.3s ease;
}

/* Al pasar el cursor */
.nav-links a:hover::after {
  width: 100%;
}


nav a{
    margin-left: 2rem;
    text-decoration: none;
    color: black;
    font-weight: 500;
}



.logo {
  width: 80%; /* reduce al 80% del tamaño original del contenedor */
  max-width: 150px; /* tamaño máximo para que no crezca mucho */
  height: auto; /* mantiene la proporción original */
  display: block; /* para evitar espacios debajo si es imagen inline */
}



.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #6c6c6c;
  background: #fff;
  border-top: 1px solid #ddd;
}

.footer-left {
  flex: 1;
}


.footer-right {
  flex: 1;
  text-align: right;
}

.footer-right .icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin-left: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #6c6c6c;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  user-select: none;
}

.footer-right .icon:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}


/* Media Queries para diseño responsivo */

/* Tablets */
@media (max-width: 768px) {
    header {
        padding: 15px 3%;
    }
    
    nav ul li a {
        margin-left: 20px;
    }
    
    .zona1 {
        height: 80vh;
    }
    
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin-bottom: 10px;
    }
    
    nav ul li a {
        margin-left: 0;
    }
    
    .zona1 {
        height: 60vh;
        margin-top: 120px; /* Más espacio para el header en móvil */
    }
    
    .footer-left, .footer-center, .footer-right {
        width: 100%;
        text-align: center;
    }
    
    .footer-center a {
        margin: 5px 0;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Media Query para el menú hamburguesa */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-bottom: 15px;
    }
    
    nav ul li a {
        margin-left: 0;
    }
}

/* Botón flotante para móviles */
.float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color de WhatsApp */
    border-radius: 50%;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.float-button img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
    .float-button {
        display: flex;
    }
}
@media (max-width: 768px) {
  nav.active ul li a {
    color: #000 !important; /* Color negro cuando el menú está abierto */
  }
}
body {
  font-family: Arial, sans-serif;
  background: #f3f3f3;
  margin: 0;
  padding: 20px;
}

.proyecto {
  background: #fff;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.proyecto h2 {
  color: #333;
  margin-bottom: 5px;
}

.proyecto .fecha {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.proyecto p.descripcion {
  margin-bottom: 20px;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 200px));
  gap: 50px;
}

.galeria img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.project-card {
  width: 100%;
  max-width: 400px;        /* Ancho máximo */
  aspect-ratio: 16 / 9;    /* Rectángulo horizontal */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.thumbnail img {
  width: 60px;
  cursor: pointer;
  border-radius: 8px;
}

.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8); /* fondo oscuro */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 80%;
  animation: popUp 0.3s ease-in-out;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-content .close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

@keyframes popUp {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.btn {
  display: inline-block;
  background-color: #007bff; /* azul vibrante */
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background-color: #0056b3; /* azul más oscuro al pasar el mouse */
  box-shadow: 0 6px 12px rgba(0, 86, 179, 0.5);
}