/* ==========================================================
   VS Consulting — Capa de estilo profesional (tipo Wix)
   NO cambia textos, precios, testimonios ni programación.
   Se activa con UNA línea en index.html, justo antes de </head>:
   <link rel="stylesheet" href="vs-mejoras.css">
   Para quitarlo: borra esa línea.
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap");

:root{ --vs-navy:#0b1f3a; --vs-gold:#c9a24a; --vs-gold-2:#e2b64c; }

/* ---------- 1. Tipografía elegante en títulos ---------- */
h1, section h2{
  font-family:"Playfair Display", Georgia, serif !important;
  font-weight:700 !important;
  letter-spacing:-.01em;
}
#inicio h1{ line-height:1.12; }
#inicio .rounded-3xl h2{ font-family:Inter, sans-serif !important; font-weight:800 !important; }
body{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }

/* Línea dorada bajo los títulos de cada sección */
section > div > .text-center > h2::after,
section > div > div.text-center > h2::after{
  content:""; display:block; width:56px; height:3px; margin:14px auto 0;
  border-radius:3px; background:linear-gradient(90deg,var(--vs-gold),var(--vs-gold-2));
}

/* ---------- 2. Encabezado (logo intacto) ---------- */
header.sticky{ box-shadow:0 6px 24px -12px rgba(11,31,58,.35) !important; }
header.sticky nav a{ position:relative; }
header.sticky nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; margin:auto; width:0;
  background:var(--vs-gold); border-radius:2px; transition:width .3s ease;
}
header.sticky nav a:hover::after{ width:100%; }

/* ---------- 3. Portada con foto + efecto de entrada ---------- */
#inicio.gradient-hero{ background:#0b172a; isolation:isolate; }
#inicio.gradient-hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(100deg, rgba(11,23,42,.94) 0%, rgba(15,32,70,.84) 45%, rgba(20,48,90,.50) 100%),
    url("img/fondo-hero.jpg") 70% center / cover no-repeat;
  transform-origin:70% 50%;
  animation:vsZoom 14s ease-out both;
}
#inicio .grid-pattern{ opacity:.4; }
@keyframes vsZoom{ from{ transform:scale(1.12); } to{ transform:scale(1); } }
@keyframes vsUp{ from{ opacity:0; transform:translateY(28px); } to{ opacity:1; transform:none; } }
@keyframes vsIn{ from{ opacity:0; transform:translateX(30px) scale(.97); } to{ opacity:1; transform:none; } }
#inicio .lg\:col-span-7 > *{ animation:vsUp .9s cubic-bezier(.2,.7,.2,1) both; }
#inicio .lg\:col-span-7 > *:nth-child(1){ animation-delay:.10s; }
#inicio .lg\:col-span-7 > *:nth-child(2){ animation-delay:.25s; }
#inicio .lg\:col-span-7 > *:nth-child(3){ animation-delay:.40s; }
#inicio .lg\:col-span-7 > *:nth-child(4){ animation-delay:.55s; }
#inicio .lg\:col-span-7 > *:nth-child(5){ animation-delay:.70s; }
#inicio .lg\:col-span-5{ animation:vsIn 1s .5s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- 4. Firma Electrónica con foto (precios intactos) ---------- */
#firmas{
  background:
    linear-gradient(180deg, rgba(15,23,42,.86) 0%, rgba(15,23,42,.74) 50%, rgba(15,23,42,.90) 100%),
    url("img/fondo-servicios.jpg") 65% 30% / cover no-repeat !important;
}

/* ---------- 5. Contacto con foto ---------- */
#contacto{
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,74,.18), transparent 60%),
    linear-gradient(180deg, rgba(11,23,42,.80), rgba(6,14,28,.92)),
    url("img/fondo-contacto.jpg") center 40% / cover no-repeat !important;
}

/* Parallax (foto quieta al bajar) solo en computador */
@media (min-width:1024px) and (hover:hover){
  #firmas{ background-attachment:scroll, fixed !important; }
  #contacto{ background-attachment:scroll, scroll, fixed !important; }
}

