/* ========== Reset / Base ========== */

/* ===== Botones — Tokens adicionales ===== */
:root{
  --btn-radius: 12px;
  --btn-pad-y: .9rem;
  --btn-pad-x: 1.1rem;
  --btn-gap: .6rem;
  --ok: #16a34a;        /* éxito */
  --ok-600:#15803d;
  --warn:#eab308;       /* advertencia */
  --warn-700:#a16207;
  --danger:#ef4444;     /* error */
  --danger-700:#b91c1c;
}

/* ===== Base ===== */
.btn{
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  --btn-bd: transparent;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid var(--btn-bd);
  color: var(--btn-fg);
  background: var(--btn-bg);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .06s ease;
  box-shadow: var(--shadow);
}
.btn:where(:hover){ transform: translateY(-1px) }
.btn:where(:active){ transform: translateY(0) scale(.99) }
.btn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--btn-bg), white 30%);
  outline-offset: 2px;
}

/* Iconos dentro del botón */
.btn .icon{
  inline-size: 1.1em; block-size: 1.1em; display: inline-block;
}

/* ===== Variantes ===== */
/* Primario */
.btn--primary{ --btn-bg: var(--primary); --btn-fg:#fff; --btn-bd: transparent; }
/* Secundario (sólido neutro) */
.btn--secondary{ --btn-bg: var(--card); --btn-fg: var(--fg); --btn-bd: var(--stroke); box-shadow: none; }
/* Outline */
.btn--outline{ --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--stroke); box-shadow: none; }
.btn--outline:hover{ background: color-mix(in oklab, var(--fg), transparent 92%) }
/* Ghost (apenas visible) */
.btn--ghost{ --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: transparent; box-shadow: none; }
.btn--ghost:hover{ background: color-mix(in oklab, var(--fg), transparent 94%) }
/* Éxito / Advertencia / Peligro */
.btn--success{ --btn-bg: var(--ok); --btn-fg:#fff; }
.btn--warning{ --btn-bg: var(--warn); --btn-fg:#1f2937; }
.btn--danger { --btn-bg: var(--danger); --btn-fg:#fff; }

/* Gradiente (bonito para CTA principal) */
.btn--gradient{
  --btn-bd: transparent; color:#fff;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--primary), #34d399 30%), var(--primary-600));
  box-shadow: 0 10px 30px color-mix(in oklab, var(--primary), transparent 70%);
}

/* ===== Tamaños ===== */
.btn--sm{ --btn-pad-y:.55rem; --btn-pad-x:.8rem; font-size:.92rem; border-radius:10px }
.btn--lg{ --btn-pad-y:1.05rem; --btn-pad-x:1.2rem; font-size:1.05rem; border-radius:14px }
.btn--pill{ border-radius: 999px }
.btn--block{ display:flex; width:100% }
.btn--square{ aspect-ratio:1/1; padding: .8rem; width: auto; min-width: 42px } /* icon-only */

/* ===== Estados ===== */
.btn[disabled], .btn:disabled, .btn[aria-disabled="true"]{
  opacity:.6; cursor:not-allowed; transform:none;
}

/* ===== Carga (spinner) ===== */
.btn--loading{
  pointer-events:none;
}
.btn--loading .btn__label{ opacity:0 }
.btn__spinner{
  position:absolute; inset:0; display:grid; place-items:center;
}
.btn__spinner::after{
  content:""; width:1.1em; height:1.1em; border-radius:50%;
  border:3px solid color-mix(in oklab, var(--btn-bg), #fff 40%);
  border-top-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg) } }

/* ===== Ripple opcional ===== */
.btn.ripple{ overflow:hidden; }
.btn .ripple-effect{
  position:absolute; border-radius:50%; transform:scale(0);
  background: color-mix(in oklab, #fff, var(--btn-bg) 30%);
  opacity:.35; animation: ripple .6s ease-out forwards; pointer-events:none;
}
@keyframes ripple{
  to{ transform:scale(3); opacity:0 }
}

/* ===== Grupo de botones ===== */
.btn-group{ display:inline-flex; align-items:stretch; border-radius:12px; overflow:hidden; border:1px solid var(--stroke) }
.btn-group .btn{ border-radius:0; box-shadow:none; border:none }
.btn-group .btn + .btn{ border-left:1px solid var(--stroke) }

/* ===== Respeto a reducción de movimiento ===== */
@media (prefers-reduced-motion: reduce){
  .btn, .btn:where(:hover,:active){ transition:none; transform:none }
  .btn__spinner::after{ animation: none }
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--fg);
    background: var(--bg)
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

:root {
    --bg: #0b0f14;
    --fg: #e6f1ff;
    --muted: #9bb0c8;
    --primary: #00b894;
    --primary-600: #00a382;
    --card: #111720;
    --stroke: #1c2532;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --max: 1120px;
    --radius: 14px;
    --pad: clamp(16px, 3vw, 28px)
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --fg: #0b1220;
        --muted: #5b6b7f;
        --card: #ffffff;
        --stroke: #e6eef7;
        --shadow: 0 10px 30px rgba(2, 16, 43, .08)
    }
}

.dark {
    --bg: #0b0f14;
    --fg: #e6f1ff;
    --muted: #9bb0c8;
    --card: #111720;
    --stroke: #1c2532;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

.container {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--pad)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow)
}

.btn.secondary {
    background: transparent;
    color: var(--fg);
    border-color: var(--stroke)
}

.btn:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--primary), white 30%)
}

