/* Codigo hecho por Ey40-0 */
/* Supo — landing page y política de privacidad */
/* Color de marca: morado #7c5cfc, distinto al azul del portafolio */

/* ─── Tokens de diseño ─────────────────────────────────────────── */
:root {
    --purple:        #7c5cfc;
    --purple-dim:    #6244e0;
    --purple-faint:  hsl(255 95% 68% / .12);
    --purple-border: hsl(255 95% 72% / .28);

    --bg:            #f5f7fa;
    --bg-card:       #ffffff;
    --bg-dark:       #0f0d17;

    --text:          #1a1826;
    --text-muted:    #5a5470;
    --text-light:    #ede9ff;

    --radius:        10px;
    --radius-sm:     6px;
    --shadow-card:   0 2px 16px hsl(255 40% 60% / .10), 0 1px 4px hsl(0 0% 0% / .04);
    --transition:    .22s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ─── Base ───────────────────────────────────────────────────────── */
body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Google Sans', 'Nunito', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
a { text-decoration: none; }

/* ─── Header ─────────────────────────────────────────────────────── */
.header-bar {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--purple-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.nav-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.brand-link {
    font-family: 'Google Sans', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: hsl(255 50% 75%);
}
.nav-link {
    color: hsl(0 0% 78%);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .2rem 0;
    position: relative;
    transition: color var(--transition);
}
.nav-link::after,
.brand-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.15rem;
    width: 100%;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
.nav-link:hover,
.brand-link:hover { color: var(--purple); }
.nav-link:hover::after,
.brand-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ─── Layout base ─────────────────────────────────────────────────── */
.section-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* ─── Separador de sección ─────────────────────────────────────────── */
.section-heading {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.section-heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5em;
    background: var(--purple);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Portada ─────────────────────────────────────────────────────── */
.seccion-portada {
    background: var(--bg-dark);
    background-image:
        radial-gradient(hsl(255 80% 75% / .06) 1px, transparent 1px);
    background-size: 28px 28px;
}
#portada-app {
    max-width: 700px;
    margin: 0 auto;
    padding: 7rem 2rem 6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.icono-portada {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.6rem;
    box-shadow: 0 8px 32px hsl(255 80% 60% / .35);
}
.icono-portada img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#app-title {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    color: var(--text-light);
    margin-bottom: .6rem;
    letter-spacing: -.01em;
}
#eslogan-app {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 1.4rem;
    letter-spacing: .01em;
}
#app-description {
    font-size: 1rem;
    color: hsl(255 15% 72%);
    max-width: 52ch;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}
.acciones-portada {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.text-link {
    color: hsl(255 50% 75%);
    font-weight: 600;
    font-size: .9rem;
    position: relative;
    transition: color var(--transition);
}
.text-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.15rem;
    width: 100%;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
.text-link:hover { color: var(--purple); }
.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ─── Botones ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1.8rem;
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 14px hsl(255 80% 65% / .3);
}
.btn:hover {
    background: var(--purple-dim);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px hsl(255 80% 60% / .4);
}
.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 1.5px solid var(--purple-border);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--purple-faint);
    color: var(--purple);
    box-shadow: none;
    transform: translateY(-2px);
}

/* ─── Manual de uso ─────────────────────────────────────────────────── */
.manual-section {
    background: var(--bg);
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.3rem;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid hsl(255 30% 88%);
    border-top: 3px solid var(--purple);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: .7rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px hsl(255 40% 60% / .14);
}
.step-number {
    display: block;
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--purple);
    opacity: .5;
    line-height: 1;
}
.step-card h3 {
    font-size: 1rem;
    color: var(--text);
}
.step-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: hsl(255 30% 96%);
    display: flex;
}
.step-image img {
    width: 100%;
    height: auto;
    display: block;
}
.step-text {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Privacidad ─────────────────────────────────────────────────── */
.privacy-section {
    background: var(--bg);
}
.privacy-section > .section-wrap,
.privacy-inner {
    max-width: 600px;
}
.privacy-intro {
    font-size: .97rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}
.privacidad-puntos {
    list-style: none;
    padding: 0;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.privacidad-puntos li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .96rem;
    color: var(--text);
}
.privacidad-puntos li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--purple-faint);
    border: 1.5px solid var(--purple-border);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%237c5cfc' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ─── Apoyame ─────────────────────────────────────────────────────── */
