/* =========================================================
   MUÉVETE · muevete.global
   Colores tomados de la portada del libro.
   ========================================================= */

:root {
    --orange: #F26522;
    --orange-dark: #D9531A;
    --amber: #F9A825;
    --ink: #141414;
    --ink-soft: #2A2A2A;
    --text: #3D3D3D;
    --muted: #6B6B6B;
    --line: #ECE6DF;
    --cream: #FFF7EF;
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, var(--orange) 0%, var(--amber) 100%);
    --radius: 18px;
    --shadow: 0 18px 40px -18px rgba(20, 20, 20, .35);
    --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Source Serif 4", Georgia, serif;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 780px;
}

.center {
    text-align: center;
}

.mt-lg {
    margin-top: 48px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-sm {
    padding: 9px 18px;
    font-size: .95rem;
}

.btn-lg {
    padding: 16px 30px;
    font-size: 1.075rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 10px 24px -10px rgba(242, 101, 34, .8);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(242, 101, 34, .9);
}

.btn-ghost {
    color: var(--ink);
    border-color: #D9D2CA;
    background: var(--white);
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
}

.btn-dark {
    color: var(--white);
    background: var(--ink);
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--orange-dark);
    text-decoration: none;
}

.link-arrow i {
    transition: transform .2s ease;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* ---------- Marca ---------- */
.brand-word {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
}

.v {
    background: linear-gradient(180deg, var(--orange) 0%, var(--amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--orange);
}

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.brand .brand-word {
    font-size: 1.6rem;
}

.brand-by {
    margin-top: 4px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    position: relative;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 96px;
    background: linear-gradient(160deg, #FFFFFF 0%, var(--cream) 55%, #FFE8D3 100%);
}

.hero-glow {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 168, 37, .35) 0%, rgba(242, 101, 34, .12) 45%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(242, 101, 34, .1);
    color: var(--orange-dark);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(242, 101, 34, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(242, 101, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(242, 101, 34, 0);
    }
}

.hero-title {
    margin: 18px 0 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4rem, 11vw, 8.5rem);
    line-height: .9;
    letter-spacing: .01em;
}

.hero-sub {
    max-width: 34ch;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    line-height: 1.4;
    color: var(--ink-soft);
}

.hero-sub strong {
    color: var(--orange-dark);
    font-weight: 600;
}

.hero-author {
    margin-bottom: 24px;
    color: var(--muted);
}

.hero-author strong {
    color: var(--ink);
}

.formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.formats li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: .92rem;
}

.formats i {
    color: var(--orange);
}

.formats strong {
    color: var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-book {
    display: flex;
    justify-content: center;
}

.hero-book img {
    width: min(400px, 100%);
    filter: drop-shadow(0 30px 40px rgba(20, 20, 20, .28));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-12px) rotate(0deg);
    }
}

/* ---------- Secciones ---------- */
.section {
    padding: 104px 0;
}

.section-dark {
    background: var(--ink);
    color: #C9C9C9;
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-cream {
    background: var(--cream);
}

.section-orange {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--orange) 0%, #F37A26 60%, var(--amber) 130%);
    color: rgba(255, 255, 255, .92);
}

.section-orange::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-orange .section-title {
    color: var(--white);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
}

.kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange);
}

.kicker-light {
    color: var(--white);
    opacity: .85;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3rem);
    letter-spacing: .005em;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 1.15rem;
}

.prose p {
    font-size: 1.12rem;
}

.prose strong {
    color: var(--ink);
}

/* Cita */
.pull-quote {
    position: relative;
    margin: 48px 0;
    padding: 36px 40px 32px 48px;
    border-radius: var(--radius);
    background: var(--cream);
    border-left: 5px solid var(--orange);
}

.pull-quote::before {
    content: "“";
    position: absolute;
    top: -18px;
    left: 24px;
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--amber);
}

.pull-quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    line-height: 1.5;
    color: var(--ink-soft);
}

.pull-quote cite {
    font-style: normal;
    font-weight: 600;
    font-size: .95rem;
    color: var(--orange-dark);
}

.pull-quote cite span {
    font-family: var(--font-display);
    letter-spacing: .04em;
}

/* Método */
.method {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.method-step {
    position: relative;
    padding: 28px 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    transition: background-color .25s ease, transform .25s ease;
}

.method-step:hover {
    background: rgba(255, 255, 255, .08);
    transform: translateY(-4px);
}

.method-step:not(:last-child)::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -15px;
    top: 50%;
    z-index: 1;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: .7rem;
    line-height: 26px;
    text-align: center;
}

.step-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--orange);
    margin-bottom: 18px;
}

.method-step>i {
    position: absolute;
    top: 30px;
    right: 22px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .35);
}

.method-step h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: .02em;
    margin-bottom: 8px;
}

.method-step p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}

/* Beneficios */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit {
    padding: 36px 32px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 2px 0 var(--line), 0 20px 40px -30px rgba(0, 0, 0, .4);
    transition: transform .25s ease, box-shadow .25s ease;
}

