/* ===== MOTONIPON SGSST - DISEÑO PROFESIONAL ===== */

body {
  background:
    linear-gradient(rgba(245,247,250,.92), rgba(245,247,250,.92)),
    radial-gradient(circle at left center, rgba(0,0,0,.12), transparent 35%),
    radial-gradient(circle at right center, rgba(0,0,0,.12), transparent 35%);
  color: #222;
}

/* efecto marca de agua tipo movimiento */
body::before {
  content: "🏍️";
  position: fixed;
  left: 3%;
  top: 25%;
  font-size: 330px;
  opacity: .045;
  z-index: -1;
}

body::after {
  content: "🏍️";
  position: fixed;
  right: 2%;
  top: 25%;
  font-size: 330px;
  opacity: .045;
  transform: scaleX(-1);
  z-index: -1;
}

/* encabezado */
.container-header {
  background: #ffffff !important;
  border-bottom: 5px solid #e30613;
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
}

.container-header img {
  max-height: 85px;
}

/* ocultar elementos automáticos Joomla */
.page-header,
.article-info,
.breadcrumb,
.com-content-category-blog__navigation,
.blog-item .item-content > h2 {
  display: none !important;
}

/* portal */
.portal-sgsst {
  max-width: 1380px;
  margin: auto;
  padding: 35px 25px;
}

.portal-titulo {
  text-align: center;
  margin-bottom: 35px;
}

.portal-titulo h1 {
  color: #232a31 !important;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.portal-titulo h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #e30613;
  margin: 12px auto 0;
  border-radius: 20px;
}

.portal-titulo p {
  color: #333 !important;
  font-size: 18px;
  font-weight: 500;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 30px;
}

/* tarjetas */
.sgsst-card {
  background: #ffffff !important;
  border-radius: 18px;
  padding: 0 0 25px 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  overflow: hidden;
  transition: all .3s ease;
}

.sgsst-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.sgsst-card h3 {
  margin: 0 0 22px 0;
  padding: 24px 28px;
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.sgsst-card:nth-child(1) h3 {
  background: linear-gradient(90deg, #e30613, #a3000c);
}

.sgsst-card:nth-child(2) h3 {
  background: linear-gradient(90deg, #003b8f, #001f4e);
}

.sgsst-card:nth-child(3) h3 {
  background: linear-gradient(90deg, #30363d, #111820);
}

.sgsst-card p {
  padding: 10px 28px;
  color: #333;
  font-size: 16px;
}

/* links tipo botón */
.sgsst-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 24px;
  padding: 14px 18px;
  background: #ffffff !important;
  border: 1px solid #e4e7eb;
  border-left: 5px solid #e30613;
  border-radius: 10px;
  color: #222 !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: all .25s ease;
}

.sgsst-link::after {
  content: "›";
  font-size: 28px;
  color: #555;
}

.sgsst-link:hover {
  background: #f2f6fb !important;
  transform: translateX(6px);
  color: #003b8f !important;
}

/* botón acceso */
.sgsst-btn {
  display: inline-block;
  margin: 20px 28px;
  background: linear-gradient(90deg, #e30613, #9b0010) !important;
  color: #ffffff !important;
  padding: 14px 35px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.sgsst-btn:hover {
  transform: scale(1.04);
  color: #fff !important;
}

/* barra accesos rápidos */
.accesos-rapidos {
  margin-top: 35px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.accesos-rapidos a {
  color: #222 !important;
  text-decoration: none !important;
  font-weight: 800;
  padding: 10px 18px;
  border-right: 1px solid #ddd;
}

.accesos-rapidos a:hover {
  color: #e30613 !important;
}

/* ===== FORMULARIOS VISFORMS ===== */

.visform form,
.form-horizontal,
.form-validate,
.visform fieldset {
  background: #ffffff !important;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 25px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.visform legend,
.visform fieldset legend,
fieldset legend {
  color: #003b8f !important;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.visform label,
.visform .visLabel,
.visform .control-label,
.visform .visfieldlabel,
.visform .form-label,
.visform .field-label {
  color: #111 !important;
  font-weight: 800;
}

.visform input,
.visform select,
.visform textarea,
.form-control {
  background: #ffffff !important;
  color: #111 !important;
  border-radius: 8px !important;
  border: 1px solid #bfc8d4 !important;
}

.visform .required,
.required {
  color: #e30613 !important;
  font-weight: 900;
}

.item-page h1,
.item-page h2,
.item-page h3 {
  color: #222 !important;
  text-align: center;
  font-weight: 900;
}

/* responsive */
@media (max-width: 768px) {
  .portal-titulo h1 {
    font-size: 30px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  body::before,
  body::after {
    display: none;
  }
}