/* Elimina márgenes por defecto del navegador */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #060C1A;
}

/* Barra superior */
header {
  width: 100%;
  background: linear-gradient(90deg, #07152d, #00c4ff);
  padding: 20px 40px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Logo */
.logo a {
  text-decoration: none;
  color: white;
  font-size: 35px;
  font-weight: bold;
}

.logo a span {
  color: #00bfff;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffdd00;
}

/* Alinear logo y menú */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 24px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 16px;
  }
}

/* Chatbot corporativo */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  text-align: center;
  z-index: 999;
}

.avatar {
  width: 120px;
  cursor: pointer;
  filter: drop-shadow(0 0 15px #00bfff);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

/* Ventana de chat */
#chat-window {
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  border: 1px solid #00bfff;
  border-radius: 10px;
  width: 250px;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  backdrop-filter: blur(6px);
}

.hidden {
  display: none;
}

/* Sección servicios */
.servicios {
  padding: 50px 20px;
  background-color: #060C1A;;
  text-align: center;
}

.servicios h2 {
  font-size: 32px;
  color: #fefefe;
  margin-bottom: 35px;
}
.servicios h5 {
  font-size: 20px;
  color: #fefefe;
  margin-bottom: 35px;
}

/* Grid de servicios */
.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Tarjetas */
.servicio {
  background: #ffffff;

  border-radius: 12px;

  padding: 20px;

  position: relative;

  cursor: pointer;

  height: 300px;

  overflow-y: auto;

  transition: all 0.4s ease;

  box-shadow:
    0 0 15px rgba(0,196,255,0.3),
    0 0 30px rgba(0,196,255,0.2);
}

/* Hover */
.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.servicio h3 {
  color: #00c4ff;
  font-size: 20px;
  margin-bottom: 10px;
}

.servicio p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* Scroll personalizado */
.servicio::-webkit-scrollbar {
  width: 6px;
}

.servicio::-webkit-scrollbar-track {
  background: transparent;
}

.servicio::-webkit-scrollbar-thumb {
  background: #00c4ff;
  border-radius: 10px;
}

/* Tarjeta expandida */
.servicio.expandido {
  position: fixed;
  top: 50%;
  left: 50%;

  width: 80%;
  max-width: 900px;

  height: 70%;

  transform: translate(-50%, -50%);

  z-index: 1000;

  overflow-y: auto;

  background: #fff;
  

  padding: 25px;

  border-radius: 12px;

  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

/* Detalles ocultos */
.detalle {
  display: none;
  margin-top: 20px;
  text-align: left;
}

/* Mostrar detalles al expandir */
.servicio.expandido .detalle {
  display: block;
}

/* Botón cerrar */
.cerrar {
  margin-top: 15px;
  padding: 10px 15px;
  background: #00c4ff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.cerrar:hover {
  background: #009fd1;
}
/* Imágenes de los subservicios */
.img-celdas-servicios {
    width: 100%;
    max-width: 350px;
    height: 200px;

    object-fit: cover;

    display: block;
    margin: 10px auto 15px;

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
