/*
Theme Name: UnderStrapChild
Author: 
Description: Your description goes here
Version: 1.0
Template: understrap

This is the child theme for Understrap theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
:root {
  --bs-primary: #4f46e5;         /* Indigo moderno (ej. Tailwind Indigo-600) */
  --bs-secondary: #64748b;       /* Gris azulado neutro */
  --bs-success: #10b981;         /* Verde esmeralda elegante */
  --bs-body-bg: #f9fafb;
  --bs-body-color: #1f2937;
  --bs-heading-color: #111827;
  --bs-border-radius: 0.5rem;
  --bs-font-sans-serif: 'Inter', sans-serif;
}

/* Tipografía principal */
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #f9fafb;
  color: #1f2937;
}

/* Títulos */
h1, h2, h3, h4, h5 {
  color: #111827;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Hero categoría */
.categoria-hero {
  background: linear-gradient(to right, #0f263a, #28a8af);
  padding: 4rem 0;
	color: #fff;
}

.categoria-hero img {
  height: auto;
}

.categoria-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
	color: #fff;
}

.categoria-hero p {
  font-size: 1.125rem;
  color: #fff;
}

/* Tarjetas de cursos */
.card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: transform 0.2s;
  background-color: #ffffff;
}

.card:hover {
  transform: translateY(-4px);
}

.card-img-top {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-title a {
  text-decoration: none;
  color: #1f2937;
}

.card-title a:hover {
  color: #4f46e5;
}

.card-text {
  font-size: 0.95rem;
  color: #6b7280;
}

.card-footer {
  background: none;
  border-top: none;
}

.categoria-single span{
	color: #1f2937 !important;
	text-decoration: none;
}

/* Botón */
.btn-outline-primary {
  border-radius: 0.5rem;
  font-weight: 500;
  color: #4f46e5;
  border-color: #4f46e5;
}

.btn-outline-primary:hover {
  background-color: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  
}

.nav-link {
  font-weight: 500;
  color: #1f2937;
}

.nav-link:hover {
  color: #4f46e5;
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #d1d5db;
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #bfdbfe;
}

/* Secciones */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Paginación */
.page-numbers {
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  border-radius: 0.375rem;
  color: #4f46e5;
  border: 1px solid #e5e7eb;
}

.page-numbers.current {
  background-color: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

// ---- Variables rápidas (Bootstrap overrides opcionales) ----
$font-family-base: 'Inter', sans-serif;
$headings-font-weight: 700;
$line-height-base: 1.8;
$body-color: #353535;

// ---- Layout general del single ----
.post-single {
  max-width: 760px;          // 👀 la magia para legibilidad
  margin-left: auto;
  margin-right: auto;
}

.hero-figure { height: 340px; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(#000,0) 0%, rgba(#000,.7) 100%);
  color: #fff;
}

// ---- Tipografía y bloques ----
.post-content {
  h2, h3, h4, h5 { margin-top: 3rem; margin-bottom: 1.2rem; font-weight: 700; }

  p:first-of-type::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 700;
    margin: .15em .1em 0 0;
    color: $primary;
  }

  ul:not(.list-inline),
  ol {
    padding-left: 1.2rem;
    li { margin-bottom: .6rem; }
  }
  ul:not(.list-inline) li::marker { content: '› '; color: $primary; font-weight: 900; }

  blockquote {
    border-left: .25rem solid $primary;
    padding-left: 1.25rem;
    font-style: italic;
    color: #666;
    margin: 2rem 0;
  }

  // ----- Tablas -----
  table {
    @extend .table, .table-striped, .table-bordered, .table-hover;
    @extend .w-100, .my-4;
    thead { background: rgba($primary, .05); }
  }
  // Contenedor responsive (Bootstrap util)
  table { @extend .table-responsive; }

  // ----- Imágenes -----
  img {
    @extend .img-fluid;
    @extend .rounded;
    margin: 1.5rem 0;
  }

  // ----- Código -----
  pre, code {
    font-family: 'Fira Code', monospace;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
  }
  pre { padding: 1rem; overflow-x: auto; }
  code { padding: .15em .35em; }
}
