/* Efecto Zoom del 10% para las 4 fotos de portada */
.caja-imagen { overflow: hidden; display: block; }
.caja-imagen img { transition: transform 0.4s ease-in-out; width: 100%; }
.caja-imagen:hover img { transform: scale(1.08); }

/* Arreglo para que los menús de Bottom salgan en vertical independientemente de su estructura HTML */
#sp-bottom1 ul, #sp-bottom2 ul, #sp-bottom3 ul, #sp-bottom4 ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

#sp-bottom1 li, #sp-bottom2 li, #sp-bottom3 li, #sp-bottom4 li {
    display: block !important;
    margin-bottom: 12px !important;
}

/* Forzar que los enlaces sean bloques y tengan margen, por si Joomla dejó de escupir <li> */
div[id^="sp-bottom"] a {
    display: block !important;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    margin-bottom: 12px !important;
}

div[id^="sp-bottom"] a:hover {
    color: #e63946 !important;
    padding-left: 5px !important;
}

/* ---------- Obras Realizadas Card Styles ---------- */
:root {
  --primary-h: 210;
  --primary-s: 55%;
  --primary-l: 45%;
}

.obra-card {
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
  margin-bottom: 2rem;
}
.obra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
}

.obra-images {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.obra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s;
}
.obra-img.after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.obra-card:hover .obra-img.after {
  opacity: 1;
}

.obra-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: .8rem;
  text-align: center;
  color: #333;
}

.obra-btn {
  display: inline-block;
  margin: .5rem auto 1rem;
  padding: .5rem 1.2rem;
  background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background .3s;
}
.obra-btn:hover {
  background: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 5%));
}
