/* =====================================================================
   Luz de Artemisa — Landing page
   Mobile-first, responsive
   ===================================================================== */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --c-purple-900: #2D1B4E;
    --c-purple-800: #3a2563;
    --c-purple-700: #4d3b78;
    --c-purple-500: #8e7eb8;
    --c-purple-400: #B5A8D4;
    --c-purple-300: #C9BFDF;
    --c-purple-200: #DBD3E9;
    --c-purple-100: #ECE6F3;
    --c-purple-50:  #F4F0F8;

    --c-gold:       #B8924A;
    --c-gold-soft:  #C9A961;
    --c-gold-light: #E5D2A6;

    --c-cream:      #F5EDDF;
    --c-cream-2:    #FBF6EC;
    --c-cream-3:    #EFE5D2;
    --c-bg:         #FAF6EE;

    --c-text:       #2D1B4E;
    --c-text-soft:  #5b4f73;
    --c-white:      #FFFFFF;

    --ff-serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
    --ff-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ff-hand:      'Caveat', 'Brush Script MT', cursive;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-soft: 0 8px 30px rgba(45, 27, 78, 0.08);
    --shadow-cta:  0 10px 25px rgba(45, 27, 78, 0.25);

    --container:    1140px;
    --gutter:       1.5rem;
    --section-y:    4.5rem;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Typography utilities ---------- */
.handwritten {
    font-family: var(--ff-hand);
    font-weight: 500;
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--c-text);
    display: block;
}

em,
i {
    font-style: italic;
    color: var(--c-gold-soft);
}

.section-title {
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 500;
    text-align: center;
    color: var(--c-text);
    margin-bottom: 0.5rem;
}

.section-title--light {
    color: var(--c-text);
}

.hero__divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--c-gold-soft);
}

.hero__divider::before,
.hero__divider::after {
    content: '';
    flex: 0 0 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold-soft), transparent);
    margin: 0 12px;
}

.hero__divider-star svg {
    width: 18px;
    height: 18px;
    color: var(--c-gold-soft);
    display: block;
}

/* ---------- Icon helper ---------- */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.icon--purple {
    color: var(--c-purple-900);
}

.icon--gold {
    color: var(--c-gold-soft);
}

/* ---------- CTA button ---------- */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--c-purple-900);
    color: var(--c-cream);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    max-width: 460px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-align: left;
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-2px);
    background: var(--c-purple-800);
    box-shadow: var(--shadow-cta);
    outline: none;
}

.cta__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta__icon svg {
    width: 22px;
    height: 22px;
    color: var(--c-cream);
}

.cta__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    gap: 2px;
}

.cta__text strong {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-cream);
}

.cta__text small {
    font-size: 0.8rem;
    color: rgba(245, 237, 223, 0.75);
    font-weight: 400;
}

.cta--footer {
    margin: 0 auto;
    background: var(--c-purple-400);
    color: var(--c-purple-900);
}

.cta--footer .cta__icon {
    background: rgba(45, 27, 78, 0.12);
}

.cta--footer .cta__icon svg {
    color: var(--c-purple-900);
}

.cta--footer .cta__text strong {
    color: var(--c-purple-900);
}

.cta--footer:hover {
    background: var(--c-purple-300);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    background: var(--c-cream);
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
}

.nav {
    padding: 1.5rem 0 0.5rem;
}

.nav__logo img {
    width: 130px;
    height: auto;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 0 0;
}

.hero__text {
    position: relative;
    z-index: 2;
}

.hero__tagline {
    margin-bottom: 1.5rem;
    position: relative;
}

.hero__tagline-em {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-text);
}

.sparkle {
    width: 14px;
    height: 14px;
    color: var(--c-gold-soft);
    flex: 0 0 auto;
}

.hero__title {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 8vw, 3.6rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--c-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.hero__title em {
    display: inline;
    color: var(--c-purple-900);
    font-style: italic;
}

.hero__lead {
    color: var(--c-text-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 1rem 0 2rem;
}

.hero__media {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    color: var(--c-gold-soft);
    opacity: 0;
    animation: twinkle 3s ease-in-out infinite;
}

.star svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(184, 146, 74, 0.4));
}

.star--s1 { top: 8%;  left: -2%;  width: 14px; height: 14px; animation-delay: 0s; }
.star--s2 { top: 35%; left: 96%;  width: 10px; height: 10px; animation-delay: 0.7s; }
.star--s3 { top: 70%; left: -3%;  width: 12px; height: 12px; animation-delay: 1.4s; }
.star--s4 { top: 12%; left: 55%;  width: 8px;  height: 8px;  animation-delay: 2.1s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%      { opacity: 0.9; transform: scale(1.1); }
}

/* =====================================================================
   ¿TE HA PASADO?
   ===================================================================== */
.pasado {
    background: var(--c-cream);
    padding: var(--section-y) 0;
    position: relative;
}

.pasado .container {
    position: relative;
}

.pasado__decor {
    position: absolute;
    left: -20px;
    top: 0;
    pointer-events: none;
    color: var(--c-purple-400);
    display: none;
}

.moon-mini svg {
    width: 30px;
    height: 30px;
    display: block;
}

.sun-rays {
    display: block;
    margin-top: 1rem;
}

.sun-rays svg {
    width: 80px;
    height: 80px;
    display: block;
    opacity: 0.6;
}

.pasado__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    margin: 2.5rem 0;
    text-align: center;
}

.pasado__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.25rem;
}

.pasado__item p {
    font-size: 0.92rem;
    color: var(--c-text-soft);
    line-height: 1.4;
    max-width: 16ch;
}

.pasado__closer {
    text-align: center;
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    color: var(--c-text);
    margin-top: 1.5rem;
    line-height: 1.5;
}