.coffee-section {
    background: var(--bg);
}
.coffee-box {
    background: var(--bg-dark);
    border-radius: var(--radius);
    border: 1px solid var(--purple-border);
    padding: 3rem 2.5rem;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background-image:
        radial-gradient(hsl(255 80% 75% / .05) 1px, transparent 1px);
    background-size: 24px 24px;
}
.coffee-box .section-heading {
    color: var(--text-light);
}
.coffee-box .section-heading::before {
    background: var(--purple);
}
.coffee-box p {
    font-size: .97rem;
    color: hsl(255 15% 68%);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--purple-border);
    color: hsl(255 15% 55%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: 1.6rem 2.5rem;
    font-size: .85rem;
}
footer a {
    color: var(--purple);
    font-weight: 700;
    position: relative;
}
footer a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.15rem;
    width: 100%;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
footer a:hover { color: var(--text-light); }
footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    background: var(--text-light);
}

/* Íconos de redes sociales en el footer (inyectados por site-config.js) */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.footer-socials a {
    color: hsl(255 15% 55%);
    display: flex;
    align-items: center;
    transition: color var(--transition), transform var(--transition);
}
.footer-socials a::after { display: none; }
.footer-socials a:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

/* ─── Accesibilidad: focus visible ─────────────────────────────── */
.nav-link:focus-visible,
.brand-link:focus-visible,
.text-link:focus-visible,
.btn:focus-visible,
footer a:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ─── Animaciones de entrada ─────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Política de privacidad ─────────────────────────────────────── */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.legal-page h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: .6rem;
}
.updated-tag {
    display: block;
    color: var(--text-muted);
    font-size: .85rem;
    font-style: italic;
    margin-bottom: 2.5rem;
}
.toc {
    background: var(--bg-card);
    border: 1px solid hsl(255 30% 88%);
    border-left: 3px solid var(--purple);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}
.toc h2 {
    font-size: 1rem;
    margin-bottom: .8rem;
    color: var(--text);
}
.toc ol {
    padding-left: 1.2rem;
}
.toc li {
    margin-bottom: .4rem;
}
.toc a {
    color: var(--purple);
    font-size: .92rem;
    position: relative;
}
.toc a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.12rem;
    width: 100%;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}
.toc a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.toc a:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
    border-radius: 2px;
}
.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(255 20% 90%);
}
.policy-section:last-child {
    border-bottom: none;
}
.policy-section h2 {
    font-size: 1.25rem;
    margin-bottom: .85rem;
    color: var(--text);
}
.policy-section p {
    font-size: .96rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.policy-section p:last-child { margin-bottom: 0; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .header-bar {
        padding: .85rem 1.4rem;
        flex-wrap: wrap;
        gap: .6rem;
    }
    .nav-bar { gap: 1.2rem; }
    .section-wrap { padding: 3.5rem 1.4rem; }
    #portada-app { padding: 5rem 1.4rem 4rem; }
    .coffee-box { padding: 2rem 1.4rem; }
    footer { padding: 1.4rem; }
    .legal-page { padding: 2.5rem 1.4rem; }
}
@media (max-width: 480px) {
    #app-title { font-size: 2.2rem; }
    .acciones-portada { flex-direction: column; width: 100%; }
    .acciones-portada .btn,
    .acciones-portada .text-link { width: 100%; text-align: center; justify-content: center; }
    .steps { grid-template-columns: 1fr; }
    footer { flex-direction: column; text-align: center; }
    .footer-socials { justify-content: center; }
    .btn { width: 100%; justify-content: center; }
}

/* ─── Movimiento reducido ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    .fade-up { opacity: 1; transform: none; }
}