/* ============================================================================
   ANDERCODE — PÁGINAS INSTITUCIONALES
   About · Contacto · Privacidad · Términos
   Mantiene el lenguaje visual de la home sin afectar el resto del sitio.
============================================================================ */

:root {
    --sp-primary: #7c3aed;
    --sp-primary-dark: #5b21b6;
    --sp-primary-soft: #f5f0ff;
    --sp-ink: #18181b;
    --sp-muted: #686672;
    --sp-border: #e9e5f0;
    --sp-surface: #ffffff;
    --sp-soft: #faf9fc;
    --sp-dark: #17141f;
    --sp-radius-lg: 28px;
    --sp-radius-md: 20px;
    --sp-radius-sm: 14px;
    --sp-shadow: 0 18px 50px rgba(35, 26, 54, .08);
    --sp-shadow-hover: 0 24px 65px rgba(35, 26, 54, .13);
}

.static-page {
    background: #fff;
    color: var(--sp-ink);
    overflow: hidden;
}

.static-page h1,
.static-page h2,
.static-page h3,
.static-page h4,
.static-page h5,
.static-page h6 {
    border: 0;
    padding-left: 0;
    color: var(--sp-ink);
}

.static-page a:hover {
    text-decoration: none;
}

/* HERO -------------------------------------------------------------------- */
.static-page-hero {
    position: relative;
    padding: 6rem 0 5.25rem;
    background:
        radial-gradient(circle at 88% 18%, rgba(124, 58, 237, .16), transparent 28%),
        radial-gradient(circle at 12% 88%, rgba(99, 102, 241, .10), transparent 30%),
        linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(124, 58, 237, .08);
}

.static-page-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -150px;
    bottom: -180px;
    border: 1px solid rgba(124, 58, 237, .10);
    border-radius: 50%;
    pointer-events: none;
}

.static-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, .09);
    color: var(--sp-primary-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.static-page-title {
    max-width: 860px;
    margin-bottom: 1.2rem;
    font-size: clamp(2.55rem, 6vw, 4.75rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 900;
}

.static-page-title span {
    color: var(--sp-primary);
}

.static-page-lead {
    max-width: 770px;
    margin-bottom: 0;
    color: var(--sp-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.75;
}

.static-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.8rem;
}

.static-hero-actions .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    font-weight: 700;
}

.static-hero-note {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.35rem;
    color: var(--sp-muted);
    font-size: .92rem;
}

.static-hero-note i {
    color: var(--sp-primary);
}

.static-hero-visual {
    position: relative;
    max-width: 470px;
    margin-left: auto;
}

.static-hero-image-card {
    position: relative;
    padding: 1.1rem;
    border-radius: 34px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(124, 58, 237, .12);
    box-shadow: var(--sp-shadow);
    backdrop-filter: blur(10px);
}

.static-hero-image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
}

.static-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 190px;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sp-border);
    box-shadow: 0 14px 32px rgba(35, 26, 54, .10);
}

.static-floating-badge i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
}

.static-floating-badge strong,
.static-floating-badge small {
    display: block;
}

.static-floating-badge strong {
    font-size: .92rem;
}

.static-floating-badge small {
    margin-top: .1rem;
    color: var(--sp-muted);
    font-size: .75rem;
}

.static-floating-badge.top {
    left: -42px;
    top: 40px;
}

.static-floating-badge.bottom {
    right: -30px;
    bottom: 35px;
}

/* SECTION BASICS ---------------------------------------------------------- */
.static-section {
    padding: 5.5rem 0;
}

.static-section-soft {
    background: var(--sp-soft);
}

.static-section-dark {
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(124, 58, 237, .26), transparent 32%),
        var(--sp-dark);
}

.static-section-dark h2,
.static-section-dark h3,
.static-section-dark h4 {
    color: #fff;
}

.static-section-heading {
    max-width: 760px;
    margin-bottom: 2.25rem;
}