.pasado__closer em {
    display: inline-block;
    margin-top: 0.25rem;
}

/* =====================================================================
   MANIFIESTO
   ===================================================================== */
.manifiesto {
    background: var(--c-cream-2);
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}

.manifiesto__container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.manifiesto__decor-left {
    position: absolute;
    left: -40px;
    top: 10%;
    width: 220px;
    color: var(--c-gold-soft);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.manifiesto__decor-left svg {
    width: 100%;
    height: auto;
}

.manifiesto__text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.manifiesto__title {
    font-family: var(--ff-serif);
    font-size: clamp(1.5rem, 5.5vw, 2.4rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--c-text);
}

.manifiesto__divider {
    margin: 1.5rem auto;
}

.manifiesto__body {
    color: var(--c-text-soft);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

.manifiesto__quote {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--c-purple-900);
    line-height: 1.5;
    margin-top: 1rem;
}

.manifiesto__media {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
}

.manifiesto__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================================
   PROCESO
   ===================================================================== */
.proceso {
    background: var(--c-purple-50);
    padding: var(--section-y) 0;
}

.proceso__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.proceso__step {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proceso__num {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--c-gold-soft);
    display: block;
    margin-bottom: 0.15rem;
    padding-left: 84px;
}

.proceso__card {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: flex-start;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-left: 0;
}

.proceso__icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-purple-900);
    color: var(--c-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.proceso__icon svg {
    width: 32px;
    height: 32px;
}

.proceso__text {
    flex: 1;
    min-width: 0;
}

.proceso__title {
    font-family: var(--ff-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 0.4rem;
}

.proceso__desc {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =====================================================================
   FINAL — después de una lectura + sobre mí
   ===================================================================== */
.final {
    background: var(--c-cream-2);
    padding: var(--section-y) 0;
}

.final__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.final__title {
    font-family: var(--ff-serif);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.final__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    text-align: center;
}

.final__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.final__item p {
    font-size: 0.9rem;
    color: var(--c-text-soft);
    line-height: 1.4;
}

.final__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-purple-300), transparent);
    margin: 1rem 0;
}

.sobremi {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.sobremi__photo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    flex: 0 0 auto;
}

.sobremi__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobremi__name {
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--c-purple-900);
    margin-bottom: 0.75rem;
    text-align: center;
}

.sobremi__text {
    text-align: center;
}

.sobremi__text p {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0.7rem;
}

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

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--c-purple-900) url('assets/footer-stars.webp') no-repeat center bottom / cover;
    color: var(--c-cream);
    padding: 4rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer__logo img {
    width: 90px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer__text {
    font-family: var(--ff-serif);
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--c-cream);
    margin: 0 auto 1.75rem;
    max-width: 600px;
}

.footer__text em {
    color: var(--c-gold-light);
    font-style: italic;
}

.cta--footer {
    margin-bottom: 1.25rem;
}

.footer__telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-cream);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    transition: color .2s ease;
}

.footer__telegram:hover {
    color: var(--c-gold-light);
}

.footer__telegram-icon {
    width: 20px;
    height: 20px;
}

.footer__copy {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(245, 237, 223, 0.6);
}

/* =====================================================================
   RESPONSIVE — Tablet (>= 640px)
   ===================================================================== */
@media (min-width: 640px) {
    :root {
        --gutter: 2rem;
    }

    .nav__logo img {
        width: 150px;
    }

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

    .pasado__item:nth-child(4),
    .pasado__item:nth-child(5) {
        grid-column: span 1;
    }

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

    .proceso__steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================================================
   RESPONSIVE — Desktop (>= 960px)
   ===================================================================== */
@media (min-width: 960px) {
    :root {
        --gutter: 2.5rem;
        --section-y: 6rem;
    }

    .nav {
        padding: 2rem 0 0;
    }

    .nav__logo img {
        width: 170px;
    }

    .hero {
        padding-bottom: 5rem;
    }

    .hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
    }

    .hero__tagline {
        text-align: right;
        margin-top: -1rem;
        margin-bottom: 2.5rem;
    }

    .hero__tagline .handwritten {
        display: inline;
        margin-right: 0.25rem;
    }

    .hero__tagline-em {
        display: inline-flex;
        margin-top: 0.25rem;
    }

    .hero__media {
        max-width: none;
    }

    .pasado__list {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .pasado__item:nth-child(4),
    .pasado__item:nth-child(5) {
        grid-column: auto;
    }

    .pasado__decor {
        display: block;
        left: 0;
        top: 10%;
    }

    .manifiesto__container {
        grid-template-columns: 0.35fr 1.2fr 0.85fr;
        gap: 2rem;
    }

    .manifiesto__decor-left {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        opacity: 0.85;
    }

    .manifiesto__media {
        max-width: none;
    }

    .proceso__steps {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        gap: 2rem;
    }

    .proceso__card {
        padding: 2rem 1.5rem;
    }

    .final__container {
        grid-template-columns: 1fr 1px 1fr;
        gap: 3rem;
        align-items: start;
    }

    .final__divider {
        height: 100%;
        min-height: 280px;
        width: 1px;
        background: linear-gradient(180deg, transparent, var(--c-purple-300), transparent);
        margin: 0;
    }

    .final__title {
        text-align: left;
    }

    .sobremi {
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .sobremi__text {
        text-align: left;
    }

    .footer {
        padding: 5rem 0 3rem;
    }
}

/* =====================================================================
   RESPONSIVE — Large desktop (>= 1200px)
   ===================================================================== */
@media (min-width: 1200px) {
    .hero__title {
        font-size: 3.8rem;
    }
}

/* =====================================================================
   Accessibility — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
