/* AURA APPS SL - hoja de estilos unica del sitio corporativo. */

:root {
    color-scheme: light dark;

    --bg: #f7f8fa;
    --bg-elevated: #ffffff;
    --bg-inverse: #0e1420;
    --text: #12181f;
    --text-muted: #59636f;
    --text-inverse: #f2f5f8;
    --border: #e2e6eb;
    --accent: #1f5ae0;
    --accent-soft: #eaf0fd;
    --accent-contrast: #ffffff;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);

    --measure: 68ch;
    --page: 1120px;
    --radius: 14px;
    --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --bg-elevated: #151b23;
        --bg-inverse: #070b11;
        --text: #e9eef4;
        --text-muted: #9aa6b2;
        --text-inverse: #e9eef4;
        --border: #232c38;
        --accent: #6ea0ff;
        --accent-soft: #16233c;
        --accent-contrast: #0d1117;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: min(100% - (var(--gutter) * 2), var(--page));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: var(--gutter);
    top: 12px;
    z-index: 10;
    background: var(--bg-elevated);
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Cabecera --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    letter-spacing: -.01em;
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
}

.brand svg {
    display: block;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .95rem;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--accent-soft);
}

/* Botones ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 560;
    font-size: .98rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: var(--bg-elevated);
}

/* Secciones -------------------------------------------------------------- */

section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section-head {
    max-width: var(--measure);
    margin-bottom: 40px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .78rem;
    font-weight: 620;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: var(--measure);
}

.hero {
    padding-top: clamp(64px, 10vw, 120px);
}

.hero h1 {
    max-width: 18ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Rejillas y tarjetas ---------------------------------------------------- */

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: .4em;
}

.card p:last-child {
    margin-bottom: 0;
}

.card ul {
    margin: 0;
    padding-left: 1.1em;
    color: var(--text-muted);
}

.card li + li {
    margin-top: 6px;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

/* Producto destacado ----------------------------------------------------- */

.product {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow);
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.product ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
}

.product ul li {
    position: relative;
    padding-left: 24px;
}

.product ul li + li {
    margin-top: 10px;
}

.product ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Proceso ---------------------------------------------------------------- */

.steps {
    counter-reset: step;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps li {
    counter-increment: step;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.steps li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    color: var(--accent);
}

.steps h3 {
    font-size: 1.02rem;
}

.steps p {
    color: var(--text-muted);
    margin: 0;
    font-size: .96rem;
}

/* Contacto --------------------------------------------------------------- */

.contact {
    background: var(--bg-inverse);
    color: var(--text-inverse);
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 56px);
}

.contact h2,
.contact .eyebrow {
    color: inherit;
}

.contact .eyebrow {
    opacity: .7;
}

.contact p {
    color: color-mix(in srgb, var(--text-inverse) 75%, transparent);
    max-width: var(--measure);
}

.contact-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 28px;
}

.contact-list dt {
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 4px;
}

.contact-list dd {
    margin: 0;
    font-size: 1.02rem;
}

.contact a {
    color: #9dbcff;
}

/* Pie -------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    color: var(--text-muted);
    font-size: .9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    justify-content: space-between;
}

.site-footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* Paginas de texto (legales, 404) ---------------------------------------- */

.doc {
    padding-top: clamp(40px, 6vw, 72px);
}

.doc .wrap {
    max-width: 780px;
}

.doc h2 {
    margin-top: 2em;
    font-size: 1.3rem;
}

.doc h2:first-of-type {
    margin-top: 1.4em;
}

.doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    font-size: .96rem;
    display: block;
    overflow-x: auto;
}

.doc th,
.doc td {
    text-align: left;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.doc th {
    width: 34%;
    color: var(--text-muted);
    font-weight: 560;
}

.doc ul {
    padding-left: 1.2em;
    color: var(--text-muted);
}

.doc li + li {
    margin-top: 6px;
}

.doc .updated {
    color: var(--text-muted);
    font-size: .9rem;
}

/* Adaptacion a movil ----------------------------------------------------- */

@media (max-width: 760px) {
    .product {
        grid-template-columns: 1fr;
    }

    .site-header .wrap {
        min-height: 60px;
        padding-block: 10px;
    }

    .site-nav {
        width: 100%;
        margin-left: 0;
        gap: 2px;
    }

    .site-nav a {
        padding: 6px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn:hover {
        transform: none;
    }
}
