/* ==========================================================
   Theme Bootstrap - Esparza Informativa / Directorio Cantonal
   Paleta inspirada en la referencia compartida:
   crema claro, verde/teal institucional, naranja de acento y turquesa.
   Aplicado globalmente al frontend, backend, login y registro.
   ========================================================== */
:root{
  --muni-crema:#FFF7D6;
  --muni-crema-2:#FFF1BF;
  --muni-teal:#0D5555;
  --muni-teal-2:#073F3F;
  --muni-teal-3:#116A68;
  --muni-turquesa:#00A98F;
  --muni-naranja:#F5A35B;
  --muni-naranja-2:#FFB977;
  --muni-texto:#073F3F;
  --muni-texto-2:#355857;
  --muni-borde:#E9DFAE;
  --muni-blanco:#FFFFFF;
  --muni-sombra:0 10px 26px rgba(13,85,85,.14);

  --bs-primary:var(--muni-teal);
  --bs-secondary:var(--muni-naranja);
  --bs-success:var(--muni-turquesa);
  --bs-warning:var(--muni-naranja);
  --bs-body-bg:var(--muni-crema);
  --bs-body-color:var(--muni-texto);
  --bs-link-color:var(--muni-teal);
  --bs-link-hover-color:var(--muni-turquesa);
  --bs-border-radius:1rem;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top right, rgba(0,169,143,.10), transparent 32%),
    linear-gradient(180deg,#fffbe8 0%,var(--muni-crema) 32%,#fff9df 100%);
  color:var(--muni-texto);
  line-height:1.45;
}
a{color:var(--muni-teal);text-decoration:none;font-weight:600}
a:hover{color:var(--muni-turquesa)}

/* Barra superior institucional */
.top{
  background:var(--muni-teal);
  color:#fff;
  padding:14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  box-shadow:0 3px 16px rgba(0,0,0,.18);
  border-bottom:5px solid var(--muni-naranja);
}
.top strong{
  font-size:1.05rem;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:8px;
}
.top strong:before{
  content:"";
  width:28px;
  height:28px;
  background:linear-gradient(135deg,var(--muni-naranja),var(--muni-turquesa));
  border-radius:8px;
  display:inline-block;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.30);
}
.top nav{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.top a{
  color:#fff!important;
  padding:8px 12px;
  border-radius:4px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  font-weight:700;
}
.top a:hover,.top a.active{
  background:var(--muni-naranja);
  color:#073F3F!important;
  border-color:var(--muni-naranja);
}

.container{width:min(1180px,94%);margin:24px auto}
.card{
  background:#fffef7;
  border:1px solid var(--muni-borde);
  border-radius:18px;
  padding:24px;
  margin-bottom:20px;
  box-shadow:var(--muni-sombra);
}
.card-municipal{border:1px solid var(--muni-borde);border-radius:18px;box-shadow:var(--muni-sombra);background:#fffef7}

h1,h2,h3{color:var(--muni-teal);margin-top:0;font-weight:850}
h1{letter-spacing:-.02em}.muted,.small-help,small{color:var(--muni-texto-2)}.stars{color:#F2A000;font-size:1.1rem}

.hero,.municipal-hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--muni-teal) 0%,var(--muni-teal-3) 62%,var(--muni-turquesa) 100%);
  color:white;
  border-radius:22px;
  padding:32px;
  margin-bottom:22px;
  box-shadow:var(--muni-sombra);
  border-bottom:6px solid var(--muni-naranja);
}
.hero:after,.municipal-hero:after{
  content:"";
  position:absolute;
  right:-70px;
  top:-70px;
  width:230px;
  height:230px;
  background:rgba(245,163,91,.22);
  border-radius:50%;
}
.hero h1,.hero h2,.hero h3,.municipal-hero h1,.municipal-hero h2,.municipal-hero h3{color:#fff}.hero p,.municipal-hero p{max-width:850px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
label{display:block;font-weight:750;margin:10px 0 6px;color:var(--muni-teal-2)}
input,select,textarea,.form-control,.form-select{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--muni-borde);
  border-radius:12px;
  background:#fff;
  color:var(--muni-texto);
  font-size:1rem;
}
textarea{min-height:95px;resize:vertical}
input:focus,select:focus,textarea:focus,.form-control:focus,.form-select:focus{
  outline:0;
  border-color:var(--muni-turquesa);
  box-shadow:0 0 0 .22rem rgba(0,169,143,.17);
}