/* ---------- 6. Botones estilizados ---------- */
a[class*="bg-amber-5"], button[class*="bg-amber-5"],
a[class*="bg-emerald-6"], button[class*="bg-emerald-6"],
a[class*="bg-royal-7"], button[class*="bg-royal-7"]{
  position:relative; overflow:hidden;
  border-radius:9999px !important;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease !important;
}
a[class*="bg-amber-5"], button[class*="bg-amber-5"]{
  background-image:linear-gradient(135deg,#f5c34b 0%,#e2a83a 55%,#c98d22 100%) !important;
  box-shadow:0 10px 24px -10px rgba(217,151,34,.75) !important;
}
a[class*="bg-emerald-6"], button[class*="bg-emerald-6"]{
  background-image:linear-gradient(135deg,#19b37d 0%,#059669 60%,#047857 100%) !important;
  box-shadow:0 10px 24px -10px rgba(5,150,105,.75) !important;
}
a[class*="bg-royal-7"], button[class*="bg-royal-7"]{
  background-image:linear-gradient(135deg,#2f63e0 0%,#1d4ed8 60%,#173fae 100%) !important;
  box-shadow:0 10px 24px -10px rgba(29,78,216,.7) !important;
}
a[class*="bg-amber-5"]:hover, button[class*="bg-amber-5"]:hover,
a[class*="bg-emerald-6"]:hover, button[class*="bg-emerald-6"]:hover,
a[class*="bg-royal-7"]:hover, button[class*="bg-royal-7"]:hover{
  transform:translateY(-3px); filter:brightness(1.05);
}
/* Brillo que recorre el botón al pasar el mouse */
a[class*="bg-amber-5"]::after, a[class*="bg-emerald-6"]::after, a[class*="bg-royal-7"]::after{
  content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform:skewX(-20deg); transition:left .7s ease; pointer-events:none;
}
a[class*="bg-amber-5"]:hover::after, a[class*="bg-emerald-6"]:hover::after, a[class*="bg-royal-7"]:hover::after{ left:140%; }

/* Tarjetas: elevación suave al pasar el mouse */
#servicios .rounded-2xl, #servicios .rounded-3xl, #firmas .rounded-2xl{
  transition:transform .3s ease, box-shadow .3s ease;
}
#servicios .rounded-2xl:hover, #servicios .rounded-3xl:hover, #firmas .rounded-2xl:hover{
  transform:translateY(-5px); box-shadow:0 22px 40px -18px rgba(11,31,58,.45);
}

/* ---------- 7. Celular ---------- */
@media (max-width:768px){
  #inicio.gradient-hero::before{
    background:linear-gradient(180deg, rgba(11,23,42,.74), rgba(15,32,70,.88)),
      url("img/fondo-hero-movil.jpg") 65% center / cover no-repeat;
  }
  #firmas{
    background:linear-gradient(180deg, rgba(15,23,42,.88), rgba(15,23,42,.92)),
      url("img/fondo-servicios-movil.jpg") center / cover no-repeat !important;
  }
  #contacto{
    background:linear-gradient(180deg, rgba(11,23,42,.86), rgba(6,14,28,.95)),
      url("img/fondo-contacto-movil.jpg") center / cover no-repeat !important;
  }
}

/* ==========================================================
   8. LOGO ANIMADO (cinemático) — usa tu mismo logo-horizontal.png,
   sin cambiar diseño ni tipografía. El escudo gira, las letras
   tienen profundidad y un brillo recorre "Vs Consulting" y el eslogan.
   ========================================================== */
