/*
Theme Name: Ayto La Solana
Theme URI: https://www.cim.es
Author: CIM Internet S.L.
Author URI: https://www.cim.es
Description: Tema hijo personalizado para el Ayuntamiento de La Solana.
Template: hello-elementor
*/

@import url("../hello-elementor/style.css");

/* Custom CSS here */

/* ----------------------------------------------------
   ENCABEZADO INSTITUCIONAL – versión refinada
   Clase: .encabezado-1
------------------------------------------------------- */

.encabezado-1 {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 24px !important;
  font-weight: 600;
  background: #edea8f;
  padding: 10px 22px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  position: relative;
  transition: transform 0.25s ease;
  z-index: 1;
}

.encabezado-1::before {
  content: "";
  position: absolute;
  height: 70%;
  width: 3px;
  left: -6px;
  top: 15%;
  background: #1ca3ec;
  border-radius: 4px;
  z-index: -1;
}

.encabezado-1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-25deg);
  transition: all 0.45s ease;
  opacity: 0;
  z-index: 2;
}

.encabezado-1:hover {
  transform: translateX(4px);
}

.encabezado-1:hover::after {
  left: 120%;
  opacity: 1;
}

.encabezado-1 h2 {
  font-size: 24px !important;
  color: #002e5b !important;
}



/* MENU ADVANCED MEGA MENU*/
/* Padding del menú principal (nivel 1) */
#mega-menu-wrap-menu-1 .mega-menu>li.mega-menu-item>a.mega-menu-link {
  padding: 5px 20px !important;
}

/* Padding del segundo nivel */
#mega-menu-wrap-menu-1 .mega-sub-menu li.mega-menu-item>a.mega-menu-link {
  padding: 0px 18px !important;
}

#mega-menu-wrap-menu-1 .mega-sub-menu {
  width: 300px !important;
}

/* ===== MENÚ DESPLEGABLE – NIVELES 2 Y 3 ===== */

/* Nivel 2 */
#mega-menu-wrap-menu-1 .mega-menu>li>.mega-sub-menu {
  width: 270px !important;
}

/* Nivel 3 */
#mega-menu-wrap-menu-1 .mega-sub-menu .mega-sub-menu {
  width: 220px !important;
}

/* Separadores entre elementos del segundo nivel */
#mega-menu-wrap-menu-1 .mega-sub-menu>li.mega-menu-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

#mega-menu-wrap-menu-1 .mega-sub-menu>li.mega-menu-item:last-child {
  border-bottom: none !important;
}

/* MENU ADVANCED MEGA MENU*/

/* Tarjetas institucionales – Ayuntamiento de La Solana */
.tarjeta-ayto {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-ayto:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.tarjeta-ayto .titulo {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #002e5b;
  margin-bottom: 12px;
}

.tarjeta-ayto ul {
  padding-left: 20px;
  margin: 0 0 16px 0;
}

.tarjeta-ayto ul li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #111;
  font-family: 'Inter', sans-serif;
}

.tarjeta-ayto .btn-mas {
  display: inline-block;
  padding: 8px 16px;
  background: #005fa3;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: background 0.25s ease;
}

.tarjeta-ayto .btn-mas:hover {
  background: #1ca3ec;
}


/* Separador institucional para <hr> */
.hr-als {
  display: block !important;
  border: none;
  height: 2px;
  width: 80%;
  margin: 32px auto !important;

  background: linear-gradient(90deg, #002e5b, #1ca3ec);
  opacity: 0.45;
  border-radius: 4px;
}

/* Accesos directos – Ayuntamiento de La Solana */
.acceso-directo {
  background: #005fa3;
  /* Azul medio institucional */
  color: #ffffff !important;
  border-radius: 8px;
  padding: 40px 30px !important;
  /* Mucho más aire */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

@media (max-width: 767px) {
  .acceso-directo {
    padding: 25px 15px !important;
  }
}

.acceso-directo.reducido {
  padding: 15px !important;
  border-radius: 8px !important;
  gap: 6px !important;
}

.acceso-directo.reducido .elementor-icon svg {
  width: 26px !important;
  height: 26px !important;
}

/* HOVER */
.acceso-directo:hover {
  background: #002e5b;
  /* Azul oscuro */
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ICONO */
.acceso-directo .elementor-icon svg {
  fill: #ffffff !important;
  width: 42px !important;
  height: 42px !important;
}

/* TITULO */
.acceso-directo .titulo-acceso h2,
.acceso-directo .titulo-acceso h3,
.acceso-directo .titulo-acceso .elementor-heading-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 20px !important;
  font-weight: 500;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.3;
}


/* Cards de Anuncios Municipales – Ayto La Solana */
.card-anuncio {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.card-anuncio:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-anuncio .titulo-anuncio {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #002e5b;
  margin: 0;
}

.card-anuncio .descripcion-anuncio {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #333;
  line-height: 1.45;
}

.card-anuncio .fecha-anuncio {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #666;
}

.card-anuncio .link-anuncio,
.card-anuncio h3 {
  margin-top: auto;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: #005fa3;
}

.btn-transparencia {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #005fa3;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s ease;
}

.btn-transparencia:hover {
  background: #002e5b;
}

.btn-transparencia i {
  font-size: 15px;
}

.carrusel-logos img {
  height: 120px !important;
  width: auto;
  object-fit: contain;
}



/* Placeholder SOLO para posts de Elementor sin imagen */
.elementor-post:not(:has(.elementor-post__thumbnail))::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url('/wp-content/themes/ayto-la-solana-child/assets/images/placeholder-noticia.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f4f6;
  margin-bottom: 16px;
}