/* ===== Servicios Nuevo ===== */
.servicios-nuevo{
  padding: 0 1rem;
  margin: 0;
  margin-bottom: 20px;
}

.servicios-shell{
  position: relative;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  background: #dbd5c5;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  width: 100%;
  overflow: hidden;
}

.servicios-shell::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 28px;
  background-image: url("../textura/textura-coloristica-opacidad25.svg");
  background-size: 260px auto;
  background-repeat: repeat;
  background-position: center;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}

.servicios-shell__inner{
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.servicios-shell__title{
  margin: 10px 0 28px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #602b69;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.servicios-nuevo__header{
  text-align: center;
  margin-bottom: 1.5rem;
}

.servicios-nuevo__header .intro-frase{ color: #6b6457; }
.servicios-nuevo__header .titulo-frase{ color: #111; }

/* Desktop grid */
.servicios-nuevo__grid{
  display: grid;
  grid-template-columns: repeat(3, 320px);
  gap: 22px;
  justify-content: center;
}

.servicios-nuevo__grid .svc-card{
  width: 320px;
  height: 220px;
}

.svc-card{
  position: relative;
  display: grid;
  grid-template-rows: 60% 40%;
  border-radius: 18px;
  background:
    radial-gradient(160px 120px at 20% 15%, rgba(255,255,255,0.9), transparent 65%),
    radial-gradient(200px 140px at 80% 10%, rgba(255,210,240,0.35), transparent 70%),
    radial-gradient(200px 140px at 20% 90%, rgba(190,230,255,0.45), transparent 70%),
    radial-gradient(220px 160px at 85% 85%, rgba(255,235,200,0.4), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: #111;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 80% 20%, rgba(255,255,255,0.8), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.svc-card__media{
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  padding: 16px;
  background: transparent;
  box-shadow: none;
  transition: transform 0.45s ease, padding 0.45s ease;
}

.svc-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.45s ease, border-radius 0.45s ease;
}

.svc-card__body{
  padding: 0.55rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-start;
}

.svc-card__title{
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  color: #111;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
  max-height: 28px;
  overflow: hidden;
}

.svc-card__icon{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.08);
  color: #111;
  justify-self: start;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 1.25rem;
}

.svc-card__head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
  max-height: 48px;
}

.svc-card__desc{
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
  align-self: stretch;
}

.svc-card__desc .key{ font-weight: 800; }

.svc-card:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: none;
}

.svc-card:hover .svc-card__media img{
  transform: translateY(-6px) scale(1.04);
}

.svc-card:hover .svc-card__media{
  transform: scale(1);
  padding: 10px;
}

.svc-card:hover .svc-card__desc{
  opacity: 1;
  max-height: 88px;
  transform: translateY(0);
}

.svc-card:hover .svc-card__title{
  color: var(--svc-accent);
  opacity: 0;
  max-height: 0;
  margin: 0;
}

.svc-card:hover .svc-card__icon{
  opacity: 0;
  transform: scale(0.85);
}

.svc-card:hover .svc-card__head{
  opacity: 0;
  max-height: 0;
  margin: 0;
}

/* Mobile layout keeps CTA row */
.svc-card--mobile .svc-card__body{
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.svc-card:hover .svc-card__icon{
  opacity: 0;
  transform: scale(0.85);
}

/* Colores por servicio */
.svc-identidad{ --svc-accent: #20a3e5; }
.svc-web{ --svc-accent: #602b69; }
.svc-editorial{ --svc-accent: #ffb07c; }
.svc-impresos{ --svc-accent: #ff6552; }
.svc-invitaciones{ --svc-accent: #04bb7b; }
.svc-tarjetas{ --svc-accent: #3a1c66; }

.svc-card{ box-shadow: none; }
.svc-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--svc-accent) 35%, rgba(0,0,0,0.08));
  opacity: 0.55;
  pointer-events: none;
}

.svc-card__title .key{ color: var(--svc-accent); }
.svc-card__desc .key{ color: var(--svc-accent); }
.svc-card__icon{ background: color-mix(in srgb, var(--svc-accent) 18%, #ffffff); color: var(--svc-accent); }

/* Mobile horizontal */
.servicios-nuevo__mobile{ display: none; }

@media (max-width: 900px){
  .servicios-nuevo__grid{ display: none; }
  .servicios-nuevo__mobile{ display: block; }
  .servicios-shell{ background: transparent; box-shadow: none; }
  .servicios-shell::after{ display: none; }
  .servicios-shell__title{ color: #111; }
}

@media (min-width: 901px){
  .servicios-nuevo__grid{
    grid-template-columns: repeat(3, 350px);
  }

  .servicios-nuevo__grid .svc-card{
    width: 350px;
  }

  .servicios-nuevo__grid .svc-card__title{
    font-size: 1.44rem;
  }

  .servicios-nuevo__grid .svc-card__icon{
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Slider de frase */
.frase-slider{
  padding: 14px 0 18px;
  overflow: hidden;
  background: #ebe7dc;
}

.frase-slider__track{
  display: flex;
  width: max-content;
  animation: frase-marquee 32s linear infinite;
  will-change: transform;
}

.frase-slider__group{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 1.5rem;
}

.frase-slider__text{
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #111;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  white-space: nowrap;
}

@keyframes frase-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .frase-slider__track{ animation: none; }
}

.servicios-nuevo__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78%, 280px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  padding: 6px 4px 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: auto;
}

.servicios-nuevo__track::-webkit-scrollbar{ display: none; }
.servicios-nuevo__track{ scrollbar-width: none; }

.svc-card--mobile{
  scroll-snap-align: start;
  width: auto;
  height: auto;
  grid-template-rows: auto 1fr auto;
}

.servicios-nuevo__controls{
  display: none;
}

.svc-card--mobile .svc-card__desc{
  opacity: 1;
  max-height: none;
  font-weight: 700;
}

.svc-card__cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 800;
  color: var(--svc-accent);
}

.svc-card--mobile:hover .svc-card__icon{
  opacity: 1;
  transform: none;
}

@media (max-width: 520px){
  .servicios-nuevo__track{ grid-auto-columns: 86%; }
}

@media (max-width: 900px){
  .servicios-nuevo__controls{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 14px;
  }

  .servicios-nuevo__counter{
    margin: 0;
    color: #4e4558;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .03em;
  }

  .servicios-nuevo__actions{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .servicios-nuevo__btn{
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #8f86a4;
    background: #d7cfeb;
    color: #4e4558;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  }

  .servicios-nuevo__btn:hover{
    transform: translateY(-1px);
    background: #e2daf2;
    border-color: #7e7397;
  }

  .servicios-nuevo__btn:active{
    transform: translateY(0);
  }
}