header a[href="#inicio"]{
  position:relative;
  filter:
    drop-shadow(0 1px 0 rgba(11,31,58,.22))
    drop-shadow(0 2px 0 rgba(11,31,58,.16))
    drop-shadow(0 5px 7px rgba(11,31,58,.28))
    drop-shadow(0 0 0 rgba(226,182,76,0));
  animation:vsLogoGlow 6s ease-in-out 2.6s infinite;
}
header a[href="#inicio"] > img{ opacity:0; }          /* la imagen original solo reserva el espacio */
header a[href="#inicio"]::before,
header a[href="#inicio"]::after{
  content:""; position:absolute; top:0; bottom:0; pointer-events:none;
}
/* Escudo: entra girando como moneda y luego da una vuelta cada 8 s */
header a[href="#inicio"]::before{
  left:0; width:20.1%;
  background:url("logo-horizontal.png") left center / auto 100% no-repeat;
  transform-origin:50% 50%;
  animation:
    vsShieldIn 1.6s cubic-bezier(.2,.8,.2,1) both,
    vsShieldSpin 8s ease-in-out 4s infinite;
}
/* Letras: aparecen de izquierda a derecha y un brillo las recorre */
header a[href="#inicio"]::after{
  left:20.1%; right:0;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%) 200% 0 / 250% 100% no-repeat,
    url("logo-horizontal.png") right center / auto 100% no-repeat;
  -webkit-mask:url("logo-horizontal.png") right center / auto 100% no-repeat;
          mask:url("logo-horizontal.png") right center / auto 100% no-repeat;
  animation:
    vsTextIn 1.1s .7s cubic-bezier(.2,.8,.2,1) both,
    vsShine 6s ease-in-out 1.9s infinite;
}
@keyframes vsShieldIn{
  0%  { transform:perspective(500px) rotateY(-540deg) scale(.35); opacity:0; }
  60% { opacity:1; }
  100%{ transform:perspective(500px) rotateY(0) scale(1); opacity:1; }
}
@keyframes vsShieldSpin{
  0%, 82% { transform:perspective(500px) rotateY(0); }
  100%    { transform:perspective(500px) rotateY(360deg); }
}
@keyframes vsTextIn{
  from{ clip-path:inset(0 100% 0 0); filter:blur(6px); opacity:.2; }
  to  { clip-path:inset(0 0 0 0);    filter:blur(0);   opacity:1; }
}
@keyframes vsShine{
  0%, 55% { background-position:200% 0, right center; }
  85%,100%{ background-position:-100% 0, right center; }
}
@keyframes vsLogoGlow{
  0%, 100%{ filter:drop-shadow(0 1px 0 rgba(11,31,58,.22)) drop-shadow(0 2px 0 rgba(11,31,58,.16)) drop-shadow(0 5px 7px rgba(11,31,58,.28)) drop-shadow(0 0 0 rgba(226,182,76,0)); }
  50%     { filter:drop-shadow(0 1px 0 rgba(11,31,58,.22)) drop-shadow(0 2px 0 rgba(11,31,58,.16)) drop-shadow(0 5px 7px rgba(11,31,58,.28)) drop-shadow(0 0 7px rgba(226,182,76,.85)); }
}

/* ==========================================================
   9. VIDEOS DE FONDO (los agrega vs-videos.js)
   ========================================================== */
.vs-has-video{ position:relative; isolation:isolate; overflow:hidden; }
.vs-bgvideo{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  z-index:-1; opacity:0; transition:opacity 1.2s ease; pointer-events:none;
}
.vs-bgvideo.vs-on{ opacity:1; }
.vs-bgshade{ position:absolute; inset:0; z-index:-1; pointer-events:none; }
.vs-shade-hero{
  background:linear-gradient(100deg, rgba(11,23,42,.93) 0%, rgba(15,32,70,.80) 45%, rgba(20,48,90,.45) 100%);
}
.vs-shade-contacto{
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,74,.18), transparent 60%),
    linear-gradient(180deg, rgba(11,23,42,.82), rgba(6,14,28,.93));
}
.vs-shade-casa{
  background:linear-gradient(90deg, rgba(245,158,11,.95) 0%, rgba(245,158,11,.88) 45%, rgba(251,191,36,.72) 100%);
}
@media (max-width:768px){
  .vs-shade-hero{ background:linear-gradient(180deg, rgba(11,23,42,.78), rgba(15,32,70,.90)); }
  .vs-shade-casa{ background:linear-gradient(180deg, rgba(245,158,11,.92), rgba(251,191,36,.88)); }
}

/* ==========================================================
   10. ASISTENTE "¿QUÉ PERMISOS NECESITA TU NEGOCIO?"
   ========================================================== */
