body {
  overflow-x: hidden !important;
}

/* BARRA SUPERIOR DE WIDGETS - SOLO ESCRITORIO */
@media (min-width: 1201px) {
  #information-widgets {
    width: 100% !important;
    max-width: 1780px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #widgets-wrap {
    justify-content: center !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
  }

  #information-widgets-right {
    justify-content: center !important;
    flex-grow: 0 !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
  }

  #information-widgets * {
    white-space: nowrap !important;
  }
}

/* BARRA MOVIL PERSONALIZADA */
#mobile-server-stats {
  display: none;
}

@media (max-width: 1200px) {
  #information-widgets {
    display: none !important;
  }

  #mobile-server-stats {
    display: flex !important;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    overflow: hidden;
    margin: 14px auto 18px auto;

    padding: 10px 14px;
    box-sizing: border-box;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(96, 165, 250, 0.25);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }

  #mobile-server-stats span {
    white-space: nowrap;
  }
}

/* CONTENEDOR PRINCIPAL */
#layout-groups {
  display: grid !important;
  grid-template-columns: 500px 340px 500px !important;
  justify-content: center !important;
  align-items: start !important;
  column-gap: 70px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 35px auto 0 auto !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
}

/* MULTIMEDIA */
#layout-groups > .services-group:nth-child(1) {
  grid-column: 1 !important;
  width: 500px !important;
  max-width: 500px !important;
  min-width: 0 !important;
}

/* SERVICES */
#layout-groups > .services-group:nth-child(2) {
  grid-column: 3 !important;
  width: 500px !important;
  max-width: 500px !important;
  min-width: 0 !important;
}

/* TITULOS */
.services-group h2 {
  text-align: center !important;
  font-size: 38px !important;
  font-weight: 800 !important;
  margin: 0 0 10px 0 !important;
  color: rgba(255,255,255,0.96) !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45) !important;
}

/* TARJETAS - Modificadas para encajar todas sin scroll */
.service-card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 95px !important; /* Altura reducida */
  margin-bottom: 15px !important; /* Espaciado reducido */
  border-radius: 28px !important;
  background: rgba(29,78,216,0.22) !important;
  border: 1px solid rgba(96,165,250,0.25) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  box-shadow:
    0 10px 34px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease !important;
}

/* HOVER TARJETAS */
.service-card:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.35) !important;
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow:
    0 14px 42px rgba(0,0,0,0.38),
    0 0 25px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* TEXTO CENTRAL */
#layout-groups::before {
  content: "Benvingut\A Bienvenido\A Welcome";
  white-space: pre-line;
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  align-self: start !important;
  justify-self: center !important;
  margin-top: 210px !important;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  color: white;
  text-shadow: 0 5px 20px rgba(0,0,0,0.55);
  pointer-events: none;
  z-index: 1;
}

/* MOBILE / TABLET */
@media (max-width: 1200px) {
  #layout-groups {
    display: block !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    margin: 20px 15px !important;
    padding: 0 !important;
  }

  #layout-groups::before {
    display: none !important;
  }

  #layout-groups > .services-group:nth-child(1),
  #layout-groups > .services-group:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 25px !important;
  }

  .services-group h2 {
    text-align: left !important;
    font-size: 46px !important;
  }
}

/* OCULTAR BOTON REFRESH Y VERSION */
#footer {
  display: none !important;
}
@media (min-width: 1201px) {
  .information-widget-datetime {
    transform: translateX(-20px) !important;
  }
}

/* Sombra pro para mejorar la legibilidad de textos sobre el fondo luminoso */
.text-white, .text-slate-500 {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9) !important;
}
