/* =========================================================================
   SOUL MANIFESTATION — tema cósmico
   ========================================================================= */

:root {
    --background: 262 45% 6%;      /* #0b0714 profundo */
    --background-2: 260 40% 9%;
    --foreground: 40 30% 98%;      /* marfil muy claro, alto contraste */
    --muted: 258 30% 14%;
    --muted-foreground: 260 20% 92%; /* casi blanco, muy legible */

    --primary: 43 55% 55%;         /* dorado #c9a13a-ish */
    --primary-foreground: 262 45% 6%;
    --accent: 262 65% 62%;         /* púrpura */
    --accent-foreground: 40 35% 96%;
    --destructive: 358 72% 51%;    /* rojo */
    --destructive-foreground: 40 35% 96%;

    --border: 262 25% 22%;
    --card: 260 38% 10%;

    --font-display: 'Cinzel', serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;

    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: hsl(var(--background));
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------- */
/* Fondo cósmico fijo                                                    */
/* --------------------------------------------------------------------- */
.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(ellipse 60% 45% at 20% 15%, hsla(262, 65%, 40%, 0.45), transparent 60%),
        radial-gradient(ellipse 55% 40% at 85% 10%, hsla(43, 60%, 45%, 0.22), transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 100%, hsla(358, 60%, 30%, 0.22), transparent 65%),
        linear-gradient(180deg, hsl(var(--background) / 0.55) 0%, hsl(var(--background-2) / 0.75) 100%),
        url('../img/fundo-cosmico.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: hsl(var(--background)); /* respaldo si la imagen aún no existe */
}

.cosmic-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, #fff8, transparent),
        radial-gradient(1px 1px at 80% 10%, #fff7, transparent),
        radial-gradient(1.5px 1.5px at 60% 60%, #fff9, transparent),
        radial-gradient(1px 1px at 30% 80%, #fff6, transparent),
        radial-gradient(1.5px 1.5px at 90% 70%, #fff8, transparent),
        radial-gradient(1px 1px at 45% 35%, #fff7, transparent),
        radial-gradient(1px 1px at 15% 55%, #fff6, transparent),
        radial-gradient(1.5px 1.5px at 70% 90%, #fff8, transparent);
    background-size: 100% 100%;
    animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.cosmic-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: hsl(var(--background) / 0.5);
}

/* --------------------------------------------------------------------- */
/* Layout general                                                        */
/* --------------------------------------------------------------------- */
.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    text-align: center;
}

section { margin-bottom: 64px; }

.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid hsl(var(--primary) / 0.4);
    border-radius: 999px;
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.eyebrow-chip .moon-icon { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: hsl(var(--foreground));
    text-shadow: 0 2px 16px hsl(var(--background) / 0.9);
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 20px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 20px; }
h3 { font-size: 1.3rem; margin: 0 0 12px; }

.subhead {
    font-size: 1.3rem;
    color: hsl(var(--muted-foreground));
    max-width: 640px;
    margin: 0 auto 32px;
    text-shadow: 0 2px 12px hsl(var(--background) / 0.85);
}

.text-accent { color: hsl(var(--accent)); }
.text-destructive-caps {
    color: hsl(var(--destructive));
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.4rem;
}

p { margin: 0 0 20px; color: #ffffff; }
.italic { font-style: italic; }

/* --------------------------------------------------------------------- */
/* Card / formulario                                                     */
/* --------------------------------------------------------------------- */
.card {
    background: hsl(var(--card) / 0.85);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 560px) {
    .form-row-3 { grid-template-columns: 1fr; }
}

input[type="text"], input[type="email"], select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background-2) / 0.8);
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    font-size: 1.05rem;
}
input::placeholder { color: hsl(var(--muted-foreground)); }
input:focus, select:focus {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
}

/* --------------------------------------------------------------------- */
/* Botones                                                                */
/* --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 16px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 8px 30px hsl(var(--accent) / 0.35);
}
.btn-destructive {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    box-shadow: 0 8px 30px hsl(var(--destructive) / 0.35);
}
.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.btn-muted {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.microtext {
    text-align: center;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-top: 10px;
}

/* --------------------------------------------------------------------- */
/* Listas / bullets                                                      */
/* --------------------------------------------------------------------- */
.bullet-list { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 18px; max-width: 720px; }
.bullet-list li {
    font-size: 1.15rem;
    text-align: center;
}
.bullet-list li::before {
    content: "✦ ";
    color: hsl(var(--primary));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: hsl(var(--card) / 0.55);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 24px;
}
.feature-card .icon { color: hsl(var(--accent)); margin-bottom: 10px; }

/* --------------------------------------------------------------------- */
/* Página de lectura: párrafos animados                                  */
/* --------------------------------------------------------------------- */
.reading-body p {
    opacity: 0;
    transform: translateY(8px);
    animation: reveal 0.6s ease forwards;
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 0 2px 10px hsl(var(--background) / 0.7);
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.reading-body p:nth-child(1) { animation-delay: 0.05s; }
.reading-body p:nth-child(2) { animation-delay: 0.2s; }
.reading-body p:nth-child(3) { animation-delay: 0.35s; }
.reading-body p:nth-child(4) { animation-delay: 0.5s; }
.reading-body p:nth-child(5) { animation-delay: 0.65s; }
.reading-body p:nth-child(6) { animation-delay: 0.8s; }
.reading-body p:nth-child(7) { animation-delay: 0.95s; }
.reading-body p:nth-child(8) { animation-delay: 1.1s; }
.reading-body p:nth-child(9) { animation-delay: 1.25s; }
.reading-body p:nth-child(10) { animation-delay: 1.4s; }
.reading-body p:nth-child(11) { animation-delay: 1.55s; }
.reading-body p:nth-child(n+12) { animation-delay: 1.7s; }

.callout-box {
    border-left: 3px solid hsl(var(--destructive));
    background: hsl(var(--destructive) / 0.08);
    padding: 18px 22px;
    border-radius: 8px;
    font-size: 1.15rem;
    margin: 32px 0;
}

blockquote.soul-quote {
    border: 1px solid hsl(var(--primary) / 0.4);
    border-radius: var(--radius);
    padding: 24px 28px;
    font-style: italic;
    font-size: 1.3rem;
    margin: 28px 0;
    background: hsl(var(--primary) / 0.06);
}
blockquote.soul-quote p { margin: 0 0 8px; }
blockquote.soul-quote p:last-child { margin-bottom: 0; }

.impact-phrase {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: hsl(var(--primary));
    margin: 40px 0;
}

/* --------------------------------------------------------------------- */
/* Checklist con check dorado                                            */
/* --------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 16px auto; display: grid; gap: 12px; max-width: 480px; }
.check-list li {
    font-size: 1.1rem;
    text-align: center;
}
.check-list li::before {
    content: "✓ ";
    color: hsl(var(--primary));
    font-weight: 700;
}

/* --------------------------------------------------------------------- */
/* Precio / gift card                                                    */
/* --------------------------------------------------------------------- */
.price-card, .gift-card {
    text-align: center;
    border: 1px solid hsl(var(--primary) / 0.35);
}
.price-big {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: hsl(var(--primary));
    margin: 8px 0;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    margin-top: 16px;
}

/* --------------------------------------------------------------------- */
/* Testimonios (slider)                                                  */
/* --------------------------------------------------------------------- */
.testimonial-slider { position: relative; }
.testimonial-slide {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.testimonial-slide.active { display: grid; }
@media (max-width: 640px) { .testimonial-slide.active { grid-template-columns: 1fr; } }

.testimonial-card {
    background: hsl(var(--card) / 0.55);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 18px 20px;
}
.testimonial-stars { color: hsl(var(--primary)); letter-spacing: 2px; margin-bottom: 6px; }
.testimonial-name { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
.testimonial-quote { font-size: 1.05rem; margin: 0; }

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
.slider-arrow {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: hsl(var(--border));
    border: none;
    cursor: pointer;
}
.slider-dot.active { background: hsl(var(--primary)); }

/* --------------------------------------------------------------------- */
/* Commitment (dos botones + expandible)                                 */
/* --------------------------------------------------------------------- */
.commitment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) { .commitment-row { grid-template-columns: 1fr; } }

.not-yet-expand {
    display: none;
    margin-top: 18px;
    padding: 18px 20px;
    background: hsl(var(--muted));
    border-radius: var(--radius);
}
.not-yet-expand.open { display: block; }
.not-yet-expand .btn { margin-top: 12px; }

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid hsl(var(--border));
    padding: 32px 20px;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    font-family: var(--font-display);
    color: hsl(var(--primary));
    margin-bottom: 12px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 12px;
}
.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover { color: hsl(var(--foreground)); }
.footer-copy { font-size: 0.82rem; color: hsl(var(--muted-foreground)); margin: 0; }

/* --------------------------------------------------------------------- */
/* Utilidades                                                            */
/* --------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.two-col-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) { .two-col-btns { grid-template-columns: 1fr; } }

.loading-disabled { opacity: 0.6; pointer-events: none; }
