:root {
    --primary: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.3);
    --dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

#spotlight-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -1;
    background: radial-gradient(circle 450px at var(--x, 50%) var(--y, 50%), rgba(0, 212, 255, 0.12), transparent 80%);
    transition: background 0.15s ease-out;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 8%; position: fixed; width: 100%; top: 0; z-index: 100;
    background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(15px);
}
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1.5px; text-transform: uppercase; }
.logo span { color: var(--primary); }
.nav-links a { color: var(--text-main); text-decoration: none; margin-left: 30px; font-weight: 500; font-size: 0.9rem; }
.btn-login { border: 1px solid var(--primary); padding: 8px 22px !important; border-radius: 50px; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 10%; }
.badge { display: inline-block; padding: 6px 16px; border: 1px solid var(--primary); border-radius: 50px; color: var(--primary); font-size: 0.75rem; font-weight: 700; margin-bottom: 25px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-dim); max-width: 600px; margin: 0 auto 40px; }
.btn-primary { background: var(--primary); color: #000; padding: 16px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.btn-secondary { color: white; padding: 16px 35px; text-decoration: none; border: 1px solid var(--card-border); border-radius: 50px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; padding: 100px 8%; background: #000; }
.feat-card { background: var(--card-bg); border: 1px solid var(--card-border); padding: 40px; border-radius: 35px; text-align: center; }
.feat-card .icon { color: var(--primary); width: 40px; height: 40px; margin-bottom: 20px; }

.about-section { padding: 100px 8%; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 2.8rem; margin-bottom: 30px; }
.section-title span { color: var(--primary); }
.about-item { display: flex; gap: 20px; margin-bottom: 25px; }
.about-icon { background: rgba(0, 212, 255, 0.1); border-radius: 10px; padding: 10px; display: flex; align-items: center; }
.about-icon i { color: var(--primary); width: 24px; }

.glass-mockup { width: 260px; height: 480px; background: rgba(255,255,255,0.02); border: 1px solid var(--card-border); border-radius: 40px; padding: 20px; backdrop-filter: blur(10px); margin: 0 auto; }
.mockup-header { display: flex; gap: 6px; margin-bottom: 40px; }
.dot { width: 6px; height: 6px; border-radius: 50%; opacity: 0.5; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.mockup-profile { width: 70px; height: 70px; background: var(--card-border); border-radius: 50%; margin: 0 auto 30px; }
.mockup-line { background: var(--card-border); height: 8px; border-radius: 10px; margin-bottom: 12px; }
.mockup-line.long { width: 90%; } .mockup-line.short { width: 60%; }
.mockup-btns { margin-top: 50px; display: flex; flex-direction: column; gap: 12px; }
.mockup-btn { height: 35px; background: var(--primary); opacity: 0.2; border-radius: 8px; }

.pricing-section { padding: 100px 8%; background: #000; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; align-items: stretch; }
.price-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--card-border);
    padding: 42px 34px;
    border-radius: 36px;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}
.price-card.essential-tone {
    border-color: rgba(125, 211, 252, 0.34);
    background:
        radial-gradient(circle at 12% -8%, rgba(56, 189, 248, 0.2), transparent 48%),
        linear-gradient(160deg, rgba(56, 189, 248, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow: 0 24px 48px rgba(6, 24, 40, 0.45);
}
.price-card.business-tone {
    border-color: rgba(232, 200, 106, 0.52);
    background:
        radial-gradient(circle at 85% -10%, rgba(232, 200, 106, 0.25), transparent 45%),
        linear-gradient(155deg, rgba(232, 200, 106, 0.14), rgba(255, 255, 255, 0.02));
    box-shadow: 0 30px 58px rgba(0, 0, 0, 0.45);
}
.price-card.business-tone::after {
    content: "";
    position: absolute;
    top: -95%;
    left: -35%;
    width: 28%;
    height: 290%;
    transform: rotate(20deg);
    pointer-events: none;
    background: linear-gradient(to right, transparent, rgba(255, 248, 231, 0.24), transparent);
    animation: businessSweep 7.5s ease-in-out infinite;
}
@keyframes businessSweep {
    0%, 72%, 100% { opacity: 0; left: -45%; }
    76% { opacity: 1; }
    92% { left: 120%; opacity: 0; }
}
.plan-tag { display: inline-flex; text-transform: uppercase; font-size: 0.63rem; font-weight: 800; letter-spacing: 1.8px; margin-bottom: 2px; color: var(--text-dim); }
.price-card h3 { font-size: 2rem; margin-bottom: 2px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.plan-price strong { font-size: 2rem; letter-spacing: -0.02em; }
.plan-price span { color: var(--text-dim); font-size: 0.88rem; }
.plan-audience {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e9edf2;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    width: fit-content;
}
.plan-audience i { width: 14px; color: var(--primary); }
.price-card.business-tone .plan-audience i { color: #f1d487; }
.popular-badge { position: absolute; top: 18px; right: 18px; background: var(--primary); color: #000; padding: 6px 12px; border-radius: 50px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.8px; }
.price-card.business-tone .popular-badge {
    background: linear-gradient(140deg, #fff8e7, #e8c86a, #b8923c);
    color: #1f1706;
}
.profiles-highlight {
    margin: 10px 0 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.profiles-highlight span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    font-weight: 700;
}
.profiles-highlight strong {
    font-size: 1.45rem;
    letter-spacing: -0.01em;
}
.price-card.featured .profiles-highlight {
    border-color: rgba(0, 212, 255, 0.36);
    background: rgba(0, 212, 255, 0.08);
}
.price-card.business-tone .profiles-highlight {
    border-color: rgba(232, 200, 106, 0.38);
    background: rgba(232, 200, 106, 0.1);
}
.price-features { list-style: none; margin: 6px 0 32px; text-align: left; }
.price-features li { margin-bottom: 13px; display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.price-features li i { color: var(--primary); width: 16px; }
.price-features li.disabled { opacity: 0.3; }

/* ESTILOS FAQ */
.faq-section { padding: 100px 8%; border-top: 1px solid var(--card-border); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.faq-item h4 { color: var(--primary); margin-bottom: 10px; font-size: 1.05rem; }
.faq-item p { color: var(--text-dim); font-size: 0.9rem; }

footer { padding: 60px 8%; text-align: center; border-top: 1px solid var(--card-border); font-size: 0.8rem; color: var(--text-dim); }

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
}
/* ESTILOS ESPECÍFICOS DE LOGIN */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: 0.3s;
}
.back-home:hover { color: var(--primary); }

.login-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.login-box .logo { margin-bottom: 20px; }
.login-box h2 { font-size: 1.5rem; margin-bottom: 5px; }
.login-box p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 30px; }

.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; margin-left: 5px; }

.input-group input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}

.login-box .btn-primary {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

.login-footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.85rem;
}

.login-footer a { color: var(--primary); text-decoration: none; }
.login-footer span { color: var(--text-dim); }


/* DASHBOARD STYLES */
.dashboard-page { background: var(--dark); }

.dash-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; border-bottom: 1px solid var(--card-border);
    position: sticky; top: 0; background: rgba(5,5,5,0.8); backdrop-filter: blur(10px);
}

.user-info { display: flex; align-items: center; gap: 15px; }
.btn-logout { color: var(--text-dim); transition: 0.3s; }
.btn-logout:hover { color: #ff5f56; }

.dash-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
    padding: 40px 5%; max-width: 1200px; margin: 0 auto;
}

.edit-panel h2 { font-size: 2rem; margin-bottom: 10px; }
.edit-panel h2 span { color: var(--primary); }
.edit-panel > p { color: var(--text-dim); margin-bottom: 40px; }

.edit-group {
    background: var(--card-bg); border: 1px solid var(--card-border);
    padding: 25px; border-radius: 20px; margin-bottom: 25px;
}
.edit-group h3 { font-size: 1rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.edit-group h3 i { color: var(--primary); width: 18px; }

.input-field { margin-bottom: 15px; }
.input-field label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 5px; }
.input-field input, .link-input input {
    width: 100%; background: #000; border: 1px solid var(--card-border);
    padding: 12px; border-radius: 10px; color: white; transition: 0.3s;
}
.input-field input:focus, .link-input input:focus { border-color: var(--primary); outline: none; }

.link-input { position: relative; margin-bottom: 12px; display: flex; align-items: center; }
.link-input i { position: absolute; left: 12px; width: 16px; color: var(--primary); }
.link-input input { padding-left: 40px; }

.add-btn { background: none; border: 1px dashed var(--card-border); color: var(--text-dim); width: 100%; padding: 10px; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.add-btn:hover { border-color: var(--primary); color: var(--primary); }

.save-button { background: var(--primary); color: black; font-weight: 800; border: none; padding: 18px; width: 100%; border-radius: 15px; cursor: pointer; font-size: 1rem; }

/* Preview Card */
.preview-panel { display: flex; flex-direction: column; align-items: center; }
.preview-card {
    background: #0a0a0a; width: 300px; padding: 40px 25px; border-radius: 30px;
    border: 1px solid var(--card-border); text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.p-avatar { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; color: black; font-weight: 800; font-size: 1.5rem; }
.p-header h3 { margin-bottom: 5px; }
.p-header span { color: var(--text-dim); font-size: 0.8rem; }
.p-links { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.p-link-btn { background: #1a1a1a; padding: 12px; border-radius: 10px; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.p-link-btn i { width: 14px; color: var(--primary); }
.p-save { margin-top: 30px; font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.preview-label { margin-top: 20px; font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 900px) {
    .dash-container { grid-template-columns: 1fr; }
    .preview-panel { display: none; } /* En móvil priorizamos la edición */
}

/* EXTENSIONES PROFESIONALES */
.grid-2 { display: grid; grid-template-columns: 100px 1fr; gap: 20px; margin-bottom: 15px; }
.header-edit { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.view-btn { padding: 8px 15px !important; font-size: 0.8rem !important; }

.link-edit { display: flex; align-items: center; background: #000; border: 1px solid var(--card-border); border-radius: 12px; padding: 5px 15px; margin-bottom: 10px; }
.link-edit i { color: var(--primary); width: 18px; margin-right: 15px; }
.link-edit input { border: none !important; background: transparent !important; }

/* Mockup de iPhone */
.iphone-mockup {
    width: 280px; height: 550px; border: 8px solid #1a1a1a; border-radius: 40px;
    background: #000; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.screen { padding: 40px 20px; text-align: center; height: 100%; display: flex; flex-direction: column; align-items: center; }
.p-mini-link { background: rgba(255,255,255,0.05); width: 100%; padding: 10px; border-radius: 10px; font-size: 0.7rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.p-main-btn { margin-top: auto; width: 100%; padding: 15px; border-radius: 15px; font-weight: 800; font-size: 0.8rem; color: #000; }

/* Perfil Público Wrapper */
.public-wrapper { max-width: 450px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.p-header { text-align: center; margin-bottom: 40px; }
.p-avatar { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: #000; margin-bottom: 20px; }
.p-links-grid { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.p-link-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 18px 25px; border-radius: 20px; display: flex; align-items: center; text-decoration: none; color: white; transition: 0.2s; }
.p-link-card:active { transform: scale(0.98); background: rgba(255,255,255,0.1); }
.p-link-card i { color: var(--primary); width: 20px; margin-right: 15px; }
.p-link-card .arrow { margin-left: auto; opacity: 0.3; width: 16px; }
.vcard-main { width: 100%; padding: 20px; border-radius: 20px; color: #000; font-weight: 800; text-align: center; text-decoration: none; margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.p-footer { margin-top: auto; padding: 40px 0; font-size: 0.6rem; letter-spacing: 3px; opacity: 0.3; }