.muted {
    color: var(--muted)
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--primary), transparent 85%);
    color: var(--primary);
    border: 1px solid color-mix(in oklab, var(--primary), transparent 70%)
}

.hide {
    display: none
}

/* ========== Header ========== */
.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    z-index: 9999;
    background: var(--card);
    padding: .6rem .9rem;
    border-radius: 8px;
    border: 1px solid var(--stroke)
}

header {
    position: sticky;
    top: 0;
    background: color-mix(in oklab, var(--bg), black 4%);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--stroke);
    z-index: 50
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem var(--pad)
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800
}

.logo svg {
    width: 28px;
    height: 28px
}

.nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0
}

.hamb {
    display: none
}

@media (max-width: 880px) {
    .hamb {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--stroke);
        border-radius: 10px;
        background: transparent
    }

    .nav ul {
        position: fixed;
        inset: 64px 0 auto 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--stroke);
        display: none
    }

    .nav ul.open {
        display: flex
    }
}

/* ========== Hero ========== */
.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(32px, 6vw, 72px) 0
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.3rem);
    line-height: 1.1;
    margin: .3rem 0
}

.hero p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 52ch
}

.hero-card {
    background: radial-gradient(1200px 400px at 10% -10%, color-mix(in oklab, var(--primary), transparent 86%), transparent), var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: clamp(12px, 2vw, 18px);
    box-shadow: var(--shadow)
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem
}

.stat {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 12px;
    text-align: center
}

/* ========== Sections ========== */
section {
    padding: clamp(40px, 7vw, 90px) 0;
    border-top: 1px solid var(--stroke)
}

.title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 0 0 .8rem
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem
}

.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: clamp(16px, 2.2vw, 22px)
}

.kpi {
    font-weight: 800;
    font-size: 1.6rem
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start
}

.num {
    inline-size: 40px;
    block-size: 36px;
    border-radius: 10%;
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--primary), transparent 85%);
    color: var(--primary);
    font-weight: 700
}

.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center
}

.logos svg {
    width: 36px;
    height: 36px;
    opacity: .9
}

/* ========== Pricing ========== */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch
}

.plan {
    position: relative
}

.plan .badge {
    position: absolute;
    top: 10px;
    right: 10px
}

.price {
    font-size: 2rem;
    font-weight: 900
}

.features {
    display: grid;
    gap: .5rem;
    margin: .8rem 0
}

.features li {
    display: flex;
    align-items: center;
    gap: .6rem
}

.check {
    color: var(--primary)
}


/* ========== FAQ ========== */
details {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 1rem
}

details+details {
    margin-top: .6rem
}

summary {
    cursor: pointer;
    font-weight: 700
}

/* ========== Contacto ========== */
.form {
    display: grid;
    gap: .8rem
}

.form input,
.form textarea {
    width: 100%;
    padding: .9rem;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--fg)
}

.form textarea {
    min-height: 140px;
    resize: vertical
}

/* ========== Footer ========== */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--stroke);
    color: var(--muted)
}

/* ========== Utilities ========== */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .grid-4,
    .pricing {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 640px) {

    .grid-3,
    .grid-4,
    .pricing {
        grid-template-columns: 1fr
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.on {
    opacity: 1;
    transform: none
}

