
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #090e1c;
    --panel: #111a2d;
    --panel-light: #172238;
    --border: #293750;
    --purple: #9565ff;
    --purple-light: #b69aff;
    --text: #f4f2ff;
    --muted: #94a3b8;
    --green: #4adea1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 25px 18px;
    overflow-x: hidden;
    position: relative;
}

.background-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .13;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    background: #823eff;
    top: -150px;
    left: -120px;
}

.glow-two {
    background: #2563eb;
    bottom: -180px;
    right: -120px;
}

.header {
    max-width: 1050px;
    margin: 0 auto 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    font-weight: 700;
}

.brand strong {
    color: var(--purple-light);
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8145ef, #b16aff);
    border-radius: 12px;
    font-size: 21px;
    box-shadow: 0 5px 25px #864bff55;
}

.header-tag {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 13px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 7px;
}

.container {
    max-width: 760px;
    margin: auto;
}

.hero {
    text-align: center;
    margin-bottom: 42px;
}

.hero-badge {
    display: inline-block;
    color: var(--purple-light);
    background: #9565ff18;
    border: 1px solid #9565ff40;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 6vw, 49px);
    line-height: 1.16;
    letter-spacing: -1.8px;
    max-width: 650px;
    margin: auto;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #a47aff, #d0a7ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 510px;
    margin: 17px auto 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.generator-panel {
    background: linear-gradient(145deg, #151f34, #10182a);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 65px #00000030;
}

.section-heading,
.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 27px;
}

.section-number {
    font-size: 10px;
    color: var(--purple-light);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2,
.results-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    margin-top: 7px;
}

.sparkle,
.results-icon {
    color: var(--purple-light);
    font-size: 28px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    color: #e4e7f2;
}

textarea,
select {
    width: 100%;
    color: var(--text);
    background: #0b1323;
    border: 1px solid #34425b;
    border-radius: 10px;
    padding: 14px 15px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: .25s ease;
}

textarea {
    resize: vertical;
    min-height: 105px;
    line-height: 1.6;
}

textarea::placeholder {
    color: #68758c;
}

select {
    cursor: pointer;
    min-height: 48px;
}

textarea:focus,
select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px #9565ff20;
}

.field-hint {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
}

.generate-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 53px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(100deg, #7842ed, #a052f5);
    color: white;
    font-family: inherit;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .6px;
    cursor: pointer;
    margin-top: 5px;
    box-shadow: 0 8px 25px #8747ed30;
    transition: .25s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px #8747ed55;
}

.generate-btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.button-arrow {
    position: absolute;
    margin-left: 280px;
}

.results-section {
    margin-top: 42px;
    animation: appear .45s ease;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-heading {
    margin-bottom: 20px;
}

.results-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
}

.hooks-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.result-card {
    position: relative;
    padding: 19px;
    background: linear-gradient(135deg, #151f33, #10192a);
    border: 1px solid #293850;
    border-radius: 13px;
    transition: .25s ease;
    animation: appear .4s ease both;
}

.result-card:hover {
    border-color: #9565ff85;
    transform: translateY(-2px);
    background: #19243b;
}

.result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}

.result-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--purple-light);
    letter-spacing: .7px;
}

.result-number {
    color: #64748b;
    font-size: 10px;
}

.result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.copy-btn {
    margin-top: 15px;
    padding: 9px 13px;
    background: #25334b;
    border: 1px solid #394b68;
    border-radius: 8px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.copy-btn:hover {
    background: #7044c9;
    border-color: #9565ff;
}

.copy-all-btn {
    width: 100%;
    margin-top: 18px;
    min-height: 49px;
    border: 1px solid #9565ff60;
    border-radius: 10px;
    background: #9565ff16;
    color: var(--purple-light);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.copy-all-btn:hover {
    background: #9565ff30;
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: 55px;
    padding: 25px 0;
    border-top: 1px solid #26334a;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--purple-light);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

footer p {
    color: var(--muted);
    font-size: 11px;
}

@media(max-width: 600px) {

    body {
        padding: 18px 13px;
    }

    .header {
        margin-bottom: 48px;
    }

    .brand {
        font-size: 19px;
    }

    .header-tag {
        font-size: 8px;
        padding: 8px;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 13px;
    }

    .generator-panel {
        padding: 20px 16px;
        border-radius: 15px;
    }

    .section-heading h2,
    .results-heading h2 {
        font-size: 20px;
    }

    .button-arrow {
        display: none;
    }

    .result-card {
        padding: 16px;
    }

    .result-title {
        font-size: 15px;
    }
}

/* ==========================================
   FONDO ANIMADO (pegar al final de styles.css)
   ========================================== */

/* 1) Las luces de fondo que ya tienes ahora flotan despacio */
.background-glow {
    opacity: .40;
    will-change: transform;
    animation: glowFloat 18s ease-in-out infinite alternate;
}

.glow-two {
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

@keyframes glowFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(70px, 45px) scale(1.18);
    }
    100% {
        transform: translate(-40px, 90px) scale(.95);
    }
}

/* 2) Puntitos suaves que se desplazan despacio, como estrellas */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, #b69aff40 1px, transparent 1.5px);
    background-size: 46px 46px;
    opacity: .55;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
    animation: dotsDrift 40s linear infinite;
}

@keyframes dotsDrift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 46px 92px;
    }
}

/* 3) Si la persona tiene activado "reducir movimiento" en su dispositivo, se apaga todo */
@media (prefers-reduced-motion: reduce) {
    .background-glow,
    body::before {
        animation: none;
    }
}