/*!
 * Soft Kit 1.0 — Softlutionic Component Kit
 *
 * Fusión de dos sistemas:
 *  - Notch Kit 1.0   → tarjetas con muescas cóncavas, dock, stack, pin
 *                      (notch-kit.css debe cargarse ANTES de este archivo)
 *  - SEOAI / Awaiken → tokens, pill buttons con flecha viajera, eyebrow
 *                      con punto, sweep cards, nav pill, marquee, stats
 *
 * Convención: todo lo nuevo usa el prefijo .sk-*.
 * Los tokens --nk-* se re-skinan aquí para que las tarjetas con muesca
 * hereden la paleta SEOAI automáticamente.
 */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Paleta SEOAI */
  --sk-primary:  #101828;   /* ink navy — headings, dark sections, nav    */
  --sk-surface:  #ffffff;   /* tarjetas / panels                          */
  --sk-bg:       #f7f8f8;   /* fondo de página                            */
  --sk-text:     #666666;   /* cuerpo                                     */
  --sk-accent:   #794aff;   /* violeta signature                          */
  --sk-accent-2: #9b7bff;   /* violeta claro (gradientes / hover suave)   */
  --sk-white:    #ffffff;
  --sk-divider:      rgb(16 24 40 / 0.10);   /* hairline claro            */
  --sk-divider-dark: rgb(255 255 255 / 0.10);/* hairline sobre oscuro     */
  --sk-error:    rgb(230 87 87);

  /* Tipografía */
  --sk-font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radios */
  --sk-r-lg: 20px;   /* cards y panels                 */
  --sk-r-pill: 30px; /* botones                        */
  --sk-r-nav: 100px; /* header pill                    */

  /* ── Re-skin de Notch Kit ────────────────────────────────────────────── */
  --nk-surface:   var(--sk-surface);
  --nk-surface-2: var(--sk-bg);
  --nk-page:      var(--sk-bg);        /* parche del fallback sin shape() */
  --nk-text:      var(--sk-primary);
  --nk-muted:     var(--sk-text);
  --nk-edge:      rgb(16 24 40 / 0.14);
  --nk-shadow:    rgb(16 24 40 / 0.10);
  --nk-ink:       var(--sk-primary);
  --nk-ink-fg:    #ffffff;
  --nk-accent:    var(--sk-accent);
  --nk-accent-fg: #ffffff;
  --nk-r:         var(--sk-r-lg);
}

/* Contexto oscuro: dentro de .sk-dark las nk-cards se vuelven oscuras solas */
.sk-dark {
  --nk-surface:   #1b2437;
  --nk-surface-2: #141d30;
  --nk-page:      var(--sk-primary);
  --nk-text:      #f4f6fb;
  --nk-muted:     #aab2c5;
  --nk-edge:      rgb(255 255 255 / 0.12);
  --nk-shadow:    rgb(0 0 0 / 0.35);
  --nk-ink:       #ffffff;
  --nk-ink-fg:    var(--sk-primary);
}

/* ==========================================================================
   2. BOTÓN SIGNATURE  ·  .sk-btn
   Pill violeta con círculo de flecha a la derecha. En hover el círculo
   "viaja" a la izquierda y una cortina clara barre el botón de derecha a
   izquierda. Réplica del .btn-default de SEOAI.
   ========================================================================== */
