@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: "Saira", sans-serif; margin: 0; padding: 0; }

:root {
--negro: #1c1c1cff;
--gris: #daddd8ff;
--hueso: #ecebe4ff;
--claro: #eef0f2ff;
--blanco: #fafaffff;
}

/* Estado inicial */
.animar {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estado visible */
.animar.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Top bar */
.top-bar {
  background: #111111b6;          /* franja oscura */
  color: #fff;
  font-size: 0.9rem;
  padding: 0.3rem 5rem;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end; /* alineado a la derecha */
  gap: 1rem;
}

/* Contact links */
.contact-item {
  display: flex;
  align-items: center;
  text-decoration: none;   /* sin subrayado */
  color: inherit;          /* mantiene el color del padre (#fff) */
  transition: color 0.3s ease;
}

.contact-item:hover {
  color:var(--hueso);          /* ejemplo: dorado al pasar el mouse */
}



/* Contenedor central */
.container {
  max-width: 1200px !important;   /* límite de ancho */
  margin: 0 auto !important;      /* centrado */
  padding:0  1rem !important;     /* espacio lateral en móviles */
}
.container-hero{
  max-width: 1200px;   /* límite de ancho */
  margin: 0 auto;      /* centrado */
  padding: 0 1rem; 

}
.container-sections {
  max-width: 80ch; /* o 960px si prefieres fijo */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--gris);
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
}
.site-header.sombra-activa {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-inner {
  width: 100% !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem !important;
  
}
.logo img { height: 3rem; width: 100%; }

/* Nav */
.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  
}
.nav a {
  position: relative;
  color: var(--negro);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 0;
  height: 1px;
  background-color: var(--negro);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
  left: 0;
}

.no-scroll {
  overflow: hidden;
  height: 100vh; /* asegura que no se pueda desplazar */
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1200;
}
.menu-toggle span {
  width: 28px; height: 3px;
  background: var(--negro);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* Border solo cuando el menú está activo */
.site-header.menu-open {
  border-bottom: 1.5px solid var(--gris);
}

.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;       /* distancia desde abajo */
  right: 20px;        /* distancia desde la derecha */
  background-color: #111111b6; 
  color:var(--blanco);
  
  text-align: center;
  font-size: 32px;
  box-shadow: 2px 2px 8px rgba(29, 26, 22, 0.3);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  border: none !important;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--hueso);
  color: var(--negro);
}

/* Responsive menú */
@media (max-width: 768px) {

  .top-bar {
    display: none;
    
  }
  .nav {
    position: fixed;
    top: 4.6rem; /* altura aprox. del header */
    left: 0;
    width: 100%;
    height: calc(100vh - 3.5rem); /* resto de la pantalla */
    background: var(--gris);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    z-index: 900; /* menor que el header */
    text-align: center;
    }

    .nav ul { flex-direction: column; gap: 1rem; }
    .nav.active { transform: translateX(0); }
    .menu-toggle { display: flex; }

    .nav li{
      
      padding: 0.5rem 3rem;
      border-top: 1px solid var(--blanco);
      border-radius: 10px;
      
    }
    .nav li a:hover{
      background-color: rgba(255, 0, 0, 0);
      
    }
    
    .logo{
      position: relative;
      z-index: 5000;
    }


    /* Footer */
    .site-footer {
      background: #111;
      color: #fff;
      padding: 2rem 0;
      margin-top: 3rem;
      text-align: center;
    }
  }