.btn,button.btn,.btn-municipal{
  display:inline-block;
  background:var(--muni-teal);
  color:white!important;
  border:0;
  border-radius:6px;
  padding:10px 18px;
  margin-top:12px;
  cursor:pointer;
  font-weight:750;
  box-shadow:0 4px 12px rgba(13,85,85,.16);
}
.btn:hover,.btn-municipal:hover{background:var(--muni-teal-3);color:#fff!important}
.btn.alt,.btn-secondary{background:#607D7D}.btn.ok,.btn-success{background:var(--muni-turquesa);color:#073F3F!important}.btn.danger,.btn-danger{background:#b02a37}.btn.vino,.btn-municipal-sec,.btn-warning{background:var(--muni-naranja);color:#073F3F!important}.btn.vino:hover,.btn-municipal-sec:hover,.btn-warning:hover{background:var(--muni-naranja-2);color:#073F3F!important}

.msg-ok,.alert-success{background:#DDF7EF;color:#075444;border:1px solid #A7E9D8;padding:12px;border-radius:12px;margin:12px 0}.msg-error,.alert-danger{background:#F8D7DA;color:#842029;border:1px solid #f5c2c7;padding:12px;border-radius:12px;margin:12px 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.qr{max-width:100%;height:auto}.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse;min-width:760px;background:#fffef7}th,td{padding:12px;border-bottom:1px solid #eee3b7;text-align:left;vertical-align:top}th{background:var(--muni-teal);color:#fff;font-weight:800}.form-section,.titulo-seccion{border-left:7px solid var(--muni-naranja);padding-left:14px;margin:24px 0 14px;color:var(--muni-teal)}
.form-check{display:flex;align-items:flex-start;gap:9px;margin:8px 0}.form-check input,.form-check-input{width:auto;margin-top:3px}.form-check-input:checked{background-color:var(--muni-turquesa);border-color:var(--muni-turquesa)}

.access{width:min(1180px,94%);margin:12px auto 0;display:flex;gap:8px;flex-wrap:wrap}.access .btn{margin-top:0;padding:8px 13px;font-size:.93rem}
.footer,.footer-municipal{background:var(--muni-teal);color:white;padding:18px;text-align:center;margin-top:30px;border-top:5px solid var(--muni-naranja)}
.badge-municipal{background:var(--muni-turquesa);color:#073F3F;border-radius:999px;padding:.35rem .65rem;font-weight:800}.section-soft{background:#fffef7;border:1px solid var(--muni-borde);border-radius:18px;padding:18px}

/* Bloques tipo categoría/directorio */
.category-card,.service-card{
  background:#fffef7;
  border:1px solid var(--muni-borde);
  border-radius:8px;
  box-shadow:0 6px 18px rgba(13,85,85,.08);
  transition:.2s ease;
}
.category-card:hover,.service-card:hover{
  transform:translateY(-2px);
  border-color:var(--muni-turquesa);
  box-shadow:0 10px 26px rgba(13,85,85,.16);
}
.category-icon,.service-icon{color:var(--muni-turquesa)}

@media (max-width: 992px){.grid-3{grid-template-columns:1fr 1fr}}
@media (max-width: 768px){.top{align-items:flex-start;padding:14px}.top nav{display:flex;flex-direction:column;width:100%;gap:6px}.top a{width:100%;text-align:center}.container{width:96%;margin:14px auto}.card{padding:16px;border-radius:14px}.grid,.grid-3{grid-template-columns:1fr}h1{font-size:1.55rem}h2{font-size:1.3rem}.btn{width:100%;text-align:center}.actions .btn{width:auto}.hero,.municipal-hero{padding:22px;border-radius:16px}.hide-mobile{display:none}}
@media (max-width: 480px){body{font-size:15px}.top{padding:12px}.card{padding:14px}input,select,textarea{font-size:16px}.actions{flex-direction:column}.actions .btn{width:100%}table{min-width:720px}}

/* Accesibilidad */
body.high-contrast{background:#000;color:#fff}body.high-contrast .card,body.high-contrast input,body.high-contrast select,body.high-contrast textarea,body.high-contrast table{background:#111;color:#fff;border-color:#fff}body.high-contrast h1,body.high-contrast h2,body.high-contrast h3,body.high-contrast a{color:#ffdd57}body.big-text{font-size:120%}

/* QR del servicio: tamaño reducido + acciones */
.qr-service{width:120px;max-width:120px;height:auto;object-fit:contain;}
.qr-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:10px;}
.qr-box{text-align:center;margin:14px 0 22px;}
.qr-box small{display:block;margin-top:6px;}
@media (max-width:768px){.qr-service{width:90px;max-width:90px;}.qr-actions .btn{width:auto;}}

/* Carrusel de imágenes de servicios */
.service-carousel .carousel-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}
.service-gallery-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
}
.service-image-admin {
  width: 92px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}
@media (max-width: 768px) {
  .service-carousel .carousel-item img {
    height: 220px;
  }
}

/* Categorías, subcategorías y características */
.features-list{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 18px;}
.features-list.mini{gap:6px;margin:8px 0 12px;}
.feature-badge{display:inline-flex;align-items:center;gap:6px;background:#fff7d6;border:1px solid #ead27c;color:#073F3F;border-radius:999px;padding:7px 11px;font-weight:800;font-size:.92rem;box-shadow:0 3px 8px rgba(13,85,85,.08);}
.feature-icon{font-size:1.1rem;line-height:1;}
.feature-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;}
.feature-admin-option{display:flex;align-items:center;gap:8px;background:#fffef7;border:1px solid var(--muni-borde);border-radius:12px;padding:10px;cursor:pointer;}
.feature-admin-option input{width:auto;}
.feature-admin-option:hover{border-color:var(--muni-turquesa);box-shadow:0 5px 14px rgba(13,85,85,.10);}

/* Iconos de características: fuerza dimensiones uniformes para imágenes cargadas */
.feature-icon-preview{
  width:28px;
  height:28px;
  min-width:28px;
  max-width:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:6px;
  background:#fff;
}
.feature-icon-img{
  width:28px !important;
  height:28px !important;
  max-width:28px !important;
  max-height:28px !important;
  object-fit:contain;
  display:block;
  vertical-align:middle;
  border-radius:5px;
}
.features-list .feature-icon-preview{width:22px;height:22px;min-width:22px;max-width:22px;}
.features-list .feature-icon-img{width:22px !important;height:22px !important;max-width:22px !important;max-height:22px !important;}
.admin-feature-badge{min-width:48px;justify-content:center;}


.icon-grid-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;}
.icon-card{background:#fffef7;border:1px solid var(--muni-borde);border-radius:14px;padding:12px;text-align:center;box-shadow:0 4px 10px rgba(13,85,85,.08);}
.icon-card.disabled{opacity:.55;filter:grayscale(1);}
.icon-big{font-size:2rem;line-height:1.2;margin-bottom:6px;}
.icon-card small{display:block;color:#5c706f;margin:4px 0 10px;}

.pagination-bar{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:12px 0;flex-wrap:wrap;}
.icon-big{font-size:2rem;line-height:1.2;margin-bottom:6px;}

/* Fix específico para iconos de características en backend/servicios.php */
.backend-servicios-page .feature-admin-option img,
.backend-servicios-page .feature-icon-img,
.backend-servicios-page img.feature-icon-img{
  width:28px !important;
  height:28px !important;
  max-width:28px !important;
  max-height:28px !important;
  object-fit:contain !important;
  display:inline-block !important;
  flex:0 0 28px !important;
  border-radius:5px;
}
.backend-servicios-page .feature-icon-preview{
  width:28px !important;
  height:28px !important;
  max-width:28px !important;
  max-height:28px !important;
  min-width:28px !important;
  overflow:hidden !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 28px !important;
}


/* Fix final frontend: imágenes cargadas como iconos de características */
.frontend-features .feature-badge,
.features-list .feature-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:normal;
}
.frontend-features .feature-icon-preview,
.features-list .feature-icon-preview{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  flex:0 0 22px !important;
}
.frontend-features img.feature-icon-img,
.features-list img.feature-icon-img,
.servicio-card img.feature-icon-img,
img.feature-icon-img{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  object-fit:contain !important;
  display:inline-block !important;
  vertical-align:middle !important;
  flex:0 0 22px !important;
  border-radius:4px !important;
}


/* ==========================================================
   Encabezado visual Turismo Inteligente - Opción 7 v222
   Actualización: banner Redescubra Esparza con ondas azules y celestes; nombre nuevo para evitar caché.
   Mantiene la funcionalidad; solo afecta el bloque visual del header.
   ========================================================== */
body > .ti-visual-header,
.ti-visual-header{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  line-height:0 !important;
  overflow:hidden !important;
  background:transparent !important;
  border:0 !important;
  min-height:0 !important;
  height:auto !important;
}
.ti-visual-header img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  object-fit:contain !important;
  object-position:center top !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  vertical-align:top !important;
}
.top + .ti-visual-header,
.ti-visual-header + .access,
.ti-visual-header + .container{
  margin-top:0 !important;
}
.ti-visual-header + .access{
  padding-top:8px !important;
}
@media (max-width: 768px){
  .ti-visual-header img{
    width:100% !important;
    height:auto !important;
  }
  .top{
    gap:8px;
  }
}

/* ==========================================================
   Footer institucional Bootstrap - Opción 2
   Prefijado para no afectar la funcionalidad ni otros estilos.
   ========================================================== */
.ti-bs-footer{
  width:100% !important;
  margin:40px 0 0 0 !important;
  padding:0 !important;
  background:linear-gradient(90deg,#003f73 0%,#005f68 48%,#08733f 100%) !important;
  border-top:5px solid #f7941d !important;
  color:#fff !important;
  overflow:hidden !important;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  line-height:1.45 !important;
}
.ti-bs-footer *{box-sizing:border-box !important;}
.ti-bs-footer .ti-bs-footer-container{
  width:min(1280px,94%) !important;
  margin:0 auto !important;
  padding:28px 0 !important;
}
.ti-bs-footer .ti-bs-footer-row{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:28px !important;
  align-items:stretch !important;
}
.ti-bs-footer .ti-bs-footer-card{
  height:100% !important;
  min-height:135px !important;
  padding:24px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.08) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.18) !important;
  border:1px solid rgba(255,255,255,.06) !important;
  color:#fff !important;
}
.ti-bs-footer .ti-bs-footer-card--green{
  background:rgba(63,160,78,.25) !important;
}
.ti-bs-footer .ti-bs-footer-item{
  display:flex !important;
  gap:16px !important;
  align-items:flex-start !important;
}
.ti-bs-footer .ti-bs-footer-icon{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#fff !important;
  font-size:1.45rem !important;
  line-height:1 !important;
  box-shadow:0 6px 16px rgba(0,0,0,.16) !important;
}
.ti-bs-footer .ti-icon-blue{background:#0d6efd !important;}
.ti-bs-footer .ti-icon-cyan{background:#0dcaf0 !important;}
.ti-bs-footer .ti-icon-green{background:#198754 !important;}
.ti-bs-footer h6{
  margin:0 0 30px 0 !important;
  color:#fff !important;
  font-weight:800 !important;
  font-size:1rem !important;
}
.ti-bs-footer p{
  margin:0 0 8px 0 !important;
  color:#fff !important;
  font-size:.94rem !important;
  line-height:1.6 !important;
}
.ti-bs-footer a{
  color:#fff !important;
  text-decoration:none !important;
  font-weight:600 !important;
}
.ti-bs-footer a:hover{color:#ffcc80 !important;}
.ti-bs-footer .ti-social-list{
  display:flex !important;
  gap:14px !important;
  margin-top:14px !important;
  flex-wrap:wrap !important;
}
.ti-bs-footer .ti-social-btn{
  width:46px !important;
  height:46px !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#fff !important;
  font-size:1.45rem !important;
  line-height:1 !important;
  transition:transform .25s ease, filter .25s ease !important;
  box-shadow:0 8px 18px rgba(0,0,0,.18) !important;
}
.ti-bs-footer .ti-social-btn:hover{
  transform:translateY(-4px) !important;
  filter:brightness(1.08) !important;
}
.ti-bs-footer .ti-social-facebook{background:#1877f2 !important;}
.ti-bs-footer .ti-social-messenger{background:#0084ff !important;}
.ti-bs-footer .ti-social-instagram{background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;}
.ti-bs-footer .ti-social-whatsapp{background:#25d366 !important;}
.ti-bs-footer .ti-bs-footer-bottom{
  margin:0 !important;
  padding:15px 12px !important;
  background:rgba(0,0,0,.18) !important;
  border-top:1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  text-align:center !important;
  font-size:.95rem !important;
}
@media(max-width: 991px){
  .ti-bs-footer .ti-bs-footer-row{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width: 767px){
  .ti-bs-footer{margin-top:28px !important;}
  .ti-bs-footer .ti-bs-footer-container{padding:22px 0 !important;}
  .ti-bs-footer .ti-bs-footer-row{grid-template-columns:1fr !important;gap:18px !important;}
  .ti-bs-footer .ti-bs-footer-card{text-align:center !important;padding:22px !important;}
  .ti-bs-footer .ti-bs-footer-item{flex-direction:column !important;align-items:center !important;text-align:center !important;}
  .ti-bs-footer .ti-social-list{justify-content:center !important;}
}

/* ==========================================================
   Ajuste catálogo frontend: imágenes uniformes y carrusel
   ========================================================== */
.servicio-card{
  display:flex;
  flex-direction:column;
}
.servicio-card-carousel{
  width:100%;
  height:300px;
  overflow:hidden;
  border-radius:14px;
  background:#eef7f3;
  margin:12px 0 10px;
  box-shadow:0 8px 18px rgba(13,85,85,.12);
}
.servicio-card-carousel .carousel-inner,
.servicio-card-carousel .carousel-item{
  height:100%;
}
.servicio-card-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
.servicio-card-control{
  width:12%;
  opacity:.85;
}
.servicio-card-indicators{
  margin-bottom:.35rem;
}
.servicio-card-indicators [data-bs-target]{
  width:8px;
  height:8px;
  border-radius:50%;
}
@media(max-width:991px){
  .servicio-card-carousel{height:260px;}
}
@media(max-width:576px){
  .servicio-card-carousel{height:220px;}
}


/* ==========================================================
   Ajuste v31 catálogo frontend: tarjetas parejas, carrusel uniforme
   Recomendación de carga: 1200x675 px (16:9) o 1024x576 px.
   ========================================================== */
.servicio-card{
  display:flex !important;
  flex-direction:column !important;
  min-height:100% !important;
}
.servicio-card h3{
  min-height:2.4em !important;
  margin-bottom:6px !important;
}
.servicio-card > p:first-of-type{
  min-height:2.2em !important;
  margin-bottom:8px !important;
}
.servicio-card .features-list.mini{
  min-height:92px !important;       /* espacio reservado para aprox. 3 líneas */
  max-height:92px !important;
  overflow:hidden !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  gap:6px !important;
  margin:8px 0 10px !important;
}
.servicio-card .features-list.mini .feature-badge{
  min-height:28px !important;
  line-height:1.15 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
}
.servicio-card-carousel{
  height:260px !important;
  aspect-ratio:16/9 !important;
  flex:0 0 auto !important;
  margin:0 0 12px !important;
}
.servicio-card-carousel .carousel-inner,
.servicio-card-carousel .carousel-item{
  height:100% !important;
}
.servicio-card-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;      /* uniforme sin deformar */
  object-position:center center !important;
  display:block !important;
}
.servicio-card > .btn{
  margin-top:auto !important;
}
@media(max-width:991px){
  .servicio-card-carousel{height:230px !important;}
  .servicio-card .features-list.mini{min-height:88px !important;max-height:88px !important;}
}
@media(max-width:576px){
  .servicio-card h3,.servicio-card > p:first-of-type{min-height:auto !important;}
  .servicio-card-carousel{height:215px !important;}
  .servicio-card .features-list.mini{min-height:84px !important;max-height:84px !important;}
}

/* ==========================================================
   Ajuste v32 catálogo frontend: línea fija para imagen
   Mantiene un bloque reservado para hasta 3 líneas de características.
   Esto hace que todos los carruseles inicien a la misma altura.
   ========================================================== */
.servicio-card .servicio-features-slot{
  min-height:96px !important;
  max-height:96px !important;
  overflow:hidden !important;
  margin:8px 0 12px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  gap:6px !important;
}
.servicio-card .servicio-features-slot .feature-empty-space{
  visibility:hidden !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}
.servicio-card-carousel{
  margin-top:0 !important;
  height:260px !important;
}
.servicio-card > p:first-of-type{
  min-height:2.4em !important;
}
@media(max-width:991px){
  .servicio-card .servicio-features-slot{min-height:92px !important;max-height:92px !important;}
  .servicio-card-carousel{height:230px !important;}
}
@media(max-width:576px){
  .servicio-card .servicio-features-slot{min-height:88px !important;max-height:88px !important;}
  .servicio-card-carousel{height:215px !important;}
}


/* ==========================================================
   Ajuste v33 catálogo frontend: caja fija de características
   La imagen del carrusel siempre inicia debajo de esta caja.
   La caja se reserva aunque el servicio no tenga características.
   ========================================================== */
.servicio-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
}
.servicio-card h3{
  min-height:42px !important;
  max-height:42px !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  line-height:1.18 !important;
  margin-bottom:6px !important;
}
.servicio-card .servicio-meta{
  min-height:30px !important;
  max-height:30px !important;
  overflow:hidden !important;
  margin:0 0 6px !important;
  line-height:1.35 !important;
}
.servicio-card .servicio-caracteristicas-box{
  height:82px !important;
  min-height:82px !important;
  max-height:82px !important;
  width:100% !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  gap:6px !important;
  overflow:hidden !important;
  margin:0 0 10px !important;
  padding:0 !important;
}
.servicio-card .servicio-caracteristicas-box .feature-badge{
  height:25px !important;
  max-height:25px !important;
  line-height:1 !important;
  display:inline-flex !important;
  align-items:center !important;
  white-space:nowrap !important;
}
.servicio-card .servicio-caracteristicas-box .feature-empty-space{
  display:block !important;
  width:100% !important;
  height:82px !important;
  visibility:hidden !important;
}
.servicio-card .servicio-card-carousel{
  margin-top:0 !important;
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  width:100% !important;
  flex:0 0 280px !important;
  overflow:hidden !important;
  border-radius:10px !important;
}
.servicio-card .servicio-card-carousel .carousel-inner,
.servicio-card .servicio-card-carousel .carousel-item{
  height:100% !important;
}
.servicio-card .servicio-card-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
}
@media(max-width:991px){
  .servicio-card .servicio-caracteristicas-box{height:82px !important;min-height:82px !important;max-height:82px !important;}
  .servicio-card .servicio-card-carousel{height:240px !important;min-height:240px !important;max-height:240px !important;flex-basis:240px !important;}
}
@media(max-width:576px){
  .servicio-card h3{min-height:auto !important;max-height:none !important;-webkit-line-clamp:unset !important;}
  .servicio-card .servicio-meta{min-height:auto !important;max-height:none !important;}
  .servicio-card .servicio-caracteristicas-box{height:76px !important;min-height:76px !important;max-height:76px !important;}
  .servicio-card .servicio-card-carousel{height:220px !important;min-height:220px !important;max-height:220px !important;flex-basis:220px !important;}
}


/* ==========================================================
   Ajuste v34 catálogo frontend: caja fija para características
   y carrusel alineado debajo de esa caja en todas las tarjetas.
   Recomendación para imágenes: 1200x675 px o 1024x576 px (16:9).
   ========================================================== */
.frontend-servicios-grid,
.grid{
  align-items:start;
}
.servicio-card{
  display:grid !important;
  grid-template-rows:auto auto 132px 280px auto auto auto auto !important;
  align-content:start !important;
  gap:0 !important;
}
.servicio-card h3{
  min-height:42px !important;
  max-height:42px !important;
  margin:0 0 6px !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  line-height:1.18 !important;
}
.servicio-card .servicio-meta{
  min-height:34px !important;
  max-height:34px !important;
  overflow:hidden !important;
  margin:0 0 8px !important;
  line-height:1.35 !important;
}
.servicio-card .servicio-card-feature-zone,
.servicio-card .servicio-caracteristicas-box,
.servicio-card .servicio-features-slot{
  height:132px !important;
  min-height:132px !important;
  max-height:132px !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 0 12px !important;
  padding:8px 6px !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  overflow:hidden !important;
  background:rgba(255,255,255,.35) !important;
}
.servicio-card .servicio-card-feature-zone .feature-badge,
.servicio-card .servicio-caracteristicas-box .feature-badge{
  height:30px !important;
  max-height:30px !important;
  min-height:30px !important;
  line-height:1 !important;
  padding:5px 10px !important;
  white-space:nowrap !important;
  display:inline-flex !important;
  align-items:center !important;
}
.servicio-card .servicio-card-feature-zone .feature-empty-space,
.servicio-card .servicio-caracteristicas-box .feature-empty-space{
  display:block !important;
  width:100% !important;
  height:132px !important;
  visibility:hidden !important;
}
.servicio-card .servicio-card-image-zone{
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  width:100% !important;
  overflow:hidden !important;
  margin:0 0 10px !important;
  padding:0 !important;
  display:block !important;
}
.servicio-card .servicio-card-carousel{
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:10px !important;
  background:#eef7f3 !important;
  box-shadow:0 8px 18px rgba(13,85,85,.12) !important;
}
.servicio-card .servicio-card-carousel .carousel-inner,
.servicio-card .servicio-card-carousel .carousel-item{
  height:100% !important;
  min-height:100% !important;
  max-height:100% !important;
}
.servicio-card .servicio-card-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
}
@media(max-width:991px){
  .servicio-card{grid-template-rows:auto auto 126px 240px auto auto auto auto !important;}
  .servicio-card .servicio-card-feature-zone,
  .servicio-card .servicio-caracteristicas-box,
  .servicio-card .servicio-features-slot{height:126px !important;min-height:126px !important;max-height:126px !important;}
  .servicio-card .servicio-card-image-zone,
  .servicio-card .servicio-card-carousel{height:240px !important;min-height:240px !important;max-height:240px !important;}
}
@media(max-width:576px){
  .servicio-card{grid-template-rows:auto auto 118px 220px auto auto auto auto !important;}
  .servicio-card h3{min-height:auto !important;max-height:none !important;-webkit-line-clamp:unset !important;}
  .servicio-card .servicio-meta{min-height:auto !important;max-height:none !important;}
  .servicio-card .servicio-card-feature-zone,
  .servicio-card .servicio-caracteristicas-box,
  .servicio-card .servicio-features-slot{height:118px !important;min-height:118px !important;max-height:118px !important;}
  .servicio-card .servicio-card-image-zone,
  .servicio-card .servicio-card-carousel{height:220px !important;min-height:220px !important;max-height:220px !important;}
}

/* ==========================================================
   Ajuste v35 catálogo frontend: caja visible para características
   Mantiene altura fija para alinear imágenes/carruseles debajo.
   ========================================================== */
.servicio-card .servicio-card-feature-zone,
.servicio-card .servicio-caracteristicas-box,
.servicio-card .servicio-features-slot{
  position:relative !important;
  height:132px !important;
  min-height:132px !important;
  max-height:132px !important;
  margin:0 0 12px !important;
  padding:12px 10px !important;
  border:2px solid rgba(245,163,91,.78) !important;
  border-radius:14px !important;
  background:linear-gradient(180deg, rgba(255,247,214,.96), rgba(255,255,255,.74)) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75), 0 8px 18px rgba(13,85,85,.08) !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  overflow:hidden !important;
}
.servicio-card .servicio-card-feature-zone:empty::after,
.servicio-card .servicio-caracteristicas-box:empty::after,
.servicio-card .servicio-features-slot:empty::after{
  content:'Características del servicio';
  color:rgba(13,85,85,.38);
  font-size:.85rem;
  font-weight:700;
}
.servicio-card .servicio-card-feature-zone .feature-empty-space,
.servicio-card .servicio-caracteristicas-box .feature-empty-space,
.servicio-card .servicio-features-slot .feature-empty-space{
  visibility:visible !important;
  display:flex !important;
  align-items:flex-start !important;
  width:100% !important;
  height:auto !important;
  min-height:24px !important;
}
.servicio-card .servicio-card-feature-zone .feature-empty-space::after,
.servicio-card .servicio-caracteristicas-box .feature-empty-space::after,
.servicio-card .servicio-features-slot .feature-empty-space::after{
  content:'Sin características visuales registradas';
  color:rgba(13,85,85,.45);
  font-size:.82rem;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  border:1px dashed rgba(13,85,85,.22);
  background:rgba(255,255,255,.52);
}
.servicio-card .servicio-card-feature-zone .feature-badge,
.servicio-card .servicio-caracteristicas-box .feature-badge,
.servicio-card .servicio-features-slot .feature-badge{
  background:#fff9df !important;
  border:1px solid rgba(245,163,91,.80) !important;
  box-shadow:0 2px 6px rgba(13,85,85,.08) !important;
}
@media(max-width:991px){
  .servicio-card .servicio-card-feature-zone,
  .servicio-card .servicio-caracteristicas-box,
  .servicio-card .servicio-features-slot{height:126px !important;min-height:126px !important;max-height:126px !important;}
}
@media(max-width:576px){
  .servicio-card .servicio-card-feature-zone,
  .servicio-card .servicio-caracteristicas-box,
  .servicio-card .servicio-features-slot{height:118px !important;min-height:118px !important;max-height:118px !important;}
}


/* ==========================================================
   Ajuste v36 catálogo frontend: punto fijo real para imágenes
   Objetivo: la zona de características siempre ocupa el mismo
   espacio visual y el carrusel inicia en la misma línea en todos
   los servicios, existan o no características.
   ========================================================== */
.frontend-servicios-grid{
  align-items:start !important;
}
.frontend-servicios-grid .servicio-card{
  display:grid !important;
  grid-template-rows:48px 34px 154px 280px auto auto auto !important;
  grid-auto-rows:auto !important;
  align-content:start !important;
  row-gap:0 !important;
  min-height:auto !important;
}
.frontend-servicios-grid .servicio-card h3{
  grid-row:1 !important;
  height:48px !important;
  min-height:48px !important;
  max-height:48px !important;
  margin:0 0 4px !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  line-height:1.18 !important;
}
.frontend-servicios-grid .servicio-card .servicio-meta{
  grid-row:2 !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  overflow:hidden !important;
  line-height:1.35 !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box,
.frontend-servicios-grid .servicio-card .servicio-features-slot{
  grid-row:3 !important;
  height:154px !important;
  min-height:154px !important;
  max-height:154px !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 0 10px 0 !important;
  padding:12px 10px !important;
  border:2px solid rgba(245,163,91,.85) !important;
  border-radius:14px !important;
  background:linear-gradient(180deg,rgba(255,247,214,.98),rgba(255,255,255,.78)) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),0 8px 18px rgba(13,85,85,.08) !important;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  overflow:hidden !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone .feature-badge,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box .feature-badge,
.frontend-servicios-grid .servicio-card .servicio-features-slot .feature-badge{
  height:30px !important;
  min-height:30px !important;
  max-height:30px !important;
  line-height:1 !important;
  padding:5px 10px !important;
  white-space:nowrap !important;
  display:inline-flex !important;
  align-items:center !important;
  background:#fff9df !important;
  border:1px solid rgba(245,163,91,.80) !important;
  box-shadow:0 2px 6px rgba(13,85,85,.08) !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone .feature-empty-space,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box .feature-empty-space,
.frontend-servicios-grid .servicio-card .servicio-features-slot .feature-empty-space{
  display:flex !important;
  visibility:visible !important;
  align-items:flex-start !important;
  width:100% !important;
  height:auto !important;
  min-height:30px !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone .feature-empty-space::after,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box .feature-empty-space::after,
.frontend-servicios-grid .servicio-card .servicio-features-slot .feature-empty-space::after{
  content:'Sin características visuales registradas';
  color:rgba(13,85,85,.45);
  font-size:.82rem;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  border:1px dashed rgba(13,85,85,.22);
  background:rgba(255,255,255,.52);
}
.frontend-servicios-grid .servicio-card .servicio-card-image-zone{
  grid-row:4 !important;
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  width:100% !important;
  overflow:hidden !important;
  margin:0 0 10px 0 !important;
  padding:0 !important;
  display:block !important;
  align-self:start !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-carousel{
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:10px !important;
  background:#eef7f3 !important;
  box-shadow:0 8px 18px rgba(13,85,85,.12) !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-carousel .carousel-inner,
.frontend-servicios-grid .servicio-card .servicio-card-carousel .carousel-item{
  height:100% !important;
  min-height:100% !important;
  max-height:100% !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
}
@media(max-width:991px){
  .frontend-servicios-grid .servicio-card{
    grid-template-rows:48px 34px 146px 240px auto auto auto !important;
  }
  .frontend-servicios-grid .servicio-card .servicio-card-feature-zone,
  .frontend-servicios-grid .servicio-card .servicio-caracteristicas-box,
  .frontend-servicios-grid .servicio-card .servicio-features-slot{
    height:146px !important;min-height:146px !important;max-height:146px !important;
  }
  .frontend-servicios-grid .servicio-card .servicio-card-image-zone,
  .frontend-servicios-grid .servicio-card .servicio-card-carousel{
    height:240px !important;min-height:240px !important;max-height:240px !important;
  }
}
@media(max-width:576px){
  .frontend-servicios-grid .servicio-card{
    grid-template-rows:auto auto 136px 220px auto auto auto !important;
  }
  .frontend-servicios-grid .servicio-card h3,
  .frontend-servicios-grid .servicio-card .servicio-meta{
    height:auto !important;min-height:auto !important;max-height:none !important;-webkit-line-clamp:unset !important;
  }
  .frontend-servicios-grid .servicio-card .servicio-card-feature-zone,
  .frontend-servicios-grid .servicio-card .servicio-caracteristicas-box,
  .frontend-servicios-grid .servicio-features-slot{
    height:136px !important;min-height:136px !important;max-height:136px !important;
  }
  .frontend-servicios-grid .servicio-card .servicio-card-image-zone,
  .frontend-servicios-grid .servicio-card .servicio-card-carousel{
    height:220px !important;min-height:220px !important;max-height:220px !important;
  }
}

/* ==========================================================
   Ajuste v37 - /frontend/servicios.php
   Caja roja visible y fija para características.
   El carrusel siempre inicia debajo de esta caja, exista o no
   contenido de características. No altera funcionalidad.
   ========================================================== */
.frontend-servicios-grid .servicio-card{
  display:grid !important;
  grid-template-rows:50px 34px 154px 280px auto auto auto !important;
  align-content:start !important;
  row-gap:0 !important;
}
.frontend-servicios-grid .servicio-card h3{
  grid-row:1 !important;
  height:50px !important;
  min-height:50px !important;
  max-height:50px !important;
  margin:0 0 4px !important;
  overflow:hidden !important;
}
.frontend-servicios-grid .servicio-card .servicio-meta{
  grid-row:2 !important;
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:0 !important;
  overflow:hidden !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box,
.frontend-servicios-grid .servicio-card .servicio-features-slot{
  grid-row:3 !important;
  display:flex !important;
  flex-wrap:wrap !important;
  align-content:flex-start !important;
  align-items:flex-start !important;
  gap:7px !important;
  width:100% !important;
  height:154px !important;
  min-height:154px !important;
  max-height:154px !important;
  box-sizing:border-box !important;
  margin:0 0 30px 0 !important;
  padding:10px !important;
  overflow:hidden !important;
  border:3px solid #e31b23 !important;
  border-radius:0 !important;
  background:#fffdf2 !important;
  box-shadow:none !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone .feature-badge,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box .feature-badge,
.frontend-servicios-grid .servicio-card .servicio-features-slot .feature-badge{
  display:inline-flex !important;
  align-items:center !important;
  height:30px !important;
  min-height:30px !important;
  max-height:30px !important;
  padding:5px 10px !important;
  white-space:nowrap !important;
  background:#fff9df !important;
  border:1px solid rgba(245,163,91,.85) !important;
  border-radius:999px !important;
  box-shadow:0 2px 6px rgba(13,85,85,.08) !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone .feature-empty-space,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box .feature-empty-space,
.frontend-servicios-grid .servicio-card .servicio-features-slot .feature-empty-space{
  display:block !important;
  visibility:hidden !important;
  width:100% !important;
  height:1px !important;
  min-height:1px !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-feature-zone .feature-empty-space::after,
.frontend-servicios-grid .servicio-card .servicio-caracteristicas-box .feature-empty-space::after,
.frontend-servicios-grid .servicio-card .servicio-features-slot .feature-empty-space::after{
  content:'' !important;
  display:none !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-image-zone{
  grid-row:4 !important;
  display:block !important;
  width:100% !important;
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  margin:0 0 10px 0 !important;
  padding:0 !important;
  overflow:hidden !important;
  align-self:start !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-carousel{
  width:100% !important;
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:8px !important;
}
.frontend-servicios-grid .servicio-card .carousel-inner,
.frontend-servicios-grid .servicio-card .carousel-item{
  height:100% !important;
}
.frontend-servicios-grid .servicio-card .servicio-card-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
@media(max-width:991px){
  .frontend-servicios-grid .servicio-card{grid-template-rows:50px 34px 146px 240px auto auto auto !important;}
  .frontend-servicios-grid .servicio-card .servicio-card-feature-zone,
  .frontend-servicios-grid .servicio-card .servicio-caracteristicas-box,
  .frontend-servicios-grid .servicio-card .servicio-features-slot{height:146px !important;min-height:146px !important;max-height:146px !important;}
  .frontend-servicios-grid .servicio-card .servicio-card-image-zone,
  .frontend-servicios-grid .servicio-card .servicio-card-carousel{height:240px !important;min-height:240px !important;max-height:240px !important;}
}
@media(max-width:576px){
  .frontend-servicios-grid .servicio-card{grid-template-rows:auto auto 136px 220px auto auto auto !important;}
  .frontend-servicios-grid .servicio-card h3,
  .frontend-servicios-grid .servicio-card .servicio-meta{height:auto !important;min-height:auto !important;max-height:none !important;}
  .frontend-servicios-grid .servicio-card .servicio-card-feature-zone,
  .frontend-servicios-grid .servicio-card .servicio-caracteristicas-box,
  .frontend-servicios-grid .servicio-card .servicio-features-slot{height:136px !important;min-height:136px !important;max-height:136px !important;}
  .frontend-servicios-grid .servicio-card .servicio-card-image-zone,
  .frontend-servicios-grid .servicio-card .servicio-card-carousel{height:220px !important;min-height:220px !important;max-height:220px !important;}
}

/* ==========================================================
   v40 Caja de características blanca redondeada - servicios frontend
   ========================================================== */
.frontend-servicios-grid .servicio-card>.servicio-card-feature-zone,
.frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box,
.frontend-servicios-grid .servicio-card>.servicio-features-slot{
  background:#ffffff !important;
  border-radius:18px !important;
  border:1px solid rgba(22,147,128,.16) !important;
  box-shadow:
    0 8px 20px rgba(7,95,92,.12),
    0 2px 8px rgba(22,147,128,.10) !important;
}
.frontend-servicios-grid .servicio-card>.servicio-card-image-zone .servicio-card-carousel{
  border-radius:12px !important;
}

/* ==========================================================
   v41 Separación entre caja de características y carrusel
   ========================================================== */
.frontend-servicios-grid .servicio-card>.servicio-card-feature-zone,
.frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box,
.frontend-servicios-grid .servicio-card>.servicio-features-slot{
  margin-bottom:30px !important;
}

/* ==========================================================
   v42 Separación real entre caja de características y carrusel
   Nota: se evita depender de margin en CSS grid.
   Se reserva espacio interno superior en la zona de imagen.
   ========================================================== */
.frontend-servicios-grid .servicio-card{
  grid-template-rows:50px 34px 154px 314px auto auto auto !important;
}
.frontend-servicios-grid .servicio-card>.servicio-card-feature-zone,
.frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box,
.frontend-servicios-grid .servicio-card>.servicio-features-slot{
  margin-bottom:0 !important;
}
.frontend-servicios-grid .servicio-card>.servicio-card-image-zone{
  grid-row:4 !important;
  height:314px !important;
  min-height:314px !important;
  max-height:314px !important;
  padding-top:34px !important;
  box-sizing:border-box !important;
}
.frontend-servicios-grid .servicio-card>.servicio-card-image-zone .servicio-card-carousel{
  height:280px !important;
  min-height:280px !important;
  max-height:280px !important;
}
@media(max-width:991px){
  .frontend-servicios-grid .servicio-card{
    grid-template-rows:50px 34px 146px 272px auto auto auto !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-image-zone{
    height:272px !important;
    min-height:272px !important;
    max-height:272px !important;
    padding-top:32px !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-image-zone .servicio-card-carousel{
    height:240px !important;
    min-height:240px !important;
    max-height:240px !important;
  }
}
@media(max-width:576px){
  .frontend-servicios-grid .servicio-card{
    grid-template-rows:auto auto 136px 248px auto auto auto !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-image-zone{
    height:248px !important;
    min-height:248px !important;
    max-height:248px !important;
    padding-top:28px !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-image-zone .servicio-card-carousel{
    height:220px !important;
    min-height:220px !important;
    max-height:220px !important;
  }
}

/* ==========================================================
   v44 Inicio frontend: bienvenida + imágenes dinámicas administrables
   ========================================================== */
.hero-inicio{
  position:relative;
  overflow:hidden;
}
.hero-inicio h1{
  max-width:850px;
}
.hero-inicio p{
  max-width:900px;
  font-size:1.05rem;
  line-height:1.65;
}
.inicio-imagenes-dinamicas{
  margin:34px auto 42px;
  max-width:1180px;
  padding:0 8px;
}
.inicio-imagenes-head{
  margin-bottom:18px;
}
.inicio-imagenes-head h2{
  color:#065b5b;
  font-weight:900;
  margin-bottom:6px;
}
.inicio-imagenes-head p{
  color:#0b5555;
  margin:0;
}
.inicio-shuffle-gallery{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  align-items:center;
  min-height:330px;
}
.inicio-shuffle-card{
  position:relative;
  height:260px;
  border-radius:24px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 14px 30px rgba(7,95,92,.16), 0 2px 8px rgba(245,163,91,.12);
  border:4px solid rgba(255,255,255,.95);
}
.inicio-shuffle-card-1{transform:translateY(-34px);}
.inicio-shuffle-card-2{transform:translateY(22px);}
.inicio-shuffle-card-3{transform:translateY(72px);}
.inicio-shuffle-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.inicio-shuffle-card.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ffffff,#f6fbef);
  border:4px solid rgba(22,147,128,.20);
}
.inicio-shuffle-card.placeholder div{
  color:rgba(7,95,92,.35);
  font-size:1.4rem;
  font-weight:900;
}
.inicio-shuffle-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:14px 16px;
  color:#fff;
  background:linear-gradient(180deg,transparent,rgba(0,55,55,.86));
}
.inicio-shuffle-caption strong,
.inicio-shuffle-caption span{
  display:block;
}
.inicio-shuffle-caption strong{
  font-size:1.05rem;
  margin-bottom:3px;
}
.inicio-shuffle-caption span{
  font-size:.9rem;
}
@media(max-width:900px){
  .inicio-shuffle-gallery{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .inicio-shuffle-card,
  .inicio-shuffle-card-1,
  .inicio-shuffle-card-2,
  .inicio-shuffle-card-3{
    transform:none;
    height:240px;
  }
}

/* ==========================================================
   v45 Experiencias: consentimiento informado
   ========================================================== */
.consentimiento-box{
  background:#ffffff;
  border:1px solid rgba(22,147,128,.18);
  border-left:5px solid #f7941d;
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 20px rgba(7,95,92,.10);
  color:#064f4f;
  margin:8px 0 10px;
}
.consentimiento-box strong{
  display:block;
  font-size:1.05rem;
  margin-bottom:8px;
  color:#065b5b;
}
.consentimiento-box p{
  margin:0 0 10px;
  line-height:1.55;
}
.consentimiento-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-weight:800;
}
.consentimiento-check input{
  margin-top:3px;
}

/* ==========================================================
   V238 - Ajuste visual móvil/tablet del acceso al sistema
   Se agrega separación entre el banner institucional y el bloque
   "Acceso al sistema" solo en dispositivos móviles y tabletas.
   ========================================================== */
@media (max-width: 991px){
  .ti-visual-header + .container{
    margin-top:16px !important;
  }
  .ti-visual-header + .container .municipal-hero:first-child{
    margin-top:4px !important;
  }
}
@media (max-width: 576px){
  .ti-visual-header + .container{
    margin-top:18px !important;
  }
}


/* ==========================================================
   v243 Ajuste móvil: características visibles en tarjetas
   - Solo celular/tablet.
   - La caja deja de recortar chips y crece según contenido.
   - Se reducen levemente padding y tamaño para mejor lectura táctil.
   ========================================================== */
@media (max-width: 768px){
  .frontend-servicios-grid .servicio-card{
    grid-template-rows:auto auto auto 248px auto auto auto !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-feature-zone,
  .frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box,
  .frontend-servicios-grid .servicio-card>.servicio-features-slot{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    padding:10px 12px 12px !important;
    gap:8px 7px !important;
    align-content:flex-start !important;
    margin-bottom:0 !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-feature-zone .feature-badge,
  .frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box .feature-badge,
  .frontend-servicios-grid .servicio-card>.servicio-features-slot .feature-badge{
    height:auto !important;
    min-height:34px !important;
    max-height:none !important;
    padding:6px 11px !important;
    font-size:.92rem !important;
    line-height:1.15 !important;
    white-space:normal !important;
    max-width:100% !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-image-zone{
    height:248px !important;
    min-height:248px !important;
    max-height:248px !important;
    padding-top:28px !important;
  }
}
@media (max-width: 430px){
  .frontend-servicios-grid .servicio-card>.servicio-card-feature-zone,
  .frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box,
  .frontend-servicios-grid .servicio-card>.servicio-features-slot{
    padding:9px 10px 11px !important;
    gap:7px !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-feature-zone .feature-badge,
  .frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box .feature-badge,
  .frontend-servicios-grid .servicio-card>.servicio-features-slot .feature-badge{
    font-size:.88rem !important;
    min-height:32px !important;
    padding:5px 9px !important;
  }
  .frontend-servicios-grid .servicio-card>.servicio-card-feature-zone .feature-icon-img,
  .frontend-servicios-grid .servicio-card>.servicio-caracteristicas-box .feature-icon-img,
  .frontend-servicios-grid .servicio-card>.servicio-features-slot .feature-icon-img{
    width:20px !important;
    height:20px !important;
    max-width:20px !important;
    max-height:20px !important;
  }
}