.sk-btn {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  font-family: var(--sk-font);
  color: var(--sk-white);
  background: var(--sk-accent);
  border: 1px solid var(--sk-accent);
  border-radius: var(--sk-r-pill);
  padding: 16px 55px 16px 24px;
  outline: none;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.4s ease-in-out, padding 0.4s ease-in-out;
  z-index: 1;
}
/* círculo con flecha — empieza a la derecha */
.sk-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  background-color: var(--sk-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px auto;
  border-radius: 50%;
  transition: all 0.4s ease-in-out;
}
/* cortina de barrido — crece desde la derecha */
.sk-btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  height: 100%;
  background: var(--sk-white);
  border-radius: var(--sk-r-pill);
  transition: all 0.4s ease-in-out;
  z-index: -1;
}
.sk-btn:hover,
.sk-btn:focus-visible {
  color: var(--sk-accent);
  padding: 16px 24px 16px 55px;   /* el texto compensa: el círculo pasa a la izquierda */
}
.sk-btn:hover::before,
.sk-btn:focus-visible::before {
  right: 100%;
  background-color: var(--sk-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  transform: translate(calc(100% + 5px), -50%);
}
.sk-btn:hover::after,
.sk-btn:focus-visible::after {
  width: 100%;
}

/* Variante clara: botón blanco, barrido violeta */
.sk-btn--light {
  color: var(--sk-primary);
  background: var(--sk-white);
  border-color: var(--sk-white);
}
.sk-btn--light::before {
  background-color: var(--sk-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}
.sk-btn--light::after { background: var(--sk-accent); }
.sk-btn--light:hover,
.sk-btn--light:focus-visible { color: var(--sk-white); }
.sk-btn--light:hover::before,
.sk-btn--light:focus-visible::before {
  background-color: var(--sk-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

/* Variante ink: sobre secciones oscuras */
.sk-btn--ink {
  color: var(--sk-white);
  background: var(--sk-primary);
  border-color: var(--sk-primary);
}

/* ==========================================================================
   3. ENLACE "LEER MÁS"  ·  .sk-more
   Texto + círculo violeta con flecha rotada -45° que se endereza en hover.
   ========================================================================== */
.sk-more {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  line-height: normal;
  color: var(--sk-primary);
  padding-right: 30px;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.sk-more::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 20px;
  height: 20px;
  transform: translateY(-50%) rotate(-45deg);
  background-color: var(--sk-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px auto;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}
.sk-more:hover { color: var(--sk-accent); }
.sk-more:hover::before { transform: translateY(-50%) rotate(0deg); }
.sk-dark .sk-more { color: var(--sk-white); }

/* ==========================================================================
   4. TIPOGRAFÍA DE SECCIÓN  ·  eyebrow con punto + títulos
   ========================================================================== */
.sk-eyebrow {
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sk-primary);
  padding-left: 18px;
  margin-bottom: 15px;
}
.sk-eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sk-accent);
}
.sk-dark .sk-eyebrow { color: var(--sk-white); }

.sk-h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.375rem);   /* ~70px */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sk-primary);
  margin: 0;
}
.sk-h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.875rem);   /* ~46px */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--sk-primary);
  margin: 0;
}
.sk-dark .sk-h1, .sk-dark .sk-h2 { color: var(--sk-white); }
.sk-h1 .sk-mark, .sk-h2 .sk-mark { color: var(--sk-accent); }

/* ==========================================================================
   5. PANEL Y SECCIÓN OSCURA
   .sk-panel → tarjeta blanca gigante con radio 20 (bg-section)
   .sk-dark  → sección navy con brillo violeta tenue arriba
   ========================================================================== */
.sk-panel {
  background: var(--sk-surface);
  border-radius: var(--sk-r-lg);
}
.sk-dark {
  position: relative;
  background-color: var(--sk-primary);
  background-image:
    radial-gradient(900px 420px at 50% -10%, rgb(121 74 255 / 0.22), transparent 65%);
  color: var(--sk-text);
  overflow: hidden;
}
.sk-dark .sk-text-dim { color: #aab2c5; }

/* ==========================================================================
   6. SWEEP CARD  ·  .sk-sweep (sobre .nk-card)
   En hover la tarjeta se rellena de violeta y el texto pasa a blanco.
   El relleno respeta la muesca porque se pinta sobre .nk-shape::before.
   ========================================================================== */
.nk-card.sk-sweep .nk-shape::before { transition: background-color 0.4s ease-in-out; }
.nk-card.sk-sweep:hover .nk-shape::before { background: var(--sk-accent); }
.nk-card.sk-sweep:hover,
.nk-card.sk-sweep:hover .card-title,
.nk-card.sk-sweep:hover .card-desc,
.nk-card.sk-sweep:hover .card-badge,
.nk-card.sk-sweep:hover h3,
.nk-card.sk-sweep:hover p { color: var(--sk-white); }
.nk-card.sk-sweep:hover .tag {
  background: rgb(255 255 255 / 0.14);
  color: var(--sk-white);
}
/* el botón del hueco se invierte */
.nk-card.sk-sweep:hover .nk-slot > .nk-btn {
  background: var(--sk-white);
  color: var(--sk-accent);
}

/* ==========================================================================
   7. STAT / CONTADOR  ·  .sk-stat
   ========================================================================== */
.sk-stat {
  border-bottom: 1px solid var(--sk-divider);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.sk-stat:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }
.sk-stat__num {
  font-size: clamp(2.5rem, 4vw, 3.75rem);   /* ~60px */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sk-primary);
  font-family: var(--sk-font);
}
.sk-stat__num em { color: var(--sk-accent); font-style: normal; }
.sk-stat__label { margin-top: 6px; color: var(--sk-text); font-size: 0.95rem; }
.sk-dark .sk-stat { border-color: var(--sk-divider-dark); }
.sk-dark .sk-stat__num { color: var(--sk-white); }
.sk-dark .sk-stat__label { color: #aab2c5; }

/* ==========================================================================
   8. CHECKLIST  ·  .sk-checklist
   ========================================================================== */
.sk-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sk-checklist li {
  position: relative;
  line-height: 1.5;
  padding-left: 28px;
  margin-bottom: 18px;
  color: var(--sk-text);
}
.sk-checklist li:last-child { margin-bottom: 0; }
.sk-checklist li::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--sk-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px auto;
}
.sk-dark .sk-checklist li { color: #aab2c5; }

/* ==========================================================================
   9. NAV PILL  ·  .sk-navpill
   Header flotante redondeado: glass oscuro, se vuelve sólido con .is-solid.
   ========================================================================== */
.sk-navpill {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--sk-divider-dark);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border-radius: var(--sk-r-nav);
  border: 1px solid var(--sk-divider-dark);
  padding: 14px 22px;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.sk-navpill.is-solid { background: var(--sk-primary); }
.sk-navpill a { color: var(--sk-white); text-decoration: none; }

/* ==========================================================================
   10. MARQUEE  ·  .sk-marquee
   Cinta infinita: duplicar el contenido dentro de .sk-marquee__track.
   ========================================================================== */
.sk-marquee { overflow: hidden; position: relative; }
.sk-marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: sk-marquee 28s linear infinite;
}
.sk-marquee:hover .sk-marquee__track { animation-play-state: paused; }
@keyframes sk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sk-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--sk-primary);
  white-space: nowrap;
}
.sk-marquee__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sk-accent);
  flex: none;
}
.sk-dark .sk-marquee__item { color: var(--sk-white); }

