/* Página general de Servicios. Usa inicio.css (ix-*) y pauta.css (pa-*) y agrega sus piezas (sv-*). */

/* ── Portada con acordeón de servicios ── */
.sv-hero { position: relative; min-height: max(100svh, 700px); padding: 130px 4vw 50px; display: flex; flex-direction: column; justify-content: flex-end; gap: 46px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 60% at 80% 20%, rgba(201,168,76,.14), transparent 70%), #0A0A0A; }
.sv-hero-txt { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 10px 5vw; align-items: end; }
.sv-hero-txt .pa-migas, .sv-hero-txt .ix-eti { grid-column: 1 / -1; }
.sv-hero-txt .pa-h1 { font-size: clamp(40px, 5vw, 80px); }
.sv-hero-txt .pa-lead { margin: 0; }
.sv-acordeon { position: relative; z-index: 2; display: flex; gap: 14px; height: clamp(300px, 40vh, 420px); }
.sv-carta { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; color: #F4EFE3; text-decoration: none; isolation: isolate;
  transition: flex 1s cubic-bezier(.2,.8,.2,1), box-shadow .5s; animation: sv-entra 1.1s cubic-bezier(.2,.8,.2,1) both; }
.sv-carta:nth-child(1) { animation-delay: .3s; } .sv-carta:nth-child(2) { animation-delay: .42s; } .sv-carta:nth-child(3) { animation-delay: .54s; } .sv-carta:nth-child(4) { animation-delay: .66s; }
@keyframes sv-entra { from { opacity: 0; transform: translateY(90px) scale(.94); } }
.sv-acordeon:hover .sv-carta { flex: .8; }
.sv-acordeon .sv-carta:hover, .sv-acordeon .sv-carta:focus-visible { flex: 2.4; box-shadow: 0 0 0 2px #C9A84C; }
.sv-carta img, .sv-carta video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s; filter: grayscale(.35) brightness(.8); }
.sv-carta .sv-img-web { object-position: top center; }
.sv-carta:hover img, .sv-carta:hover video { transform: scale(1); filter: none; }
.sv-carta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.1) 20%, rgba(10,10,10,.7) 55%, rgba(10,10,10,.95) 100%); }
.sv-carta .ix-num { position: absolute; left: 22px; top: 18px; font-size: 22px; color: #C9A84C; }
.sv-carta-txt { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.sv-carta-txt small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #C9A84C; }
.sv-carta-txt b { display: block; font: 700 clamp(22px, 2vw, 32px)/1.08 'Playfair Display', serif; }
.sv-carta-txt span { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(244,239,227,.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s, opacity .5s .15s; }
.sv-carta:hover .sv-carta-txt span, .sv-carta:focus-visible .sv-carta-txt span { max-height: 40px; opacity: 1; }
.sv-carta::before { content: "→"; position: absolute; right: 20px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #C9A84C; color: #0A0A0A; font-size: 18px; rotate: -45deg; scale: 0; transition: scale .45s cubic-bezier(.2,.9,.3,1.4), rotate .45s; }
.sv-carta:hover::before { scale: 1; rotate: 0deg; }

/* ── Sistema ── */
.sv-sistema { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; padding: 140px 4vw; background: #0A0A0A; }
.sv-sis-txt .ix-mega { max-width: 9em; font-size: clamp(40px, 5.2vw, 86px); }
.sv-sis-txt p { margin: 28px 0 0; max-width: 30em; font-size: 18px; line-height: 1.7; color: rgba(244,239,227,.7); }
.sv-red { width: 100%; max-width: 560px; justify-self: center; overflow: visible; }
.sv-lin { fill: none; stroke: rgba(201,168,76,.55); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1) .6s; }
.sv-lin-wa { transition-delay: 1.8s; }
.sv-vivo .sv-lin { stroke-dashoffset: 0; }
.sv-pulso { fill: #E8C96A; opacity: 0; transition: opacity .5s 2s; filter: drop-shadow(0 0 6px #C9A84C); }
.sv-vivo .sv-pulso { opacity: 1; }
.sv-nodo { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .8s cubic-bezier(.2,.9,.3,1.35); transition-delay: calc(.2s + var(--i) * .25s); }
.sv-vivo .sv-nodo { transform: none; }
.sv-nodo circle, .sv-nodo rect { fill: #151513; stroke: rgba(201,168,76,.6); stroke-width: 1.5; }
.sv-nodo text { fill: #F4EFE3; font: 700 19px 'Playfair Display', serif; text-anchor: middle; }
.sv-nodo .sv-sub { fill: rgba(244,239,227,.6); font: 500 12.5px 'DM Sans', sans-serif; }
.sv-nodo-oro circle { fill: #C9A84C; stroke: none; }
.sv-nodo-oro text { fill: #0A0A0A; font-size: 21px; } .sv-nodo-oro .sv-sub { fill: rgba(10,10,10,.7); }
.sv-nodo-wa rect { fill: #25D366; stroke: none; } .sv-nodo-wa text { fill: #fff; font: 700 14px 'DM Sans', sans-serif; }

/* ── Paneles que se apilan ── */
.sv-paneles { position: relative; background: #0A0A0A; padding-bottom: 60px; }
.sv-panel { position: sticky; top: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; padding: 130px 4vw 80px;
  background: #0F0F0E; border-top: 1px solid rgba(201,168,76,.2); border-radius: 34px 34px 0 0; overflow: hidden; transform-origin: center top; will-change: transform; }
.sv-panel-claro { background: #F4EFE3; color: #0A0A0A; }
.sv-etq { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #C9A84C; color: #0A0A0A; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.sv-p-txt .ix-num { display: block; margin: 26px 0 6px; font-size: 22px; color: #C9A84C; }
.sv-panel-claro .sv-p-txt .ix-num { color: #8F7430; }
.sv-p-txt h2 { margin: 0 0 22px; font: 700 clamp(40px, 5.2vw, 84px)/1 'Playfair Display', serif; }
.sv-p-txt p { margin: 0 0 26px; max-width: 32em; font-size: 17.5px; line-height: 1.7; color: rgba(244,239,227,.7); }
.sv-panel-claro .sv-p-txt p { color: #3B3A36; }
.sv-p-txt ul { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sv-p-txt li { padding: 9px 16px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(201,168,76,.45); }
.sv-panel-claro .sv-p-txt li { box-shadow: inset 0 0 0 1px rgba(10,10,10,.3); }
.sv-p-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; }
.sv-precio { font-size: 16px; color: rgba(244,239,227,.75); }
.sv-precio b { font: 700 30px 'Playfair Display', serif; color: #C9A84C; }
.sv-panel-claro .sv-precio { color: #3B3A36; } .sv-panel-claro .sv-precio b { color: #8F7430; }
.sv-p-vis { position: relative; height: min(70vh, 600px); }

.sv-arco { position: absolute; left: 16%; right: 10%; bottom: 0; top: 10%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #C9A84C, #8F7430); }
.sv-vis-pauta > img { position: absolute; left: 50%; bottom: 0; height: 94%; translate: -46% 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.sv-vis-pauta .pa-flota { opacity: 1; animation: pa-flotar 6s ease-in-out infinite; }
.sv-f1 { left: 0; bottom: 14%; }
.sv-f2 { right: -2%; top: 14%; width: 300px; padding: 12px; animation-delay: 1s !important; }
.sv-f2 .pa-g-barra span:last-child { white-space: nowrap; overflow: hidden; font-size: 13px; }

.sv-vis-web { perspective: 1600px; }
.sv-pant { position: absolute; width: 74%; border-radius: 14px; box-shadow: 0 40px 80px rgba(10,10,10,.28); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.sv-pant-1 { left: 0; top: 0; transform: rotateY(18deg) rotateZ(-4deg) scale(.86); filter: brightness(.92); }
.sv-pant-3 { right: 0; bottom: 0; transform: rotateY(-18deg) rotateZ(4deg) scale(.86); filter: brightness(.92); }
.sv-pant-2 { left: 13%; top: 14%; z-index: 2; transform: rotateX(8deg) rotateY(-8deg); }
.sv-vis-web:hover .sv-pant-1 { transform: rotateY(10deg) rotateZ(-6deg) scale(.86) translate(-30px, -20px); }
.sv-vis-web:hover .sv-pant-3 { transform: rotateY(-10deg) rotateZ(6deg) scale(.86) translate(30px, 20px); }
.sv-vis-web:hover .sv-pant-2 { transform: none; }

.sv-vis-cont { display: flex; justify-content: center; align-items: center; }
.ce-tel { position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 34px; padding: 9px; background: #0A0A0A; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a2a28; }
.ce-tel > .ce-vid { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; border-radius: 26px; background: #151513; }
.sv-tel { z-index: 2; height: 92%; width: auto; max-width: none; }
.sv-post { position: absolute; width: 38%; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.5); left: 2%; top: 10%; rotate: -10deg; animation: pa-flotar 7s ease-in-out infinite; }
.sv-post-2 { left: auto; right: 2%; top: auto; bottom: 8%; rotate: 9deg; animation-delay: 1.2s; }

/* ── Por qué ── */
.sv-porque { padding: 140px 4vw; background: #F4EFE3; color: #0A0A0A; }
.sv-razones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #0A0A0A; }
.sv-razon { position: relative; padding: 40px 30px 46px 0; border-bottom: 1px solid rgba(10,10,10,.18); overflow: hidden; }
.sv-razon:nth-child(3n+2), .sv-razon:nth-child(3n) { padding-left: 30px; border-left: 1px solid rgba(10,10,10,.18); }
.sv-razon.ix-rv:nth-child(3n+2) { transition-delay: .12s; } .sv-razon.ix-rv:nth-child(3n) { transition-delay: .24s; }
.sv-razon .ix-num { display: block; font-size: 46px; line-height: 1; color: #C9A84C; margin-bottom: 18px; transition: transform .5s cubic-bezier(.2,.9,.3,1.4); }
.sv-razon:hover .ix-num { transform: translateY(-6px) scale(1.12); }
.sv-razon h3 { margin: 0 0 12px; font: 700 24px/1.2 'Playfair Display', serif; }
.sv-razon p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #3B3A36; }

/* ── Celular y tableta ── */
@media (max-width: 980px) {
  .sv-hero { padding-top: 130px; }
  .sv-hero-txt, .sv-sistema, .sv-panel { grid-template-columns: minmax(0, 1fr); }
  .sv-acordeon { flex-direction: column; height: auto; }
  .sv-carta, .sv-acordeon:hover .sv-carta, .sv-acordeon .sv-carta:hover { flex: none; height: 190px; }
  .sv-carta-txt span { max-height: 40px; opacity: 1; }
  .sv-panel { position: relative; min-height: 0; padding: 90px 4vw 70px; border-radius: 26px 26px 0 0; }
  .sv-p-vis { height: 420px; }
  .sv-f2 { width: 240px; right: 0; top: 4%; }
  .sv-f1 { max-width: 250px; }
  .sv-razones { grid-template-columns: minmax(0, 1fr); }
  .sv-razon, .sv-razon:nth-child(3n+2), .sv-razon:nth-child(3n) { padding: 32px 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
  .sv *, .sv *::before, .sv *::after { animation: none !important; transition: none !important; }
  .sv-lin { stroke-dashoffset: 0; } .sv-nodo { transform: none; } .sv-pulso { opacity: 1; }
}
