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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #050505;
    color: #ffffff;
    line-height: 1.6;
}

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

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

.site-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 35%),
        radial-gradient(circle at 15% 20%, rgba(57, 148, 255, 0.12), transparent 28%),
        #050505;
}

.header {
    width: 100%;
    padding: 18px 32px;
    border-bottom: 1px solid #202020;
    background: rgba(5, 5, 5, 0.94);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO GLOBAL VESTIQ */
.logo,
.v-logo,
.vx-logo,
.vr-logo,
.legal-logo,
.navbar-brand,
.header-logo {
    display: flex;
    align-items: center;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
}

.logo img,
.v-logo img,
.vx-logo img,
.vr-logo img,
.legal-logo img,
.navbar-brand img,
.header-logo img,
.form-card .logo-img,
.form-card > a img,
.sidebar .logo img,
.v-sidebar .v-logo img,
.legal-nav img,
.top img,
.vr-footer img,
.vx-footer img {
    height: 72px !important;
    width: auto !important;
    max-width: none !important;
    display: block;    
    transition: all .25s ease;
}

.logo img:hover,
.v-logo img:hover,
.vx-logo img:hover,
.vr-logo img:hover,
.legal-logo img:hover,
.navbar-brand img:hover,
.header-logo img:hover,
.form-card > a img:hover,
.sidebar .logo img:hover,
.v-sidebar .v-logo img:hover {
    transform: scale(1.03);
}

/* Logos más pequeños en footer para evitar descompensar */
.footer img,
.vr-footer img,
.vx-footer img {
    height: 58px !important;
}

/* Logo en formularios */
.form-card > a {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-card > a img {
    height: 78px !important;
}

/* Logo sidebar */
.sidebar .logo,
.v-sidebar .v-logo {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.sidebar .logo img,
.v-sidebar .v-logo img {
    height: 78px !important;
}

/* Compatibilidad: si el logo sigue siendo texto */
.logo:not(:has(img)) {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -1.4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: #d4d4d8;
    font-size: 15px;
    transition: 0.2s;
}

.nav a:hover {
    color: #ffffff;
}

.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 86px 32px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -2.5px;
    margin: 22px 0;
}

.hero p {
    color: #b8b8c2;
    font-size: 20px;
    max-width: 680px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.38);
    color: #ddd6fe;
    font-size: 14px;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.22s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff !important;
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.28);
}

.btn-dark {
    background: #121216;
    border-color: #2a2a32;
    color: #ffffff !important;
}

.full {
    width: 100%;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 32px;
}

.section h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

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

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
    border: 1px solid #25252c;
    border-radius: 24px;
    padding: 28px;
    min-height: 170px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.card p,
.card li {
    color: #a9a9b3;
}

.price {
    font-size: 48px;
    font-weight: 900;
    margin: 18px 0 8px;
    letter-spacing: -1px;
}

.footer {
    max-width: 1280px;
    margin: 50px auto 0;
    padding: 38px 32px;
    border-top: 1px solid #202020;
    color: #8f8f99;
    text-align: center;
}

/* Forms */
.form-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.22), transparent 34%),
        #050505;
}

.form-card {
    width: 100%;
    max-width: 460px;
    background: #101014;
    border: 1px solid #262630;
    border-radius: 28px;
    padding: 34px;
}

.form-card h1 {
    font-size: 36px;
    margin: 20px 0 10px;
}

.form-card p {
    color: #aaa;
    margin-bottom: 22px;
}

.input,
.select,
textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid #2b2b33;
    background: #0d0d10;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 14px;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #2a1111;
    border: 1px solid #5f2020;
    color: #ffb4b4;
}

.alert.success,
.success {
    background: #102414;
    border-color: #1f6f32;
    color: #b9ffc7;
}

/* Dashboard legacy support */
.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #050505;
}

.sidebar {
    padding: 28px;
    border-right: 1px solid #1f1f26;
    background: #09090b;
}

.sidebar .logo {
    display: flex;
    margin-bottom: 34px;
}

.sidebar a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    color: #bdbdc7;
    margin-bottom: 8px;
}

.sidebar a.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
}

.dashboard-main {
    padding: 34px;
}

.dashboard-main h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.dashboard-main > p {
    color: #999;
    margin-bottom: 28px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.upload-area {
    border: 1px dashed #444;
    border-radius: 24px;
    padding: 28px;
    background: #101014;
    margin-bottom: 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #101014;
    border-radius: 18px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #24242b;
    text-align: left;
}

.table th {
    color: #aaa;
}

/* Demo page support */
.demo-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(124,58,237,.25), transparent 34%),
        radial-gradient(circle at 20% 10%, rgba(79,70,229,.15), transparent 28%),
        #050505;
}