.benefit:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 0 var(--line), 0 28px 50px -30px rgba(242, 101, 34, .6);
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(242, 101, 34, .12);
    color: var(--orange);
    font-size: 1.4rem;
}

.benefit h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit p {
    margin: 0;
}

/* Autor */
.author-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 72px;
}

.author-photo {
    position: relative;
    margin: 0;
}

.author-photo::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border-radius: 24px;
    background: var(--gradient);
    z-index: -1;
}

.author-photo img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    object-position: top;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.author-copy {
    position: relative;
}

.author-role {
    font-weight: 600;
    color: var(--orange-dark);
    margin-bottom: 24px;
}

.author-copy .prose {
    margin-bottom: 24px;
}

/* Galería */
.gallery {
    columns: 3 280px;
    column-gap: 16px;
}

.gal-item {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #EEE;
    cursor: zoom-in;
    break-inside: avoid;
}

.gal-item img {
    width: 100%;
    transition: transform .5s ease;
}

.gal-item:hover img {
    transform: scale(1.04);
}

/* Lightbox */
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox::backdrop {
    background: rgba(10, 10, 10, .92);
}

.lb-figure {
    margin: 0;
    max-width: calc(100vw - 140px);
    text-align: center;
}

.lb-figure img {
    max-width: 100%;
    max-height: 84vh;
    margin: 0 auto;
    border-radius: 12px;
}

.lb-figure figcaption {
    margin-top: 12px;
    color: #DDD;
    font-size: .95rem;
}

.lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color .2s ease;
}

.lb-btn:hover {
    background: var(--orange);
}

.lb-close {
    top: 20px;
    right: 20px;
}

.lb-prev {
    left: 20px;
    top: 50%;
    margin-top: -24px;
}

.lb-next {
    right: 20px;
    top: 50%;
    margin-top: -24px;
}

/* Coaching */
.coaching-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.price-card {
    padding: 36px;
    border-radius: 24px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}

.price-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.price-label {
    margin: 0 0 4px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.price-meta {
    margin: 0;
}

.price-meta i {
    color: var(--orange);
}

.price {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--ink);
}

.checklist {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.checklist i {
    margin-top: 6px;
    color: var(--orange);
}

/* CTA final */
.final-cta {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.final-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 64px;
    max-width: 960px;
}

.final-book {
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .25));
    transform: rotate(-4deg);
}

.small-note {
    margin-top: 16px;
    font-size: .9rem;
    color: var(--muted);
}

/* Pie */
.site-footer {
    background: var(--ink);
    color: #A8A8A8;
    padding: 56px 0 28px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-word {
    margin: 0;
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
}

.footer-by {
    margin: 6px 0 0;
    font-size: .9rem;
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #DDD;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.social a:hover {
    background: var(--orange);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    font-size: .88rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #DDD;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--amber);
}

/* Barra fija de compra (móvil) */
.mobile-buy {
    display: none;
}

/* ---------- Animación al hacer scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .method {
        grid-template-columns: repeat(2, 1fr);
    }

    .method-step:last-child {
        grid-column: 1 / -1;
    }

    .method-step::after {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 40px 0 72px;
    }

    .hero-grid,
    .author-grid,
    .coaching-grid,
    .final-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .formats,
    .hero-actions {
        justify-content: center;
    }

    .hero-book {
        order: -1;
    }

    .hero-book img {
        width: min(210px, 52vw);
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .author-photo {
        max-width: 420px;
        margin: 0 auto;
    }

    .final-grid {
        text-align: center;
    }

    .final-grid .hero-actions {
        justify-content: center;
    }

    .final-book {
        width: 200px;
        margin: 0 auto;
    }

    .section {
        padding: 80px 0;
    }

    .mobile-buy {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 18px;
        border-radius: 999px;
        background: var(--ink);
        color: var(--white);
        box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
        transform: translateY(140%);
        transition: transform .3s ease;
    }

    .mobile-buy.is-visible {
        transform: none;
    }

    .mobile-buy div {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .mobile-buy strong {
        font-family: var(--font-display);
        letter-spacing: .04em;
    }

    .mobile-buy span {
        font-size: .82rem;
        color: #BDBDBD;
    }

    .site-footer {
        padding-bottom: 100px;
    }

    .lb-figure {
        max-width: calc(100vw - 32px);
        margin-bottom: 72px;
    }

    .lb-prev,
    .lb-next {
        top: auto;
        bottom: 24px;
        margin-top: 0;
    }

    .lb-prev {
        left: calc(50% - 60px);
    }

    .lb-next {
        right: calc(50% - 60px);
    }

    .lb-figure img {
        max-height: 74vh;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .brand .brand-word {
        font-size: 1.35rem;
    }

    .brand-by {
        font-size: .64rem;
    }

    .method {
        grid-template-columns: 1fr;
    }

    .pull-quote {
        padding: 32px 22px 24px 26px;
    }

    .price-card {
        padding: 26px 22px;
    }

    .price {
        font-size: 2.6rem;
    }

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

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
