/* ================================
   ESTILOS BASE - KBSV ABOGADOS
================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', serif;
}

body {
  background-color: #0c0c0c;
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* ======== CONTENIDO PRINCIPAL ======== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ======== LOGO ======== */
.logo {
  width: 480px;
  max-width: 90%;
  height: auto;
  margin-bottom: 40px;
  user-select: none;
}

/* ======== BOTÓN ======== */
.btn {
  text-decoration: none;
  color: #000;
  background: #fff;
  padding: 12px 32px;
  font-size: 1rem;
  border-radius: 2px;
  letter-spacing: 1px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: #bdbdbd;
  transform: translateY(-2px);
}

/* ======== FOOTER ======== */
footer.legal {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.5px;
  background-color: #0c0c0c;
  padding: 14px 0 18px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.link-footer {
  color: #bbb;
  text-decoration: none;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.link-footer:hover {
  color: #fff;
  text-decoration: underline;
}
.rights {
  font-size: 0.72rem;
  color: #bbb;
}

/* ================================
   REDES - SUPERIOR IZQUIERDA
   (misma posición/estilo de antes, más pequeño)
================================= */
.social-stack {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 110;
  align-items: center;
}

.social-btn {
  width: 28px;   /* antes 42px */
  height: 28px;  /* antes 42px */
  background: #0c0c0c; /* fondo negro */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.social-icon {
  width: 16px;   /* antes 22px */
  height: 16px;  /* antes 22px */
  object-fit: contain;
}

/* Para logos negros (LinkedIn PNG negro → blanco sobre fondo negro) */
.social-icon.invert { filter: invert(1); }

/* ================================
   WHATSAPP - INFERIOR DERECHA
   (fondo negro, icono SIEMPRE blanco)
================================= */
.whatsapp-float {
  position: fixed;
  bottom: 15px;  /* un poco más adentro */
  right: 15px;
  width: 35px;   /* antes 55px */
  height: 35px;  /* antes 55px */
  background-color: #0c0c0c; /* fondo negro */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  cursor: pointer;
}

.whatsapp-icon {
  width: 18px;   /* antes 28px */
  height: 18px;  /* antes 28px */
  filter: none !important; /* evita heredar invert() y volverse rosado */
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 600px) {
  .social-stack {
    top: 18px;
    left: 18px;
    gap: 8px;
  }

  .social-btn {
    width: 26px;
    height:26px;
  }

  .social-icon {
    width: 14px;
    height: 14px;
  }

  .whatsapp-float {
    bottom: 70px;  /* sube para no chocar con barra de sistema */
    right: 18px;
    width: 32px;
    height: 32px;
  }

  .whatsapp-icon {
    width: 16px;
    height: 16px;
  }
}

/* ================================
   SCROLL MÓVIL: mínimo y suave
================================= */
@media (max-width: 600px) {
  html, body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
  }
  body {
    max-height: 105vh; /* deja un margen de movimiento muy pequeño */
  }
}