.demo-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 44px;
    align-items: center;
}

.demo-hero h1 {
    font-size: clamp(42px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.demo-hero p {
    color: #b7b7b7;
    font-size: 20px;
    max-width: 680px;
    margin-bottom: 28px;
}

.demo-card {
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    border: 1px solid #262630;
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.demo-input,
.demo-textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid #2b2b33;
    background: #0d0d10;
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
}

.demo-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Tables */
.leads-table,
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.leads-table th,
.admin-table th {
    text-align: left;
    color: #aaa;
    font-size: 13px;
    padding: 0 12px;
}

.leads-table td,
.admin-table td {
    background: #111114;
    border-top: 1px solid #232329;
    border-bottom: 1px solid #232329;
    padding: 14px 12px;
    vertical-align: top;
}

/* Landing extra blocks */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.stat-card {
    background: #101014;
    border: 1px solid #25252c;
    border-radius: 22px;
    padding: 28px;
    text-align: center;
}

.stat-card h3 {
    font-size: 44px;
    margin-bottom: 10px;
}

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

.demo-box {
    background: #101014;
    border: 1px solid #25252c;
    border-radius: 22px;
    overflow: hidden;
}

.demo-box img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.demo-box-content {
    padding: 18px;
}

.hero-video {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid #222;
    background: linear-gradient(135deg,#111,#1a1a1a);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.2));
}

.hero-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(10,10,10,.82);
    backdrop-filter: blur(10px);
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    padding: 24px;
}

.big-cta {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg,#111,#0b0b0b);
    border-radius: 28px;
    border: 1px solid #222;
}

.big-cta h2 {
    font-size: clamp(36px, 5vw, 54px);
    margin-bottom: 20px;
}

.big-cta p {
    color: #aaa;
    max-width: 800px;
    margin: auto auto 28px;
    font-size: 19px;
}

@media(max-width: 960px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
    }

    .logo img,
    .v-logo img,
    .vx-logo img,
    .vr-logo img,
    .legal-logo img,
    .navbar-brand img,
    .header-logo img,
    .form-card > a img,
    .sidebar .logo img,
    .v-sidebar .v-logo img,
    .legal-nav img,
    .top img {
        height: 62px !important;
    }

    .hero,
    .demo-wrapper {
        grid-template-columns: 1fr;
        padding: 56px 22px;
    }

    .section {
        padding: 56px 22px;
    }

    .grid,
    .dashboard-grid,
    .demo-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid #1f1f26;
    }

    .hero-video {
        min-height: 380px;
    }

    .footer {
        margin-top: 20px;
    }
}

/* Botón cerrar sesión */
.v-btn-danger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 18px;
    border-radius:14px;
    background:linear-gradient(135deg,#ef4444,#dc2626);
    color:#fff !important;
    font-weight:800;
    border:none;
    text-decoration:none;
    transition:.2s ease;
    box-shadow:0 12px 30px rgba(239,68,68,.25);
}
.v-btn-danger:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 40px rgba(239,68,68,.35);
}


/* =========================================================
   VESTIQ RESPONSIVE GLOBAL FINAL
   Añadido para que toda la plataforma sea responsive
========================================================= */

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

img,
video,
iframe{
    max-width:100%;
}

table{
    max-width:100%;
}

/* Contenedores */
.container,
.wrap,
.v-main,
.vx-section,
.vr-section,
.vg-section,
.section,
.legal-wrap,
.dashboard-main{
    width:100%;
    max-width:1280px;
}

/* Botones */
.btn,
.vx-btn,
.vr-btn,
.vg-btn,
.btnx,
.v-btn-danger{
    white-space:normal;
    text-align:center;
}

/* Headers */
.header-inner,
.vx-nav-inner,
.vr-nav-inner,
.vg-nav-inner,
.legal-nav,
.top,
.v-top{
    width:100%;
}

/* Logo responsive */
.logo img,
.v-logo img,
.vx-logo img,
.vr-logo img,
.vg-logo img,
.legal-logo img,
.navbar-brand img,
.header-logo img,
.legal-nav img,
.top img,
.v-top img{
    max-width:232px !important;
    height:auto !important;
    min-height:52px;
}

/* Dashboard / Sidebar */
.dashboard-layout,
.v-layout{
    width:100%;
}

.sidebar,
.v-sidebar{
    display:flex;
    flex-direction:column;
    min-height:100vh;
    height:auto;
    overflow-y:auto;
    overflow-x:hidden;
}

.sidebar nav,
.v-sidebar nav,
.v-menu{
    width:100%;
    flex:1;
}

.sidebar a,
.v-menu a{
    word-break:break-word;
}

