/* ======================
 * Base global shining
 * ====================== */

body {
  /* altura de la navbar Bootstrap â‰ˆ 56px; damos un poco mÃ¡s */
  padding-top: 64px;
  margin: 0;
  background-color: #ebf8fa69;
  color: #195097;
}

/* Marca de agua shining */
body::before {
  content: "shining";
  position: fixed;
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  font-size: 11vw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(15, 23, 42, 0.04);
  pointer-events: none;
  z-index: -1;
}

/* ======================
 * Navbar comÃºn
 * ====================== */

.navbar {
  background: linear-gradient(135deg, #195097, #0d6efd, #195097);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.35);
}

.navbar .navbar-brand {
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.navbar .nav-link {
  position: relative;
  padding: 0.35rem 0.85rem;
  margin: 0 0.15rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .12s;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #0f172a !important;
  background: #ebf8fa;
  border-color: #bae6fd;
  box-shadow: 0 0.5rem 1.3rem rgba(15,23,42,0.25);
  transform: translateY(-1px);
}

.navbar .nav-link.active {
  color: #0f172a !important;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border-color: #0ea5e9;
}

/* ======================
 * Hero (pÃ¡gina index)
 * ====================== */

.hero {
  background: radial-gradient(circle at top left, #195097 0, #195097 35%, #ebf8fa 100%);
  color: #e5f3f6;
  padding: 4rem 1.5rem 3rem;
}

.hero h1 {
  font-weight: 600;
}

.hero p.lead {
  max-width: 720px;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-color: #0ea5e9;
  box-shadow: 0 0.75rem 1.5rem rgba(15,23,42,0.35);
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  border-color: #0369a1;
}

/* ======================
 * Tarjetas y badges
 * ====================== */

.section-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link .card {
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  height: 100%;
}

.card-link:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 0.9rem 1.8rem rgba(15,23,42,0.14);
  border-color: #bfdbfe;
}

.badge-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  padding-inline: .45rem;
}

/* ======================
 * Sidebar + contenido (pÃ¡ginas internas)
 * ====================== */

.sidebar {
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow-y: auto;
  background: #0f172a;
  color: #e5e7eb;
  border-right: 1px solid rgba(148, 163, 184, 0.35);
}

.sidebar h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9ca3af !important;
}

.sidebar .nav-link {
  font-size: 0.88rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  color: #e5e7eb;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  background: #1e293b;
  color: #f9fafb;
}

.sidebar .nav-link.active {
  background: #38bdf8;
  color: #0f172a;
}

.content-area {
  padding: 1.5rem 1rem;
}

/* ======================
 * Marcador fluorescente
 * ====================== */

.fluorescente {
  position: relative;
  display: inline-block;
  padding: 0 2px;
}

.fluorescente::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15em;
  width: 100%;
  height: 0.4em;
  background-color: #fffb00;
  z-index: -1;
  border-radius: 4px;
  box-shadow: 0 0 8px #fffb00;
}

/* ======================
 * ImÃ¡genes y footer
 * ====================== */

img.img-fluid.rounded.border {
  border-radius: 12px !important;
  border-color: #e5e7eb !important;
}

footer {
  background-color: #f9fafb;
}

/* ======================
 * TÃ­tulos
 * ====================== */

h1, h2, h3, h4 {
  font-weight: 600;
  color: #0f172a;
}

/* TÃ­tulos de secciÃ³n (h2) */
h2,
h2.h4 {
  font-size: 1.35rem;
  letter-spacing: .03em;
  text-transform: none;
  margin-bottom: 0.75rem;
  position: relative;
}

/* subrayado suave bajo h2 */
h2::after,
h2.h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  opacity: 0.85;
}

/* SubtÃ­tulos (h3) dentro de tarjetas o secciones */
h3,
h3.h5 {
  font-size: 1.05rem;
  letter-spacing: .02em;
}

/* Offset para enlaces con #seccion (navbar fija) */
[id] {
  scroll-margin-top: 80px;  /* algo mayor que la altura de la navbar */
}

/* espacio entre imágenes dentro de la misma card */
.card-body img + img {
  margin-top: 0.75rem;
}
.card-screenshot {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
}

.card-screenshot {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
}

/* Contenedor flex solo para colocar las imágenes, sin estirarlas */
.card-screenshot .card-body {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Imágenes respetan su tamaño natural, solo se limitan un poco */
.card-screenshot .card-body img {
  display: block;
  height: auto;
  max-width: 100%;              /* nunca más anchas que el contenedor */
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.15);
}

/* En pantallas medianas/grandes, que intenten ir lado a lado sin deformar */
@media (min-width: 992px) {
  .card-screenshot .card-body img {
    max-width: 48%;             /* como límite, no como obligación */
  }
}

