*{
    margin: 0;
    padding: 0;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    transition: 0.7s;
    padding: 30px 20px;
    z-index: 10;
}

header.abajo{
    background: #fff;
    padding: 15px 20px;
}

header .logo{
    position: relative;
    color: #fff;
    font-weight: bold;
    font-size: 2em;
    letter-spacing: 2px;
    transition: 1.5px;
    text-decoration: none;
}

nav{
    display: flex;
    justify-content: center;
    align-items: center;
}

header ul{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

header ul li{
    list-style: none;
}

header ul li a{
    position: relative;
    font-family: Arial, Helvetica;
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 600px;
    transition: 0.7s;
}

.zona1 {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url(img/hero2.jpeg) no-repeat center center;
    background-size: cover;
    margin-top: 0;
    
    /* Ajuste específico para iPad Air (1024x768) y tablets similares */
    @media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
        height: 80vh;
        background-size: contain;
        background-color: #f0f0f0; /* Fondo para áreas no cubiertas */
    }
    
    @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
        height: 90vh;
        background-position: center 30%;
    }
    
    /* Ajuste para móviles */
    @media (max-width: 767px) {
        height: 70vh;
        background-size: cover;
        background-position: center center;
    }
}

header.abajo .logo,
header.abajo ul li a{
    color: #000;
}



.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-center {
  flex: 1;
  text-align: center;
}

.footer-center a {
  margin: 0 15px;
  color: #6c6c6c;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-center a:hover {
  text-decoration: underline;
}

.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(200px, 1fr));
  gap: 10px;
}

.galeria img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.galeria video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}