/* ------------------ ESTILOS GENERALES ------------------ */
body {
  margin: 0;
  font-family: Calibri, sans-serif;
  background: #f2f2f2;
  color: #333;
}

/* ------------------ ENCABEZADO ------------------ */
header {
  background: linear-gradient(to top, #003366, #66aaff); /* Azul oscuro → azul claro */
  color: white;
  text-align: center;
  padding: 20px 5px;
  position: relative;
  border-bottom: 3px solid #002244; /* Línea elegante */
}

/* LOGO CENTRADO Y GRANDE */
header img.logo {
  display: block;
  margin: 0 auto 15px auto;
  width: 500px;
  height: auto;
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 1px;
}

header .descripcion {
  margin-top: 8px;
  font-size: 18px;
  opacity: 0.9;
}

/* ------------------ MARQUESINA ------------------ */
.marquesina {
  overflow: hidden;
  white-space: nowrap;
  background: #fff;
  padding: 10px 0;
}

.marquesina img {
  display: inline-block;
  height: 220px;
  margin: 0 15px;
  animation: scroll 22s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ------------------ SERVICIOS ------------------ */
.servicios {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  background: #ffffff;
  gap: 20px;
}

.servicio {
  width: 30%;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(to bottom, #d0d0d0, #ffffff); /* Gris oscuro → blanco */
  border: 2px solid #444; /* Línea gris oscuro */
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Efecto elegante al pasar el mouse */
.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* TÍTULO ELEGANTE */
.servicio h3 {
  margin: 0;
  padding: 15px;
  text-align: center;
  font-size: 20px; /* Más grande */
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;

  /* Degradado vertical: azul oscuro abajo → azul claro arriba */
  background: linear-gradient(to top, #003366, #3399ff);
  border-bottom: 2px solid #333;
}

/* TEXTO */
.servicio p {
  padding: 22px;
  font-size: 17px; /* Más grande */
  color: #333;
  line-height: 1.5;
}
/* TEXTO */
.servicio p {
  padding: 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

/* ------------------ LOGIN ------------------ */
.login {
  background: #1a1a1a;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.login input {
  width: 220px;
  padding: 10px;
  margin: 8px;
  border: none;
  border-radius: 5px;
}

.login button {
  padding: 10px 20px;
  background: #ff6600;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.login button:hover {
  background: #e65c00;
}

.nuevo-usuario {
  display: block;
  margin-top: 10px;
  color: #ff6600;
  text-decoration: none;
}

/* ------------------ ADMIN ------------------ */
.admin {
  background: #ffffff;
  padding: 30px;
  text-align: center;
}

.admin-link {
  color: #ff6600;
  font-weight: bold;
  text-decoration: none;
}

/* ------------------ FOOTER ------------------ */
footer {
  background: #1a1a1a;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.boton-destacado {
  text-align: center;
  margin: 40px 0 20px 0;
}

.btn-elegante {
  display: inline-block;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(to top, #003366, #3399ff); /* Azul oscuro → azul claro */
  border: 2px solid #003366;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-elegante:hover {
  background: linear-gradient(to top, #002244, #2277dd);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* ------------------ MENÚ PRINCIPAL ------------------ */
.menu {
  background: linear-gradient(to top, #002244, #3399ff);
  border-bottom: 3px solid #001a33;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.menu ul li {
  position: relative;
}

.menu ul li a {
  display: block;
  padding: 14px 22px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s ease;
  border-radius: 6px;
}

/* Hover elegante */
.menu ul li a:hover {
  background: linear-gradient(to top, #001a33, #2277dd);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* SUBMENÚ */
.submenu .submenu-items {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  background: linear-gradient(to bottom, #003366, #66aaff);
  border: 2px solid #002244;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  padding: 0;
  z-index: 10;
}

.submenu .submenu-items li a {
  padding: 12px 18px;
  font-size: 16px;
  text-transform: none;
  border-radius: 0;
}

/* Hover del submenú */
.submenu .submenu-items li a:hover {
  background: linear-gradient(to top, #002244, #3399ff);
}

/* Mostrar submenú al pasar el mouse */
.submenu:hover .submenu-items {
  display: block;
}

/* Bloque para el panel de usuario admin */
div.stile_log {
    display: flex;
    justify-content: flex-end; /* contenido alineado a la derecha */
    align-items: center;
    background: linear-gradient(to right, #2C6DA3, #001f3f); /* degradado naranja a azul oscuro */
    padding: 10px 20px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Texto del usuario */
.stile_log_info {
    margin-right: 15px;
    text-align: right;
    line-height: 1.4;
}

/* Botón de salir */
.stile_log_exit {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}
.peso-box {
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0d1b2a;
    letter-spacing: 0.4px;
}
.enlace-box {
    color: #0a4fff;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease;
}

.enlace-box img {
    transition: transform 0.25s ease;
}

.enlace-box:hover img {
    transform: scale(1.12);   /* Aumenta un poquito */
}

.enlace-box:hover {
    font-size: 1.05em;
    font-weight: 600;
    color: #003ecb;
    cursor: pointer;
}