/* ============================================================
   Espacio Verde — ajustes propios (modernización sutil)
   Se carga DESPUÉS de style.css y colors/green.css.
   No reestructura el tema: solo añade aire, sombras y micro-
   interacciones coherentes con la paleta verde de la marca.
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* --- Tarjetas: elevación y transición suave al pasar el ratón --- */
.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 3rem rgba(58, 138, 52, 0.18) !important;
}

/* --- Imágenes con zoom contenido dentro de su marco --- */
.card figure,
.project figure,
figure.overlay {
  overflow: hidden;
}
.card .card-img-top img,
.project figure img {
  transition: transform 0.6s ease;
}
.card:hover .card-img-top img,
.project figure:hover img {
  transform: scale(1.05);
}

/* --- Botones: micro-interacción --- */
.btn {
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(58, 138, 52, 0.35);
  transform: translateY(-2px);
}

/* --- Listas de proyectos: que la tarjeta entera invite a entrar --- */
.project .post-title a {
  transition: color 0.25s ease;
}
.project .post-title a:hover {
  color: var(--bs-primary) !important;
}

/* ============================================================
   Ficha de proyecto — galería con slideshow (glightbox)
   ============================================================ */
.proyecto-galeria .gal-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(30, 34, 40, 0.08);
}
.proyecto-galeria .gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s ease;
}
.proyecto-galeria .gal-item:hover img {
  transform: scale(1.06);
}
/* Velo verde al pasar el ratón */
.proyecto-galeria .gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(58, 138, 52, 0);
  transition: background 0.35s ease;
}
.proyecto-galeria .gal-item:hover::after {
  background: rgba(58, 138, 52, 0.4);
}

/* Vídeos: sin velo extra y con botón de play siempre visible */
.proyecto-galeria .gal-video:hover::after {
  background: rgba(58, 138, 52, 0.15);
}
.proyecto-galeria .gal-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.proyecto-galeria .gal-play i {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(58, 138, 52, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
}

/* Datos del proyecto (modelo, metros, localidad) */
.proyecto-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}
.proyecto-meta li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--bs-border-soft-primary);
}
.proyecto-meta li i {
  color: var(--bs-primary);
  font-size: 1.25rem;
}

/* ============================================================
   Logos institucionales del pie (UE, Plan de Recuperación,
   Gobierno de España): misma altura para que se vean
   proporcionados entre sí.
   ============================================================ */
.logo-inicio {
  max-height: 62px;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* ============================================================
   Sección CTA con gradiente (home): armonizada al verde de la
   marca; antes iba a un verde lima-oliva (#5a9100) que no pegaba.
   ============================================================ */
.gradient-8 {
  background-image: linear-gradient(135deg, #3a8a34 0%, #2f7029 100%) !important;
}
