.services {
    background: var(--lightblue);
    padding: 2rem 1.4rem;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.services__container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-base);
}

.services__title {
    font-family: var(--font-base);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .1rem;
    margin: 0 auto 1.5rem;
    display: flex;
    width: fit-content;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1.4rem;
    background: #ffffff90;
    backdrop-filter: blur(4px);
    border: 1.5px solid #d8d1ff;
    border-radius: 999px;
    color: var(--green-dark);
    box-shadow: 0 4px 10px rgba(109,92,207,.12);
}

.services__accordion {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tarjeta base */
.service-card {
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.service-card__header {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    align-items: center;
    width: 100%;
}

.service-card__pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem .35rem .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 5px 10px rgba(0, 0, 0, 0.06),
    inset 0 2px 2px rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.2s ease;
}

.service-card__pill span {
    line-height: 28px;
}

/* --- ESTADO HOVER (Pasar el ratón) --- */
.service-card__pill:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px); /* Se eleva levemente */
  box-shadow: 
    0 6px 0 rgba(0, 0, 0, 0.14),
    0 8px 14px rgba(0, 0, 0, 0.08),
    inset 0 2px 2px rgba(255, 255, 255, 1),
    inset 0 -2px 3px rgba(0, 0, 0, 0.08);
}

/* --- ESTADO ACTIVE (Al hacer clic / pulsar) --- */
.service-card__pill:active {
  transform: translateY(3px); /* Se hunde físicamente al pulsar */
  box-shadow: 
    0 1px 0 rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(0, 0, 0, 0.12); /* Sombra interna para efecto presionado */
}

.service-card__pill .service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 18px;
    line-height: 1;
    font-style: normal;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    position: static;
    transform: none;
}

.service-card__pill .service-card__icon::before {
    display: block;
    position: static;
    width: auto;
    height: auto;
    line-height: 1;
    transform: none;
}

/* Ya no se usan, pero se ocultan por si el HTML todavía las incluye */
.service-card__preview {
    display: none;
}

.service-card__body {
    line-height: 1.5;
    font-size: .95rem;
    color: var(--text-dark);
}

.service-card__text {
    margin: 0;
}

/* Colores pastel: ahora cubren toda la tarjeta, no solo la píldora */
.item-jugar       { background-color: #e2f5d8; }
.item-jugar       .service-card__pill { color: #3D6F37; }

.item-campamentos { background-color: #fff1bf; }
.item-campamentos .service-card__pill { color: #7a5c00; }

.item-cumpleanios { background-color: #ffdbe6; }
.item-cumpleanios .service-card__pill { color: #9c2a4a; }

.item-fiestas     { background-color: #eadbff; }
.item-fiestas     .service-card__pill { color: #5b2d8e; }

/* Banda separadora */
.services__band {
    background: linear-gradient(135deg, #ffdbe6 0%, #fff1bf 35%, #e2f5d8 65%, #eadbff 100%);
    height: 6px;
    border-radius: 999px;
    margin: 2rem .5rem 1.5rem;
    opacity: .7;
}

.services__gallery {
    padding: 0 0 1.5rem;
    box-sizing: border-box;
}

.services__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: .75rem;
    padding: .5rem 1.4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

.services__track::-webkit-scrollbar {
    display: none;
}

.services__slide {
    flex: 0 0 72vw;
    max-width: 280px;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform .2s ease;
}

.services__slide:active {
    transform: scale(0.97);
}

.services__slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Dots */
.services__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    padding-top: .75rem;
}

.services__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    transition: background .2s ease, transform .2s ease;
    cursor: pointer;
}

.services__dot.active {
    background: var(--green-dark, #3D6F37);
    transform: scale(1.3);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 92vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* Flechas */
.services__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
}

.services__arrow i {
    font-size: 20px;
    color: #5a8a5a;
}

.services__arrow--left  { left: 12px; }
.services__arrow--right { right: 12px; }