#asistente{
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201,162,74,.10), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(29,78,216,.08), transparent 55%),
    #f6f7fb !important;
}
#asistente .rounded-3xl{
  border:1px solid rgba(201,162,74,.25) !important;
  box-shadow:0 30px 60px -30px rgba(11,31,58,.35), 0 0 0 6px rgba(255,255,255,.6) !important;
}
/* Números de paso con degradado */
#asistente .rounded-full.bg-royal-700{
  background:linear-gradient(135deg,#2f63e0,#14305a) !important;
  box-shadow:0 4px 10px -3px rgba(29,78,216,.6);
}

/* Botones de tipo de negocio */
#tipo-negocio .chip{
  position:relative; overflow:hidden;
  background:linear-gradient(180deg,#ffffff,#f7f9fd);
  border-color:#e3e8f2 !important;
  box-shadow:0 2px 6px -2px rgba(11,31,58,.08);
  transition:transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, background .28s ease, color .28s ease !important;
}
#tipo-negocio .chip i{
  width:46px; height:46px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:9999px; font-size:1.15rem;
  color:#14305a; background:linear-gradient(135deg,#eef3ff,#fdf6e3);
  box-shadow:inset 0 0 0 1px rgba(20,48,90,.08);
  transition:transform .4s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease;
}
#tipo-negocio label:hover .chip{
  transform:translateY(-5px);
  border-color:rgba(201,162,74,.75) !important;
  box-shadow:0 18px 30px -16px rgba(11,31,58,.45);
  color:#0b1f3a;
}
#tipo-negocio label:hover .chip i{ transform:scale(1.1) rotate(-6deg); }
/* Brillo que recorre el botón */
#tipo-negocio .chip::after{
  content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.65), transparent);
  transform:skewX(-20deg); transition:left .75s ease; pointer-events:none;
}
#tipo-negocio label:hover .chip::after{ left:140%; }
/* Seleccionado */
#tipo-negocio .chip-input:checked + .chip{
  background:linear-gradient(135deg,#14305a 0%,#1d4ed8 100%) !important;
  color:#fff !important; border-color:#c9a24a !important;
  box-shadow:0 18px 34px -14px rgba(29,78,216,.65), 0 0 0 3px rgba(201,162,74,.35) !important;
  transform:translateY(-3px);
}
#tipo-negocio .chip-input:checked + .chip i{
  color:#14305a; background:linear-gradient(135deg,#f5c34b,#e2a83a);
  box-shadow:0 6px 14px -6px rgba(226,168,58,.9);
}
#tipo-negocio .chip-input:checked + .chip::after{
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.25), transparent);
}
#tipo-negocio .chip-input:focus-visible + .chip{ outline:3px solid rgba(201,162,74,.7); outline-offset:3px; }

/* Selector de cantón */
#canton{
  border-radius:9999px !important; padding-left:1.2rem !important;
  border-color:#dfe5ef !important;
  box-shadow:0 2px 6px -2px rgba(11,31,58,.08);
  transition:border-color .25s ease, box-shadow .25s ease;
}
#canton:hover{ border-color:rgba(201,162,74,.7) !important; }
#canton:focus{ border-color:#c9a24a !important; box-shadow:0 0 0 4px rgba(201,162,74,.22) !important; }

/* Opciones de "Tu situación" como píldoras */
#asistente label:has(> input.extra){
  padding:.55rem .85rem; border-radius:9999px;
  border:1px solid #e3e8f2; background:#fff;
  transition:border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
#asistente label:has(> input.extra):hover{
  border-color:rgba(201,162,74,.7); transform:translateX(3px);
  box-shadow:0 8px 16px -12px rgba(11,31,58,.5);
}
#asistente label:has(> input.extra:checked){
  border-color:#1d4ed8; background:linear-gradient(90deg,#eef3ff,#ffffff); color:#14305a; font-weight:600;
}
#asistente input.extra{ accent-color:#1d4ed8; }

/* Resultado del asistente: aparece con suavidad */
#resultado:not(.hidden){ animation:vsUp .6s cubic-bezier(.2,.7,.2,1) both; }
#lista-permisos li{ transition:transform .25s ease; }
#lista-permisos li:hover{ transform:translateX(4px); }