/* ==========================================================================
   11. DOTS DE SLIDER  ·  .sk-dotnav
   Punto activo alargado (pill) en violeta.
   ========================================================================== */
.sk-dotnav { display: flex; align-items: center; gap: 8px; }
.sk-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(16 24 40 / 0.18);
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.sk-dot.active,
.sk-dot[aria-current="true"] {
  width: 26px;
  background: var(--sk-accent);
}
.sk-dark .sk-dot { background: rgb(255 255 255 / 0.25); }
.sk-dark .sk-dot.active { background: var(--sk-accent); }

/* ==========================================================================
   12. CHIP / BADGE
   ========================================================================== */
.sk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sk-primary);
  background: var(--sk-surface);
  border: 1px solid var(--sk-divider);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.sk-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sk-accent);
}
.sk-chip--plain::before { display: none; }
.sk-dark .sk-chip {
  background: rgb(255 255 255 / 0.07);
  border-color: var(--sk-divider-dark);
  color: var(--sk-white);
}

.sk-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sk-accent);
  background: rgb(121 74 255 / 0.10);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

/* ==========================================================================
   13. IMAGEN CON SHINE  ·  .sk-anime
   Barrido de luz diagonal en hover (image-anime de SEOAI).
   ========================================================================== */
.sk-anime { position: relative; overflow: hidden; display: block; }
.sk-anime::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0;
  left: 50%;
  top: 50%;
  background: rgb(255 255 255 / 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
  pointer-events: none;
}
.sk-anime:hover::after {
  height: 250%;
  transition: all 600ms linear;
  background: transparent;
}

/* ==========================================================================
   14. EXTRAS DE NOTCH KIT
   ========================================================================== */
/* Dock oscuro para heroes navy */
.nk-dock.sk-dock--dark {
  --nk-surface: rgb(16 24 40 / 0.75);
  --nk-text: #f4f6fb;
  --nk-muted: #aab2c5;
  --nk-surface-2: rgb(255 255 255 / 0.08);
  --nk-edge: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
/* El botón del hueco adopta el estilo pill SEOAI (flecha ya va en markup) */
.nk-slot > .nk-btn { font-family: var(--sk-font); letter-spacing: 0.01em; }

/* ==========================================================================
   15. MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .sk-btn, .sk-btn::before, .sk-btn::after,
  .sk-more, .sk-more::before,
  .nk-card.sk-sweep .nk-shape::before,
  .sk-dot { transition: none; }
  .sk-marquee__track { animation: none; }
  .sk-anime:hover::after { transition: none; height: 0; }
}
