header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 1px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      z-index: 1000;
    }
    
    header .logo {
      font-size: 24px;
      font-weight: bold;
      color: #005073;
    }
    nav a {
      margin: 0 30px;
      text-decoration: none;
      color: #333;
      font-weight: 500;
      font-family: Nyala; 
      font-size: 20px
    }
    nav a:hover {
      color: #005073;
    }
    .btn {
      background: #005073;
      color: white;
      padding: 8px 15px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
      width: 110px;
      height: 28px;
      margin-right: 12px;
      font-family: Nyala; 
      font-size: 20px;
    }
    .btn:hover {
      background: #0077b6;
    }
    h2{
        text-align: center;
    }
.hero {
   position: relative; 
        height: 400px; 
        background: #111; 
        color: white; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        text-align: center; 
        margin-top: 110px;
    }
    .hero img { 
        position: absolute; 
        inset: 0; width: 100%; 
        height: 100%; 
        object-fit: cover; 
        opacity: 0.4; }
    .hero h1 { 
        position: relative; 
        font-size: 2.5rem; 
        font-weight: bold; 
    }
    hr{
        border: 0; /* Elimina el borde predeterminado */
      height: 2.5px; /* Grosor de la línea */
      background: linear-gradient(90deg, #0f172a, #005073, #0077b6); /* Color de la línea */
      margin: 10px 0; 
    }

   .In {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;                 /* separación entre video/imagen y texto */
  padding: 2rem;
  flex-wrap: wrap;           /* acomoda en pantallas chicas */
  animation: slideInDown 0.8s ease forwards;
  
 
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-100px); }
  to   { opacity: 1; transform: translateY(0);}
}
/* columna del video */
.v1 {
  flex: 1 1 50%;             /* mitad de la pantalla en escritorio */
  display: flex;
  justify-content: center;
}

.v1 video {
  width: 100%;
  max-width: 600px;          /* tamaño máximo en PC */
  border-radius: 12px;
  margin-right: 15px;
}

.v2 {
  flex: 1 1 45%;             /* texto ocupa la otra mitad */
  font-family: Segoe UI;
  font-size: 1.5rem;
  line-height: 1.4;
  text-align: left;
}

.v2 p {
  margin: 0;
}


/* =========================
   📱 VISTA MÓVIL
========================= */
@media (max-width: 768px) {
  .In {
    flex-direction: column;    /* apila vertical */
    text-align: center;
  }

  .v1, .v2{
    flex: 1 1 100%;            /* ocupan todo el ancho */
  }

  .v1 video {
    max-width: 100% !important; /* 🔑 ancho completo en móvil */
    width: 100%;
    height: auto;
  }

  .v2{
    margin-top: 1rem;          /* separa texto del video/imagen */
}
}

  .contenedor {
  display: grid;
  place-items: center;
  background: #f6f7f9;
  padding: 1rem;
}

.titulo-principal {
  font-family: Nyala, serif;
  font-size: 45px;
  margin-bottom: 1rem;
  text-align: center;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  justify-content: center; /* centra las columnas si sobra espacio */
  max-width: 1200px;
  width: 100%;
}

.servicio {
  position: relative;
  aspect-ratio: 3/4; /* tarjetas verticales */
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInUp 0.6s ease forwards;
}

/* animación escalonada */
.servicio:nth-child(1){animation-delay:.1s;}
.servicio:nth-child(2){animation-delay:.2s;}
.servicio:nth-child(3){animation-delay:.3s;}
.servicio:nth-child(4){animation-delay:.4s;}
.servicio:nth-child(5){animation-delay:.5s;}

@keyframes fadeInUp {
  to { opacity: 1; transform: scale(1); }
}

/* imagenes */
.servicio img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* no se deforman */
  display: block;
}

.servicio::after {
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  transition: opacity .3s ease;
}

.titulo {
  position: absolute;
  color: #fff;
  font: 600 1rem/1.2 "Segoe UI", sans-serif;
  padding: 1rem;
  z-index: 2;
  text-transform: uppercase;
  font-size: 22px;
}

/* overlay oculto inicialmente */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20%);
  transition: opacity .4s ease, transform .4s ease;
  z-index: 3;
}

.overlay a {
  font-size: 19px;
  font-family: Nyala, serif;
  color: white;
  text-decoration: none;
}

/* efecto hover */
.servicio:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 4;
}

.servicio:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* responsive para móviles */
@media (max-width:600px){
  .grid-servicios{
    grid-template-columns: 1fr;
  }
  .servicio{
    aspect-ratio: 3/4; /* mantiene proporción vertical */
}
}

.whatsapp-button {
  position: fixed; /* Fija el elemento en la pantalla */
  bottom: 50px;    /* Distancia desde la parte inferior */
  right: 50px;     /* Distancia desde la parte derecha */
  z-index: 100;    /* Asegura que esté sobre otros elementos */
  display: block;  /* Asegura que el enlace ocupe el espacio del img */
}

.whatsapp-button img {
  width: 64px;     /* Ancho del icono */
  height: 64px;    /* Alto del icono */
  border-radius: 50%; /* Para un botón redondo (opcional) */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Sombra para hacerlo flotante */
}

 .campo{
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;           /* permite que se acomode en pantallas chicas */
        animation: slideInDown 0.8s ease forwards;
        
        
        
    }
    .eslogan{
        flex: 1 1 45%;             /* ocupa la mitad en pantallas grandes */
        display: flex;
        justify-content: center;
    }
    .redes{
        flex: 1 1 50%;             /* ocupa la otra mitad */
        font-size: 1.5rem;
        line-height: 1.4;
        text-align: center;
    }
    .footer{
        background: linear-gradient(90deg, #0f172a, #005073, #0077b6);
        color: white;
        height: max-content;
    
    }
    .Designed{
      text-align: center;
    }
    .logo-face{
        width: 55px;
        height: 55px;
    }
    .logo-linke{
        width: 55px;
        height: 55px;
    }
    .logo-insta{
        width: 55px;
        height: 55px;
    }