.static-section-label {
    display: inline-block;
    margin-bottom: .65rem;
    color: var(--sp-primary);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.static-section-title {
    margin-bottom: .8rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.static-section-copy {
    color: var(--sp-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* CARDS ------------------------------------------------------------------- */
.static-card {
    height: 100%;
    padding: 1.65rem;
    border-radius: var(--sp-radius-md);
    background: #fff;
    border: 1px solid var(--sp-border);
    box-shadow: 0 10px 35px rgba(35, 26, 54, .045);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.static-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, .22);
    box-shadow: var(--sp-shadow-hover);
}

.static-card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.15rem;
    border-radius: 16px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
    font-size: 1.25rem;
}

.static-card h3 {
    margin-bottom: .7rem;
    font-size: 1.2rem;
}

.static-card p {
    margin-bottom: 0;
    color: var(--sp-muted);
    line-height: 1.7;
}

.static-check-list {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.static-check-list li {
    display: flex;
    gap: .75rem;
    color: var(--sp-muted);
    line-height: 1.6;
}

.static-check-list i {
    margin-top: .25rem;
    color: var(--sp-primary);
}

/* ABOUT ------------------------------------------------------------------- */
.about-manifesto {
    padding: 2rem;
    border-radius: var(--sp-radius-lg);
    background: linear-gradient(135deg, #fff 0%, #f8f4ff 100%);
    border: 1px solid rgba(124, 58, 237, .14);
}

.about-manifesto blockquote {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.45;
    letter-spacing: -.025em;
    font-weight: 800;
}

.about-manifesto p {
    margin: 1rem 0 0;
    color: var(--sp-muted);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.8rem;
    color: var(--sp-ink);
    border-radius: var(--sp-radius-md);
    background: #fff;
    border: 1px solid var(--sp-border);
    box-shadow: 0 10px 30px rgba(35, 26, 54, .04);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    color: var(--sp-ink);
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, .24);
    box-shadow: var(--sp-shadow-hover);
}

.project-card .project-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
    border-radius: 15px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
    font-size: 1.2rem;
}

.project-card h3 {
    margin-bottom: .55rem;
    font-size: 1.25rem;
}

.project-card p {
    color: var(--sp-muted);
    line-height: 1.7;
}

.project-card .project-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: auto;
    color: var(--sp-primary);
    font-weight: 800;
}

/* CONTACT ----------------------------------------------------------------- */
.contact-method-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem;
    border-radius: var(--sp-radius-md);
    background: #fff;
    border: 1px solid var(--sp-border);
}

.contact-method-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 15px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
}

.contact-method-card small,
.contact-method-card strong {
    display: block;
}

.contact-method-card small {
    margin-bottom: .15rem;
    color: var(--sp-muted);
}

.contact-method-card strong {
    margin-bottom: .35rem;
}

.contact-method-card a {
    font-weight: 700;
    word-break: break-word;
}

.contact-help-card {
    height: 100%;
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

.contact-help-card i {
    margin-bottom: .9rem;
    color: #c4b5fd;
    font-size: 1.35rem;
}

.contact-help-card h3 {
    margin-bottom: .45rem;
    font-size: 1.05rem;
}

.contact-help-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .92rem;
    line-height: 1.65;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .8rem;
}

.social-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 108px;
    padding: .9rem;
    border-radius: 18px;
    color: var(--sp-ink);
    background: #fff;
    border: 1px solid var(--sp-border);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.social-tile:hover {
    color: var(--sp-primary);
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, .24);
    box-shadow: 0 14px 30px rgba(35, 26, 54, .08);
}

.social-tile i {
    font-size: 1.45rem;
    color: var(--sp-primary);
}

