body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Raleway, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  padding: 0;
  background-color: #fff;
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  margin-top: 0;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-family: "Lobster", cursive;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1em;
  line-height: 1.4;
  margin: 0;
  padding: 0.5em;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-sizing: border-box;
}

/* Contenedor centrado */
.section-center {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-self: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Contenedor de columnas */
.section-cols-2,
.section-cols-3,
.section-cols-4 {
  display: flex;
  padding: 20px;
  gap: 20px; /* espacio entre columnas */

  margin: 0 auto;
  flex-wrap: wrap; /* permite que baje a 1 columna en móvil */
}

/* Cada columna */
.section-cols-2 .col {
  flex: 1 1 45%; /* cada columna ocupa aprox 1/2 */
  min-width: 250px; /* evita que se haga demasiado estrecha */
  padding: 20px;
  box-sizing: border-box;
}

/* Clase genérica */
.section-cols-custom {
  display: grid;
  /* El primer valor lo define la variable --col-width, el segundo ocupa el resto */
  grid-template-columns: var(--col-width, 50%) 1fr;
  /* gap: 20px; */
  align-items: center;
}

/* Aplicación específica para 30% */
.section-cols-30-70 {
  --col-width: 30%;
}

/* Aplicación específica para 40% */
.section-cols-40-60 {
  --col-width: 40%;
}

.section-cols-custom .col {
  padding: 20px;
}

.section-cols-3 .col {
  flex: 1 1 30%; /* cada columna ocupa aprox 1/3 */
  min-width: 250px; /* evita que se haga demasiado estrecha */
  padding: 20px;
  box-sizing: border-box;
}

.section-cols-4 .col {
  flex: 1 1 20%; /* cada columna ocupa aprox 1/4 */
  min-width: 200px; /* evita que se haga demasiado estrecha */
  padding: 20px;
  box-sizing: border-box;
}

.mw-800 {
  max-width: 800px;
  margin: auto;
}

.mw-1000 {
  max-width: 1000px;
  margin: auto;
}

.mw-1200 {
  max-width: 1200px;
  margin: auto;
}

.mv-50 {
  margin: 50px auto;
}

.mv-100 {
  margin: 100px auto;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-50 {
  margin-bottom: 50px;
}

.mb-100 {
  margin-bottom: 100px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-30 {
  margin-top: 30px;
}

.g-30 {
  gap: 30px;
}

/* En móviles se apilan una debajo de otra */
@media (max-width: 768px) {
  .section-cols-custom {
    grid-template-columns: 1fr;
  }
}

/* Encabezados personalizados */

.subtitulo-intermedio {
  text-align: center;
  font-size: 1.8em;
  line-height: 1.5em;
  font-weight: 400;
  font-family: "Raleway";
  color: #333;
}

/* Bloques de texto */

.text-block {
  margin-top: 50px;
  padding: 20px;

  /* Light background for contrast */
}

.text-block .prose {
  color: #222;
  /* Darker text for better readability */
}

.text-block {
  background-color: #ddd;
  /* Darker text for better readability */
}

.text-block-wtitle {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  /* Light background for contrast */
  background-color: transparent;
}

.text-block-wtitle h2 {
}

.text-block-wtitle .prose {
  color: #222;
  /* Darker text for better readability */
}

.text-box-quote {
  font-size: 0.9em;
  font-style: italic;
}

.text-small {
  font-size: 0.8rem;
}

.text-muted {
  color: var(--color-muted);
}

.text-featured {
  font-size: 1.2em;
}

.text-centered {
  text-align: center;
}

/* FA --------------- */

.fas::before {
  content: var(--fa);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
}

.fa-arrow-alt-circle-right,
.fa-circle-right {
  --fa: "\f35a";
}

/* Mensajes ------ */
/* Mensajes de Alerta Flash globales */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px auto;
  width: 100%;
  max-width: 1000px;
  font-size: 0.9rem;
}

.alert:empty {
  display: none;
}

.alert-danger {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.alert-success {
  background-color: var(--color-light);
  color: var(--color-accent);
  border: 1px solid var(--color-low);
}

/* Accesos */
.public,
.private,
.protected {
  display: none;
}

.public .public,
.protected .protected,
.private,
.private {
  display: inherit;
}
