@charset "utf-8";

/* ==========================================================
   HERO SERVICIOS
   ========================================================== */

#hero-servicios {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Imagen de fondo */
#hero-servicios .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero/hero-servicios.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1.05);
}

/* Overlay hero servicios */
#hero-servicios .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 67, 143, 0.75) 0%,
    rgba(20, 67, 143, 0.85) 60%,
    rgba(20, 67, 143, 0.95) 100%
  );
  z-index: 2;
}

/* Contenido */
#hero-servicios .hero-content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  padding: 0 20px;
  color: #ffffff;
}

#hero-servicios h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #ffffff;
}

#hero-servicios p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 32px;
}

#hero-servicios .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--secondary);
  color: #ffffff;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease;
}

#hero-servicios .hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Mobile */
@media (max-width: 768px) {
  #hero-servicios p {
    font-size: 1.05rem;
  }
}

/* ==========================================================
   SERVICIOS – CONTEXTO GENERAL
   ========================================================== */

#servicios {
  padding: 100px 0 120px;
  background: var(--light-bg);
  position: relative;
}

/* ==========================================================
   FILTROS DE SERVICIOS (STICKY)
   ========================================================== */

.filtros-sticky-wrapper {
  position: sticky;
  top: calc(var(--nav-height) + 10px);
  z-index: 50;
  padding: 12px 0 20px;
  background: linear-gradient(
    180deg,
    rgba(245,247,250,0.95),
    rgba(245,247,250,0.85)
  );
  backdrop-filter: blur(6px);
}

/* Barra */
.filter-bar {
  position: relative;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Botones */
.filter-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s ease;
}

.filter-btn:hover {
  color: var(--secondary);
}

.filter-btn.active {
  color: #fff;
}

/* Indicador animado */
.filter-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  background: linear-gradient(90deg, var(--secondary), #127ab0);
  border-radius: 999px;
  z-index: 1;
  transition: transform .35s ease, width .35s ease;
}

/* ==========================================================
   GRID DE SERVICIOS
   ========================================================== */

#services-container {
  margin-top: 50px;
}

/* ==========================================================
   SERVICE ITEM – FILTRADO ESTABLE (BOOTSTRAP SAFE)
   ========================================================== */

.service-item {
  transition:
    opacity .25s ease,
    transform .25s ease;
}

/* Oculto */
.service-item.is-hidden {
  display: none !important;
}

/* Visible */
.service-item.is-visible {
  display: block;
}

/* ==========================================================
   SERVICE CARD
   ========================================================== */

.service-card-new {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}

.service-card-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

/* Imagen superior */
.service-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
	position: relative;
  overflow: hidden;
}

.service-card-new:hover .service-img {
  transform: scale(1.02);
}

/* ==========================================================
   INFO DE SERVICIO
   ========================================================== */

.service-info {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Icono */
.service-icon {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* ==========================================================
   TÍTULO DEL SERVICIO
   ========================================================== */

.service-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

/* ==========================================================
   DESCRIPCIÓN (SEGUNDO NIVEL DE LECTURA)
   ========================================================== */

.service-desc {
  font-size: 0.95rem;
  color: #161616;
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================
   ACCIONES (BOTONES CENTRADOS)
   ========================================================== */

.service-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Botón outline */
.service-btn-outline {
  border: 1px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-btn-outline:hover {
  background: var(--secondary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Botón solid */
.service-btn-solid {
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.service-btn-solid:hover {
  background: #127ab0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================
   NO RESULTS
   ========================================================== */

.no-results {
  font-size: 1.1rem;
  font-weight: 600;
  color: #777;
}
/* ==========================================================
   ANIMACIONES INTERNAS DE SERVICE CARD
   ========================================================== */

.service-img,
.service-title,
.service-desc,
.service-actions {
  transition: transform .35s ease, opacity .35s ease;
}

/* Imagen: leve zoom */
.service-card-new:hover .service-img {
  transform: scale(1.08);
}

/* Título: micro lift */
.service-card-new:hover .service-title {
  transform: translateY(-2px);
}

/* Descripción: fade-in suave */
.service-card-new:hover .service-desc {
  opacity: 1;
}

/* Botones: aparición más clara */
.service-card-new .service-actions {
  opacity: .9;
}

.service-card-new:hover .service-actions {
  opacity: 1;
}

/* ==========================================================
   SERVICE CARD DESTACADA
   ========================================================== */

.service-card-new.is-featured {
  position: relative;
  box-shadow: 0 24px 60px rgba(20,67,143,.18);
  transform: translateY(-4px);
}

/* Glow sutil */
.service-card-new.is-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(20,67,143,.12);
}

/* ==========================================================
   BADGES DE SERVICIO
   ========================================================== */

.service-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .4px;

  /* 🔒 CLAVE */
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}
/* Variantes */
.badge-social { background: #0d6efd; }
.badge-branding { background:#BF1E21; }
.badge-marketing { background: #198754; }
.badge-web { background: #6610f2; }
.badge-multimedia { background: #fd7e14; }
.badge-print { background: #6c757d; }
.badge-merchan { background:#E1CF24 }
.badge-cartel { background:#A311D1 }


/* ==========================================================
   APARICIÓN PREMIUM (SAFE)
   ========================================================== */

.service-item {
  opacity: 0;
  transform: translateY(16px);
}

.service-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   MOBILE OPTIMIZATION
   ========================================================== */

@media (max-width: 576px) {

  .service-img {
    height: 160px;
  }

  .service-title {
    font-size: 1.15rem;
  }

  .service-desc {
    font-size: .92rem;
  }

  .service-actions {
    flex-direction: column;
    gap: 10px;
  }

  .service-btn-outline,
  .service-btn-solid {
    width: 100%;
    justify-content: center;
  }
}

.services-search-wrap{
  position: relative;
}

.services-search{
  width: min(720px, 100%);
  position: relative;
}

.services-search .form-control{
  padding-left: 44px;
  padding-right: 44px;
  border-radius: 999px;
}

.services-search i.bi-search{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events: none;
}

.services-search .btn-clear{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  line-height: 1;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  opacity: .6;
}

.services-search .btn-clear:hover{
  opacity: 1;
}

.services-results{
  font-size: .95rem;
}