.social-tile span {
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

/* LEGAL ------------------------------------------------------------------- */
.legal-intro-strip {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.legal-summary {
    padding: 1.5rem;
    border-radius: var(--sp-radius-md);
    background: #fff;
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.legal-summary-item {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
}

.legal-summary-item i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
}

.legal-summary-item strong,
.legal-summary-item small {
    display: block;
}

.legal-summary-item strong {
    margin-bottom: .15rem;
    font-size: .92rem;
}

.legal-summary-item small {
    color: var(--sp-muted);
    line-height: 1.45;
}

.legal-layout {
    padding: 4.5rem 0 5.5rem;
}

.legal-nav {
    position: sticky;
    top: 105px;
    padding: 1.2rem;
    border-radius: 18px;
    background: var(--sp-soft);
    border: 1px solid var(--sp-border);
}

.legal-nav-title {
    display: block;
    margin-bottom: .8rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--sp-muted);
}

.legal-nav a {
    display: flex;
    gap: .65rem;
    padding: .62rem .7rem;
    border-radius: 10px;
    color: #4a4752;
    font-size: .88rem;
    font-weight: 650;
}

.legal-nav a:hover {
    color: var(--sp-primary);
    background: #fff;
}

.legal-nav a span {
    min-width: 22px;
    color: var(--sp-primary);
    font-weight: 800;
}

.legal-content {
    max-width: 860px;
}

.legal-section {
    padding: 0 0 2.3rem;
    margin-bottom: 2.3rem;
    border-bottom: 1px solid var(--sp-border);
    scroll-margin-top: 115px;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-section-heading {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1rem;
}

.legal-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: var(--sp-primary-soft);
    color: var(--sp-primary);
    font-size: .9rem;
    font-weight: 900;
}

.legal-section h2 {
    margin: .35rem 0 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.legal-section p,
.legal-section li {
    color: #55515d;
    line-height: 1.82;
}

.legal-section ul {
    padding-left: 1.2rem;
}

.legal-section li + li {
    margin-top: .45rem;
}

.legal-callout {
    display: flex;
    gap: .9rem;
    padding: 1.15rem 1.25rem;
    margin-top: 1.2rem;
    border-radius: 16px;
    background: var(--sp-primary-soft);
    color: #4d445e;
}

.legal-callout i {
    margin-top: .22rem;
    color: var(--sp-primary);
}

.legal-email {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .72rem .95rem;
    margin-top: .35rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--sp-border);
    font-weight: 800;
}

/* CTA --------------------------------------------------------------------- */
.static-cta {
    padding: 0 0 5.5rem;
}

.static-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border-radius: var(--sp-radius-lg);
    background:
        radial-gradient(circle at 90% 15%, rgba(124, 58, 237, .13), transparent 34%),
        linear-gradient(135deg, #f8f4ff, #fff);
    border: 1px solid rgba(124, 58, 237, .14);
}

.static-cta-box h2 {
    margin-bottom: .45rem;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    letter-spacing: -.035em;
}

.static-cta-box p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--sp-muted);
}

/* RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .static-floating-badge.top {
        left: -15px;
    }

    .static-floating-badge.bottom {
        right: -5px;
    }

    .social-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .static-page-hero {
        padding: 4.75rem 0 4rem;
    }

    .static-hero-visual {
        max-width: 600px;
        margin: 1rem auto 0;
    }

    .static-floating-badge.top {
        left: 4%;
    }

    .static-floating-badge.bottom {
        right: 4%;
    }

    .static-section {
        padding: 4.5rem 0;
    }

    .legal-nav {
        position: static;
        margin-bottom: 1.5rem;
    }

    .legal-nav .legal-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .2rem;
    }

    .legal-summary-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .static-page-hero {
        padding: 4rem 0 3.5rem;
    }

    .static-page-title {
        font-size: clamp(2.5rem, 13vw, 3.5rem);
    }

    .static-page-lead {
        font-size: 1rem;
    }

    .static-hero-actions .btn {
        width: 100%;
    }

    .static-floating-badge {
        position: static;
        min-width: 0;
        margin-top: .75rem;
    }

    .static-section,
    .legal-layout {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    .legal-intro-strip {
        margin-top: -1rem;
    }

    .legal-nav .legal-nav-links {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .static-cta {
        padding-bottom: 4rem;
    }

    .static-cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .static-cta-box .btn {
        width: 100%;
    }
}

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

    .social-tile {
        min-height: 96px;
    }
}