/* Bloque plan / créditos */
.v-side-footer,
.sidebar-footer,
.plan-box{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100%;
    margin-top:24px;
    margin-bottom:10px;
    border-radius:20px;
    padding:18px;
    background:linear-gradient(180deg,rgba(124,58,237,.18),rgba(255,255,255,.03));
    border:1px solid rgba(124,58,237,.25);
    backdrop-filter:blur(10px);
}

.v-side-footer .btn,
.v-side-footer a,
.sidebar-footer .btn,
.sidebar-footer a,
.plan-box .btn,
.plan-box a{
    width:100%;
    justify-content:center;
    margin-top:12px;
}

/* Tablas responsive */
.table-wrap,
.v-table-wrap,
.table-responsive,
.admin-table-wrap,
.leads-table-wrap{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.table,
.v-table,
.admin-table,
.leads-table{
    min-width:760px;
}

/* Grids globales */
.grid,
.dashboard-grid,
.demo-grid,
.stats-grid,
.v-grid,
.v-studio,
.v-preview-grid,
.vx-stats,
.vx-grid-3,
.vx-integrations,
.vx-pricing,
.vx-faq-grid,
.vr-stats,
.vr-grid-3,
.vr-integrations,
.vr-pricing,
.vr-faq-grid,
.vg-stats,
.vg-grid-3,
.vg-cases,
.vg-integrations,
.vg-pricing,
.vg-faq-grid,
.vg-logo-grid,
.two,
.steps{
    width:100%;
}

/* Inputs */
input,
select,
textarea,
.input,
.select,
.v-input,
.v-select,
.demo-input,
.demo-textarea{
    max-width:100%;
}

/* =========================================
   TABLET
========================================= */
@media(max-width:1100px){

    .header-inner,
    .vx-nav-inner,
    .vr-nav-inner,
    .vg-nav-inner{
        align-items:flex-start;
        gap:16px;
    }

    .hero,
    .demo-wrapper,
    .vx-hero,
    .vr-hero,
    .vg-hero,
    .v-studio,
    .vr-split,
    .vg-problem,
    .vg-before-grid{
        grid-template-columns:1fr !important;
    }

    .grid,
    .dashboard-grid,
    .demo-grid,
    .stats-grid,
    .v-grid,
    .vx-stats,
    .vx-grid-3,
    .vx-integrations,
    .vx-pricing,
    .vx-faq-grid,
    .vr-stats,
    .vr-grid-3,
    .vr-integrations,
    .vr-pricing,
    .vr-faq-grid,
    .vg-stats,
    .vg-grid-3,
    .vg-cases,
    .vg-integrations,
    .vg-pricing,
    .vg-faq-grid,
    .vg-logo-grid,
    .two,
    .steps{
        grid-template-columns:1fr 1fr !important;
    }

    .dashboard-layout,
    .v-layout{
        grid-template-columns:1fr !important;
    }

    .sidebar,
    .v-sidebar{
        min-height:auto;
        height:auto;
        position:relative !important;
        border-right:0;
        border-bottom:1px solid #1f1f26;
        width:100%;
    }

    .v-side-footer,
    .sidebar-footer,
    .plan-box{
        margin-top:20px;
    }

    .v-main,
    .dashboard-main{
        padding:28px;
    }

    .vx-menu,
    .vr-menu,
    .vg-menu{
        display:none !important;
    }

    .vx-footer,
    .vr-footer,
    .vg-footer{
        grid-template-columns:1fr 1fr !important;
    }
}

/* =========================================
   MOBILE
========================================= */
@media(max-width:760px){

    body{
        font-size:15px;
    }

    .header{
        padding:16px 18px;
    }

    .header-inner,
    .vx-nav-inner,
    .vr-nav-inner,
    .vg-nav-inner,
    .legal-nav,
    .top,
    .v-top{
        flex-direction:column !important;
        align-items:flex-start !important;
    }

    .nav,
    .vx-nav-actions,
    .vr-nav-actions,
    .vg-actions,
    .v-actions,
    .actions{
        width:100%;
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    .nav a,
    .vx-nav-actions a,
    .vr-nav-actions a,
    .vg-actions a,
    .v-actions a,
    .actions a{
        flex:1 1 auto;
        justify-content:center;
    }

    .logo img,
    .v-logo img,
    .vx-logo img,
    .vr-logo img,
    .vg-logo img,
    .legal-logo img,
    .navbar-brand img,
    .header-logo img,
    .legal-nav img,
    .top img,
    .v-top img{
        max-width:370px !important;
        min-height:48px;
    }

    .hero,
    .section,
    .demo-wrapper,
    .vx-hero,
    .vx-section,
    .vr-hero,
    .vr-section,
    .vg-hero,
    .vg-section,
    .legal-wrap,
    .dashboard-main,
    .v-main{
        padding-left:18px !important;
        padding-right:18px !important;
    }

    .hero{
        padding-top:48px;
    }

    .hero h1,
    .vx-hero h1,
    .vr-hero h1,
    .vg-hero h1,
    h1{
        font-size:clamp(34px,10vw,46px) !important;
        line-height:1.05 !important;
        letter-spacing:-1.5px !important;
    }

    .section h2,
    .vx-section h2,
    .vr-section h2,
    .vg-head h2,
    .legal-card h2,
    h2{
        font-size:clamp(28px,8vw,36px) !important;
        line-height:1.12 !important;
        letter-spacing:-1px !important;
    }

    .hero p,
    .vx-hero p,
    .vr-hero p,
    .vg-hero p,
    .lead{
        font-size:17px !important;
    }

    .grid,
    .dashboard-grid,
    .demo-grid,
    .stats-grid,
    .v-grid,
    .v-studio,
    .v-preview-grid,
    .vx-stats,
    .vx-grid-3,
    .vx-integrations,
    .vx-pricing,
    .vx-faq-grid,
    .vr-stats,
    .vr-grid-3,
    .vr-integrations,
    .vr-pricing,
    .vr-faq-grid,
    .vg-stats,
    .vg-grid-3,
    .vg-cases,
    .vg-integrations,
    .vg-pricing,
    .vg-faq-grid,
    .vg-logo-grid,
    .two,
    .steps{
        grid-template-columns:1fr !important;
    }

    .card,
    .v-card,
    .vx-card,
    .vr-card,
    .vg-card,
    .legal-card,
    .demo-card,
    .form-card,
    .v-upload,
    .v-preview,
    .v-history,
    .vg-case,
    .vg-plan,
    .vx-plan,
    .vr-plan{
        padding:22px !important;
        border-radius:22px !important;
    }

    .btn,
    .vx-btn,
    .vr-btn,
    .vg-btn,
    .btnx,
    .v-btn-danger{
        width:100%;
        min-height:48px;
    }

    .form-page{
        padding:18px;
        align-items:flex-start;
    }

    .form-card{
        margin-top:20px;
    }

    .dashboard-main,
    .v-main{
        padding-top:22px !important;
    }

    .sidebar,
    .v-sidebar{
        padding:20px !important;
        width:100%;
    }

    .sidebar .logo img,
    .v-sidebar .v-logo img{
        max-width:190px !important;
    }

    .sidebar a,
    .v-menu a{
        padding:12px 13px;
        font-size:15px;
    }

    .v-side-footer,
    .sidebar-footer,
    .plan-box{
        padding:16px !important;
        border-radius:18px !important;
        margin-top:18px;
    }

    .v-title h1,
    .dashboard-main h1{
        font-size:34px !important;
    }

    .v-pill{
        width:100%;
        justify-content:center;
    }

    .v-preview-box,
    .vg-shot,
    .vx-shot,
    .vr-shot{
        min-height:170px !important;
    }

    .hero-video{
        min-height:300px !important;
    }

    .demo-box img{
        height:240px !important;
    }

    .footer,
    .vx-footer,
    .vr-footer,
    .vg-footer{
        grid-template-columns:1fr !important;
        text-align:left;
        padding-left:18px !important;
        padding-right:18px !important;
    }

    .table,
    .v-table,
    .admin-table,
    .leads-table{
        min-width:720px;
        font-size:14px;
    }
}

/* =========================================
   VERY SMALL MOBILE
========================================= */
@media(max-width:420px){

    .hero,
    .section,
    .demo-wrapper,
    .vx-hero,
    .vx-section,
    .vr-hero,
    .vr-section,
    .vg-hero,
    .vg-section,
    .legal-wrap,
    .dashboard-main,
    .v-main{
        padding-left:14px !important;
        padding-right:14px !important;
    }

    .card,
    .v-card,
    .vx-card,
    .vr-card,
    .vg-card,
    .legal-card,
    .demo-card,
    .form-card,
    .v-upload,
    .v-preview,
    .v-history{
        padding:18px !important;
    }

    .logo img,
    .v-logo img,
    .vx-logo img,
    .vr-logo img,
    .vg-logo img,
    .legal-logo img{
        max-width:165px !important;
        min-height:44px;
    }

    .btn,
    .vx-btn,
    .vr-btn,
    .vg-btn{
        padding:13px 15px;
        font-size:14px;
    }

    .price,
    .vg-price-big,
    .vx-price,
    .vr-price-big{
        font-size:40px !important;
    }
}
