
body { font-family: system-ui, sans-serif; }
.card:hover { transform: translateY(-5px); transition: .2s; }

/* Menu - estilo */
#logo {
  height: 30px;
}

.navbar .nav-link {
    font-size: 1.25rem;
}

:root {
    --bs-success-rgb: 135, 175, 74; /* #87af4a */
}

.navbar .nav-link {
    color: #ffffff;
}

.navbar .nav-link:hover {
    color: #c45824;
}

/* Botones - estilo */
.btn-outline-success {
  color: #87af4a;
  border-color: #87af4a;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-success:hover {
  background-color: #c45824;
  border-color: #c45824;
  color: #fff;
}

.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success:focus-visible {
  background-color: #87af4a;
  border-color: #87af4a;
  color: #fff;
  box-shadow: none;
}

/* Boton principal inicio (historia) */
.section-inicio .btn-historia {
  background-color: #87af4a;
  color: #fff;
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
  border: none;
}

.section-inicio .btn-historia:hover {
  background-color: #c45824;
  color: #fff;
}

/* Primera sección con imagen de fondo */
.section-inicio {
  position: relative;
  background-color: #87af4a;
  padding: 0;
}

.inicio-bg {
  position: relative;
  margin: 0 0rem;
  aspect-ratio: 16 / 7;
  background-image: url("img/teleno_nevado.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  z-index: 0;
}

.inicio-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.inicio-bg .container {
  position: relative;
  z-index: 2;
}

/* Seccion media */

.card img {
  object-fit: cover;
}

.section-media .card {
  min-height: 400px;
}

/* Segunda sección tamaño de imágenes */
.card-img-top {
  height: 220px;
  object-fit: cover;
}

/* ============================= */
/* MENÚ LATERAL PATRIMONIO       */
/* ============================= */

.menu-lateral {
  background: linear-gradient(180deg, #e9f5ee, #f6fbf8);
  border-right: 1px solid #cfe6d8;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
  min-height: 100%;
}

.menu-lateral h5 {
  color: #2f6f4f;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border-bottom: 2px solid #b6dcc7;
  padding-bottom: 0.5rem;
}

/* enlaces principales */
.menu-lateral .nav-link {
  color: #2f6f4f;
  padding: 0.4rem 1rem;
  margin: 0.15rem 0;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

/* hover */
.menu-lateral .nav-link:hover {
  background-color: #d9efe4;
  color: #1f4d38;
  padding-left: 1.25rem;
}

/* enlaces de nivel principal */
.menu-lateral .fw-semibold {
  color: #1f4d38;
}

/* submenús */
.menu-lateral ul ul {
  border-left: 3px solid #b6dcc7;
  margin-left: 0.75rem;
  padding-left: 0.5rem;
}

.menu-lateral ul ul .nav-link {
  font-size: 0.9rem;
  color: #3c7a5a;
}

/* enlace activo (cuando estés en esa página) */
.menu-lateral .nav-link.active {
  background-color: #2f6f4f;
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* noticias destacadas */
.menu-lateral .text-success {
  color: #1f4d38 !important;
}

/* ============================= */
/* TÍTULO PRINCIPAL DE PÁGINA    */
/* ============================= */

.titulo-principal {
  text-align: center;
  color: #2f6f4f;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

/* línea decorativa inferior */
.titulo-principal::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #b6dcc7;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ============================= */
/* SUBTÍTULOS DE SECCIÓN         */
/* ============================= */

main h2 {
  color: #1f4d38;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 5px solid #b6dcc7;
}

main h3 {
  color: #3c7a5a;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 95vw;   /* 95% del ancho de la ventana */
    max-height: 95vh;  /* 95% del alto de la ventana */
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555; /* puedes cambiarlo si está sobre fondo azul */
    font-style: italic;
}

.flora-fichas {
    max-width: 1000px;   /* controla tamaño máximo */
    margin: 0 auto;      /* centra el bloque */
}

.ficha-card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.ficha-card img {
    width: 100%;
    height: auto;
    display: block;
}

