:root {
    --background: #080914;
    --background-soft: #101224;
    --surface: rgba(18, 20, 39, 0.88);
    --surface-solid: #14162b;
    --surface-light: rgba(255, 255, 255, 0.055);

    --text: #ffffff;
    --text-soft: #b9bad0;
    --text-muted: #7f8199;

    --primary: #8a5cff;
    --primary-light: #aa85ff;
    --primary-dark: #6942dc;

    --pink: #ff4fb8;
    --cyan: #4bdcff;
    --spotify: #ff0033; /* compatibilidad visual */
    --youtube: #ff0033;

    --success: #34d399;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    --shadow-large: 0 30px 100px rgba(0, 0, 0, 0.45);
    --shadow-small: 0 12px 35px rgba(0, 0, 0, 0.25);

    --radius-large: 32px;
    --radius-medium: 20px;
    --radius-small: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at top, #171936 0%, var(--background) 48%),
        var(--background);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
a {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    border: 0;
}

/* Fondo */

.page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
}

.background-orb-one {
    top: -160px;
    left: -140px;
    width: 450px;
    height: 450px;
    background: var(--primary);
}

.background-orb-two {
    right: -140px;
    bottom: -180px;
    width: 480px;
    height: 480px;
    background: var(--pink);
}

/* Encabezado */

.topbar {
    width: min(1180px, calc(100% - 40px));
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-name {
    font-size: 21px;
    letter-spacing: -0.5px;
}

.brand-symbol {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.32), transparent 32%),
        linear-gradient(135deg, var(--primary), var(--pink));
    box-shadow: 0 9px 26px rgba(138, 92, 255, 0.35);
}

.brand-note {
    grid-area: 1 / 1;
    transform: translate(-3px, 1px);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.brand-plus {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: end;
    width: 17px;
    height: 17px;
    margin: 3px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #171022;
    background: #fff;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.logout-link {
    padding: 11px 17px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.logout-link:hover {
    color: #fff;
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

/* Página */

.profile-page {
    width: min(720px, calc(100% - 32px));
    margin: 25px auto 60px;
}

.profile-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.profile-cover{
    position:relative;
    min-height:208px; /* 20% menos */
    background-image:linear-gradient(180deg,rgba(7,8,14,.12),rgba(7,8,14,.22) 45%,rgba(7,8,14,.72)),var(--profile-cover);
    background-size:cover;
    background-position:center center;
    overflow:hidden;
}
.profile-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background:
        radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
        radial-gradient(circle at 76% 26%, #fff 0 1px, transparent 2px),
        radial-gradient(circle at 63% 72%, #fff 0 2px, transparent 3px);
    background-size: 110px 110px, 90px 90px, 140px 140px;
}

.profile-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 70%;
    background: linear-gradient(to top, rgba(18, 20, 39, 0.5), transparent);
}

.cover-glow {
    position: absolute;
    top: -100px;
    right: -70px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(50px);
}

.profile-status {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    background: rgba(8, 9, 20, 0.25);
    backdrop-filter: blur(12px);
}

.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6effaf;
    box-shadow: 0 0 0 5px rgba(110, 255, 175, 0.13);
}

.profile-content {
    position: relative;
    padding: 0 40px 38px;
}

.avatar-wrapper {
    position: relative;
    width: 126px;
    height: 126px;
    margin-top: -63px;
    margin-bottom: 20px;
}

.profile-avatar,
.avatar-placeholder {
    width: 126px;
    height: 126px;
    border: 6px solid var(--surface-solid);
    border-radius: 38px;
    box-shadow: var(--shadow-small);
}

.profile-avatar {
    display: block;
    object-fit: cover;
    background: var(--surface-solid);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 850;
    letter-spacing: -2px;
    background:
        linear-gradient(145deg, var(--primary), var(--pink));
}

.verified-badge {
    position: absolute;
    right: -2px;
    bottom: 4px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 4px solid var(--surface-solid);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: 900;
    background: var(--primary);
}

.profile-heading {
    margin-bottom: 26px;
}

.profile-eyebrow {
    margin: 0 0 8px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.profile-heading h1 {
    margin: 0;
    font-size: clamp(30px, 6vw, 43px);
    line-height: 1.06;
    letter-spacing: -1.8px;
}

.profile-username {
    margin: 9px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 650;
}

.profile-description {
    max-width: 560px;
    margin: 17px 0 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

/* Aviso */

.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 27px 0 17px;
    padding: 17px;
    border: 1px solid rgba(255, 190, 85, 0.22);
    border-radius: var(--radius-small);
    background: rgba(255, 190, 85, 0.07);
}

.alert-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #2c1b00;
    font-weight: 900;
    background: #ffbd59;
}

.profile-alert strong {
    display: block;
    margin: 1px 0 5px;
    font-size: 14px;
}

.profile-alert p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

/* Enlace público */

.public-link-section {
    margin: 29px 0 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.section-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.4px;
}

.ready-badge {
    padding: 6px 10px;
    color: #83f5bc;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
}

.public-link-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(4, 5, 13, 0.32);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.public-link-box:focus-within {
    border-color: rgba(138, 92, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(138, 92, 255, 0.09);
}

.link-icon {
    margin-left: 7px;
    display: grid;
    place-items: center;
    color: var(--primary-light);
}

.public-link-box input {
    width: 100%;
    min-width: 0;
    padding: 10px 3px;
    overflow: hidden;
    color: var(--text-soft);
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    text-overflow: ellipsis;
}

.copy-button {
    position: relative;
    min-width: 88px;
    padding: 11px 16px;
    overflow: hidden;
    cursor: pointer;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-size: 13px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.copy-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: scale(0.97);
}

.copy-success-text {
    display: none;
}

.copy-button.is-copied .copy-default-text {
    display: none;
}

.copy-button.is-copied .copy-success-text {
    display: inline;
}

/* Conexiones */

.profile-actions {
    display: grid;
    gap: 13px;
}

.connection-card {
    min-height: 82px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface-light);
}

.connection-card-connected {
    border-color: rgba(30, 215, 96, 0.18);
    background: rgba(30, 215, 96, 0.055);
}

.connection-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
}

.spotify-icon {
    color: var(--spotify);
    background: rgba(30, 215, 96, 0.11);
}

.connection-copy {
    min-width: 0;
    flex: 1;
}

.connection-copy span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.connection-copy strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-check {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--spotify);
    border: 1px solid rgba(30, 215, 96, 0.2);
    border-radius: 50%;
    background: rgba(30, 215, 96, 0.08);
    font-weight: 900;
}

