/* Tipografía general */
:root {
  --primary-color: #204080;
  --secondary-color: #1b376d;
  --hover-color: #1a3360;
  --shadow-color: rgba(32, 64, 128, 0.1);
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9fb;
  color: #333;
  line-height: 1.6;
}

/* ================================================================== */
/* Estructura Principal y Fondo Personalizado
/* ================================================================== */

.mybody {
  /* --- 1. Propiedades de la solución Flexbox (Estructura) --- */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* CRÍTICO: Reemplaza height: 90vh */

  /* --- 2. Propiedades de tu diseño (Estética) --- */
  background: url("/assets/img/altaenelcielo.jpg") center/cover no-repeat;
  position: relative; /* Necesario para el posicionamiento del overlay */
}

/* Capa de superposición para oscurecer el fondo */
.mybody::after {
  content: "";
  position: absolute; /* Se posiciona sobre el body */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Cubre el 100% del body */
  background: rgba(0, 0, 0, 0.3);
  z-index: -1; /* CRÍTICO: Se envía DETRÁS del contenido del body */
}

/* Regla para que el contenido principal crezca y ocupe el espacio */
main {
  flex: 1;
}

/* Encabezados */
h1,
h2,
h3 {
  font-weight: 600;
  color: var(--primary-color);
}

.h1-header {
  color: #fff !important;
}
/* Navbar personalizada (si luego se usa una) */
.navbar {
  background-color: var(--primary-color);
}

.navbar-brand,
.nav-link {
  color: #fff !important;
}

/* Botones */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  border-color: var(--secondary-color);
}

/* Tarjetas de servicios */
.card {
  border: none;
  border-radius: 1rem;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(32, 64, 128, 0.1);
}

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

/* Formulario */
form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(32, 64, 128, 0.25);
}

/* Mensajes */
.alert-success,
.alert-danger {
  border-radius: 0.5rem;
}

.hero {
  height: 90vh;
  background: url("/assets/img/altaenelcielo.jpg") center/cover no-repeat;
  background-color: #001840;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}

/* .mybody {
  height: 90vh;
  background: url("/assets/img/altaenelcielo.jpg") center/cover no-repeat;
  position: relative;
}

.mybody::after {
  content: "";
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
} */

.transpar {
  background-color: rgba(32, 64, 128, 0.25);
}

input.is-invalid,
textarea.is-invalid {
  border: 1px solid #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/*------------------------------------------------
  Estilos para la imagen destacada del artículo
--------------------------------------------------*/

/* Contenedor de la imagen en la página del artículo */
.articulo-imagen-destacada {
  max-height: 450px; /* Altura máxima en pantallas de escritorio */
  width: 100%;
  overflow: hidden; /* Oculta las partes de la imagen que se desborden */
  border-radius: 0.75rem; /* Bordes redondeados consistentes */
}

.articulo-imagen-destacada img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La magia está aquí: la imagen cubre el espacio sin deformarse */
  object-position: center; /* Centra la imagen, útil si se recorta */
}

/* Para pantallas de móvil (ancho menor a 768px), quitamos la restricción de altura */
@media (max-width: 768px) {
  .articulo-imagen-destacada {
    max-height: none;
  }
}

/*------------------------------------------------
  Fondo de nubes para la barra de navegación
--------------------------------------------------*/

.navbar.bg-primary-blog {
  background-color: #204080; /* Color de respaldo si la imagen falla */
  background-image: url("../img/nubes-bg.jpg"); /* Ruta a tu imagen */
  background-size: cover; /* Asegura que la imagen cubra todo el espacio */
  background-position: center center;
  background-repeat: no-repeat; /* O 'repeat' si usas un patrón sin costuras */
}

/*------------------------------------------------
  Estilos para el ajustador de tamaño de letra
--------------------------------------------------*/

/* Nos aseguramos que el texto principal use unidades relativas 'rem' */
body {
  font-size: 1rem; /* Por defecto, esto equivale a 16px */
}

/* El JavaScript añadirá estas clases al <html> para cambiar el tamaño de todo */
html.font-size-small {
  font-size: 14px;
}

html.font-size-large {
  font-size: 18px;
}

html.font-size-xlarge {
  font-size: 20px;
}

/* Un pequeño ajuste para que los botones se vean bien */
#font-controls-container button {
  line-height: 1.2;
}

.nota a {
  text-decoration: none;
  font-weight: 600;
}

.nota a:hover {
  color: #3f3e0d;
  background-color: #fff;
}