/* Botones */

.button {
    min-height: 46px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    box-shadow: 0 12px 28px rgba(138, 92, 255, 0.22);
}

.button-primary:hover {
    filter: brightness(1.08);
}

.button-secondary {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.055);
}

.button-secondary:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.button-spotify {
    min-height: 40px;
    padding: 9px 15px;
    color: #08150d;
    background: var(--spotify);
    font-size: 13px;
}

.button-full {
    width: 100%;
}

.profile-footer-actions {
    margin-top: 19px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-message {
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* Mensaje emergente */

.toast {
    position: fixed;
    z-index: 50;
    right: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
    padding: 13px 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(20, 22, 43, 0.96);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #092517;
    border-radius: 50%;
    background: var(--success);
    font-size: 12px;
    font-weight: 900;
}

#toastMessage {
    font-size: 13px;
    font-weight: 750;
}

/* Animación inicial */

.profile-card {
    animation: profileEntry 0.65s ease both;
}

@keyframes profileEntry {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Adaptación móvil */

@media (max-width: 650px) {
    .topbar {
        width: min(100% - 28px, 1180px);
        min-height: 76px;
    }

    .brand-name {
        font-size: 18px;
    }

    .logout-link {
        padding: 9px 13px;
        font-size: 12px;
    }

    .profile-page {
        width: min(100% - 20px, 720px);
        margin-top: 13px;
    }

    .profile-card {
        border-radius: 25px;
    }

    .profile-cover {
        min-height: 150px;
    }

    .profile-content {
        padding: 0 21px 25px;
    }

    .avatar-wrapper {
        width: 108px;
        height: 108px;
        margin-top: -54px;
    }

    .profile-avatar,
    .avatar-placeholder {
        width: 108px;
        height: 108px;
        border-radius: 32px;
    }

    .profile-heading h1 {
        font-size: 31px;
    }

    .public-link-box {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .copy-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .profile-footer-actions {
        grid-template-columns: 1fr;
    }

    .connection-card {
        flex-wrap: wrap;
    }

    .connection-card .button-spotify {
        width: 100%;
    }

    .toast {
        right: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Página de inicio de Agrégala
   ========================================================================== */

.home-body {
    min-height: 100vh;
}

.home-topbar {
    position: relative;
    z-index: 20;
}

.home-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navigation-link {
    position: relative;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease;
}

.navigation-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navigation-link:hover {
    color: #fff;
}

.navigation-link:hover::after {
    transform: scaleX(1);
}

.button-small {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13px;
}

/* Contenedor principal */

.home-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Hero */

.hero-section {
    min-height: calc(100vh - 90px);
    padding: 70px 0 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.88fr);
    align-items: center;
    gap: 70px;
}

.hero-copy {
    position: relative;
    z-index: 4;
}

.hero-badge {
    width: fit-content;
    margin-bottom: 25px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(14px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.11);
}

.hero-title {
    max-width: 720px;
    margin: 0;
    font-size: clamp(54px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -5px;
    text-wrap: balance;
    background:
        linear-gradient(
            120deg,
            #ffffff 0%,
            #ffffff 44%,
            var(--primary-light) 72%,
            #ff80c9 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 620px;
    margin: 28px 0 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-button {
    min-height: 54px;
    padding: 15px 22px;
    gap: 10px;
    border-radius: 16px;
}

.hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.trust-avatars {
    display: flex;
    align-items: center;
}

.trust-avatars span {
    width: 34px;
    height: 34px;
    margin-left: -8px;
    display: grid;
    place-items: center;
    color: white;
    border: 3px solid var(--background);
    border-radius: 50%;
    background:
        linear-gradient(135deg, var(--primary), var(--pink));
    font-size: 11px;
    font-weight: 850;
}

.trust-avatars span:first-child {
    margin-left: 0;
}

.trust-avatars span:nth-child(2) {
    background:
        linear-gradient(135deg, var(--cyan), var(--primary));
}

.trust-avatars span:nth-child(3) {
    background:
        linear-gradient(135deg, var(--pink), #ff985c);
}

.trust-avatars span:last-child {
    color: var(--text-soft);
    background: var(--surface-solid);
}

.hero-trust p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Vista previa */

.hero-visual {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.hero-glow-one {
    top: 100px;
    left: 15px;
    width: 260px;
    height: 260px;
    opacity: 0.28;
    background: var(--primary);
}

.hero-glow-two {
    right: -20px;
    bottom: 100px;
    width: 240px;
    height: 240px;
    opacity: 0.22;
    background: var(--pink);
}

.preview-card {
    position: relative;
    z-index: 3;
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 34px;
    background: rgba(18, 20, 39, 0.88);
    box-shadow:
        0 45px 100px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(138, 92, 255, 0.12);
    backdrop-filter: blur(25px);
    transform: rotateY(-5deg) rotateX(2deg);
    animation: previewFloat 6s ease-in-out infinite;
}

.preview-cover {
    position: relative;
    height: 145px;
    background:
        linear-gradient(
            120deg,
            rgba(75, 220, 255, 0.9),
            rgba(138, 92, 255, 0.95) 48%,
            rgba(255, 79, 184, 0.9)
        );
}

.preview-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.5), transparent 25%),
        linear-gradient(to top, rgba(20, 22, 43, 0.35), transparent);
}

.preview-status {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(8, 9, 20, 0.25);
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.preview-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6effaf;
}

.preview-content {
    padding: 0 27px 28px;
}

.preview-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    color: white;
    border: 5px solid var(--surface-solid);
    border-radius: 30px;
    background:
        linear-gradient(145deg, var(--primary), var(--pink));
    box-shadow: var(--shadow-small);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -2px;
}

.preview-verified {
    position: absolute;
    right: -4px;
    bottom: 2px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    color: white;
    border: 4px solid var(--surface-solid);
    border-radius: 50%;
    background: var(--primary);
    font-size: 11px;
}

.preview-label {
    margin: 0 0 6px;
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.preview-content h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -1px;
}

.preview-username {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 650;
}

.preview-description {
    margin: 14px 0 20px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.preview-link {
    padding: 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(4, 5, 13, 0.3);
    font-size: 10px;
}

.preview-link > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-link-icon {
    display: grid;
    place-items: center;
    color: var(--primary-light);
}

.preview-copy {
    padding: 8px 10px;
    color: white;
    border-radius: 9px;
    background:
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 800;
}

.preview-song {
    margin-top: 15px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(30, 215, 96, 0.16);
    border-radius: 16px;
    background: rgba(30, 215, 96, 0.055);
}

.preview-song-cover {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
        linear-gradient(135deg, var(--primary), var(--pink));
    font-size: 18px;
}

.preview-song-copy {
    min-width: 0;
    flex: 1;
}

.preview-song-copy span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.preview-song-copy strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-play {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: #08150d;
    border-radius: 50%;
    background: var(--spotify);
    font-size: 10px;
}

.recommendation-bubble {
    position: absolute;
    z-index: 5;
    right: -20px;
    bottom: 95px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--border-strong);
    border-radius: 17px;
    background: rgba(20, 22, 43, 0.94);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(18px);
    animation: bubbleFloat 5s ease-in-out infinite;
}

.recommendation-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background:
        linear-gradient(135deg, var(--primary), var(--pink));
}

.recommendation-bubble div > span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.recommendation-bubble strong {
    display: block;
    font-size: 12px;
}

.floating-note {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: white;
    border: 1px solid var(--border-strong);
    background: rgba(138, 92, 255, 0.18);
    backdrop-filter: blur(12px);
}

.floating-note-one {
    top: 90px;
    left: 10px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 22px;
    animation: noteFloatOne 5s ease-in-out infinite;
}

.floating-note-two {
    top: 180px;
    right: 0;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    font-size: 17px;
    animation: noteFloatTwo 6s ease-in-out infinite;
}

/* Secciones generales */

.home-section {
    padding: 105px 0;
}

.section-introduction {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-kicker {
    display: block;
    margin-bottom: 11px;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-introduction h2,
.home-cta h2 {
    margin: 0;
    font-size: clamp(35px, 5vw, 55px);
    line-height: 1.08;
    letter-spacing: -2.2px;
    text-wrap: balance;
}

.section-introduction p {
    margin: 19px auto 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* Beneficios */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
}

.benefit-card {
    position: relative;
    min-height: 270px;
    padding: 29px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 25px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );
    backdrop-filter: blur(18px);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    opacity: 0.12;
    background: var(--primary);
    filter: blur(30px);
}

.benefit-card:nth-child(2)::before {
    background: var(--spotify);
}

.benefit-card:nth-child(3)::before {
    background: var(--pink);
}

.benefit-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(-6px);
}

.benefit-icon {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    margin-bottom: 39px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 17px;
    background:
        linear-gradient(135deg, var(--primary), var(--pink));
    box-shadow: 0 12px 30px rgba(138, 92, 255, 0.2);
}

.benefit-card:nth-child(2) .benefit-icon {
    color: #08150d;
    background: var(--spotify);
}

.benefit-card:nth-child(3) .benefit-icon {
    background:
        linear-gradient(135deg, var(--cyan), var(--primary));
}

.benefit-card h3 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.5px;
}

.benefit-card p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* Pasos */

.steps-section {
    scroll-margin-top: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    padding: 27px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    border-top: 1px solid var(--border-strong);
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent);
}

.step-number {
    flex: 0 0 auto;
    color: transparent;
    font-size: 35px;
    font-weight: 900;
    letter-spacing: -2px;
    -webkit-text-stroke: 1px rgba(170, 133, 255, 0.8);
}

.step-content h3 {
    margin: 4px 0 0;
    font-size: 19px;
    letter-spacing: -0.4px;
}

.step-content p {
    margin: 11px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* Llamada final */

.home-cta {
    position: relative;
    margin: 55px 0 110px;
    padding: 75px 35px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 34px;
    background:
        linear-gradient(
            145deg,
            rgba(138, 92, 255, 0.14),
            rgba(255, 79, 184, 0.08)
        );
    box-shadow: var(--shadow-large);
}

.cta-glow {
    position: absolute;
    top: -170px;
    left: 50%;
    width: 500px;
    height: 330px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.22;
    transform: translateX(-50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.home-cta p {
    max-width: 600px;
    margin: 21px auto 29px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.7;
}

/* Pie de página */

.home-footer {
    width: min(1180px, calc(100% - 40px));
    min-height: 100px;
    margin: 0 auto;
    padding: 25px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.footer-brand {
    color: white;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.home-footer > p {
    margin: 0;
    text-align: right;
}

/* Animaciones */

@keyframes previewFloat {
    0%,
    100% {
        transform: rotateY(-5deg) rotateX(2deg) translateY(0);
    }

    50% {
        transform: rotateY(-3deg) rotateX(1deg) translateY(-13px);
    }
}

@keyframes bubbleFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes noteFloatOne {
    0%,
    100% {
        transform: translate(0, 0) rotate(-8deg);
    }

    50% {
        transform: translate(8px, -14px) rotate(3deg);
    }
}

@keyframes noteFloatTwo {
    0%,
    100% {
        transform: translate(0, 0) rotate(8deg);
    }

    50% {
        transform: translate(-7px, 12px) rotate(-3deg);
    }
}

/* Adaptación para tablets */

@media (max-width: 1000px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 60px;
    }

    .hero-copy {
        max-width: 780px;
        margin: 0 auto;
        text-align: center;
    }

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

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

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

    .hero-visual {
        min-height: 600px;
    }

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

    .benefit-card {
        min-height: auto;
    }

    .benefit-icon {
        margin-bottom: 27px;
    }
}

/* Adaptación móvil */

@media (max-width: 650px) {
    .home-page,
    .home-footer {
        width: min(100% - 24px, 1180px);
    }

    .home-navigation .navigation-link {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 55px 0 65px;
    }

    .hero-title {
        font-size: clamp(45px, 15vw, 67px);
        letter-spacing: -3.5px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-button {
        width: 100%;
    }

    .hero-trust {
        align-items: flex-start;
        text-align: left;
    }

    .hero-visual {
        min-height: 540px;
    }

    .preview-card {
        width: calc(100% - 15px);
        transform: none;
        animation-name: previewFloatMobile;
    }

    .floating-note-one {
        left: -4px;
    }

    .floating-note-two {
        right: -5px;
    }

    .recommendation-bubble {
        right: -5px;
        bottom: 55px;
    }

    .home-section {
        padding: 75px 0;
    }

    .section-introduction {
        margin-bottom: 33px;
    }

    .section-introduction h2,
    .home-cta h2 {
        font-size: 36px;
        letter-spacing: -1.6px;
    }

    .benefit-card {
        padding: 24px;
    }

    .step-card {
        padding: 23px 5px;
    }

    .home-cta {
        margin: 30px 0 75px;
        padding: 55px 22px;
        border-radius: 25px;
    }

    .home-footer {
        padding: 34px 0;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .home-footer > p {
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@keyframes previewFloatMobile {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================================================
   DASHBOARD DEL CREADOR
   Agregar al final de css/style.css
   ========================================================= */

.creator-tools {
    margin-top: 26px;
}

.creator-tools-heading {
    margin-bottom: 16px;
}

.creator-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.creator-tool-card {
    position: relative;
    min-height: 270px;
    padding: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.creator-tool-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -85px;
    right: -70px;
    border-radius: 50%;
    background: rgba(138, 92, 255, 0.14);
    filter: blur(5px);
    pointer-events: none;
}

.creator-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(179, 153, 255, 0.32);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.035)
        );
}

.creator-tool-live {
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 79, 184, 0.14),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(138, 92, 255, 0.13),
            rgba(255, 255, 255, 0.025)
        );
}

.creator-tool-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            rgba(138, 92, 255, 0.85),
            rgba(255, 79, 184, 0.72)
        );
    box-shadow: 0 12px 30px rgba(92, 58, 180, 0.26);
}

.creator-tool-copy {
    position: relative;
    z-index: 1;
    flex: 1;
}

.creator-tool-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.creator-tool-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    letter-spacing: -0.45px;
}

.creator-tool-copy p {
    margin: 10px 0 20px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.65;
}

.creator-tool-button {
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .creator-tools-grid {
        grid-template-columns: 1fr;
    }

    .creator-tool-card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .creator-tool-card {
        padding: 19px;
        border-radius: 19px;
    }
}

.spotify-account-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spotify-account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.connection-card-live.is-live {
    border-color: rgba(52, 211, 153, 0.28);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(138, 92, 255, 0.08));
}

.connection-card-live .connection-copy small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.connection-live-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.button-danger-outline {
    color: #ffd7df;
    border: 1px solid rgba(255, 79, 120, 0.42);
    background: rgba(255, 79, 120, 0.1);
}

.button-danger-outline:hover {
    background: rgba(255, 79, 120, 0.2);
}

.live-start-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.live-start-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.live-start-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 13, 0.76);
    backdrop-filter: blur(12px);
}

.live-start-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px;
    border: 1px solid var(--border-strong);
    border-radius: 25px;
    background: #15172a;
    box-shadow: var(--shadow-large);
}

.live-start-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--text-soft);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    font-size: 25px;
    cursor: pointer;
}

.live-start-kicker {
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.live-start-dialog > h2 {
    margin: 8px 42px 0 0;
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -1px;
}

.live-start-intro {
    margin: 9px 0 22px;
    color: var(--text-soft);
    line-height: 1.55;
}

.live-start-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.live-start-option {
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.035);
}

.live-start-option.is-disabled {
    opacity: 0.72;
}

.live-start-option-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    font-size: 19px;
    font-weight: 900;
}

.live-start-option h3 {
    margin: 0;
    font-size: 18px;
}

.live-start-option p {
    min-height: 60px;
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.live-start-option form,
.live-start-option .button {
    width: 100%;
    margin: 0;
}

.live-start-modal-open {
    overflow: hidden;
}

@media (max-width: 650px) {
    .live-start-dialog {
        padding: 24px 18px 18px;
    }

    .live-start-options {
        grid-template-columns: 1fr;
    }

    .live-start-option p {
        min-height: 0;
    }
}
