﻿
html, body {
    overflow-x: hidden;
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

button,
input,
textarea,
select {
    font-family: inherit;
}



h1, h2, h3 {
    font-weight: 800;
}

h4, h5 {
    font-weight: 700;
}

p, label, input {
    font-weight: 400;
}

.vc-page, .vc-wrap {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}


:root {
    --yellow: #FCCE01;
    --black: #0B0B0B;
    --gray: #4B5563;
    --shadow: 0 18px 50px rgba(0,0,0,.12);
    --radius: 22px;
}

/* ✅ Fondo (arte final) */
.vc-page {
    min-height: 100vh;
    width: 100%;
    background: #fff url("/img/brand/fondo.jpg") no-repeat top center;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/* Wrap */
.vc-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 18px 36px;
    padding-top: clamp(140px, 18vh, 220px); /* ✅ reserva zona logos */

    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Mobile */
@media (max-width: 600px) {
    .vc-back {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

    .vc-wrap {
        display: block; /*  clave */
    }
}

/* Botón volver */
.vc-back {
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    border: 0;
}

    .vc-back:hover {
        filter: brightness(1.05);
    }

/* ✅ Card centrada como mock */
.vc-card {
    width: min(560px, 92vw);
    margin: clamp(10px, 4vh, 50px) auto 0; /* ✅ sin tocar logos */
    background: rgba(255,255,255,.96);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.08);
    padding: 30px 30px 24px;
}


.vc-card {
    max-width: 560px;
}

    .vc-card, .vc-card * {
        max-width: 100%;
    }

.vc-input {
    width: 100%;
}

.vc-title {
    margin: 0 0 8px 0;
    font-weight: 950;
    letter-spacing: -.02em;
    font-size: 30px;
    line-height: 1.1;
    color: var(--black);
}

.vc-sub {
    margin: 0 0 18px 0;
    color: #2f3540;
    font-size: 13.5px;
    max-width: 52ch;
}

.vc-label {
    font-size: 15px;
    font-weight: 950;
    color: var(--black);
    margin-bottom: 4px;
    display: block;
}

.vc-hint {
    font-size: 12.5px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.vc-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}

    .vc-input:focus {
        border-color: rgba(246,48,62,.35);
        box-shadow: 0 0 0 4px rgba(246,48,62,.12);
    }

.vc-error {
    display: none;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(246,48,62,.25);
    background: rgba(246,48,62,.08);
    color: #7a111c;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
}

    .vc-error.show {
        display: block;
    }

.vc-actions {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

/* Botón negro (Generar) */
.vc-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 950;
    cursor: pointer;
    background: #0b0b0b;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
    transition: transform .06s ease, filter .2s ease;
}

    .vc-btn:active {
        transform: translateY(1px);
    }

    .vc-btn:disabled {
        cursor: not-allowed;
        filter: grayscale(.25) brightness(.92);
        box-shadow: none;
    }

/* Botón blanco (Limpiar) */
.vc-btn-secondary {
    background: #fff;
    color: var(--black);
    border: 1px solid rgba(0,0,0,.18);
    box-shadow: none;
    font-weight: 950;
}

/* Resultado */
.vc-result {
    display: none;
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(34,197,94,.22);
    background: rgba(34,197,94,.08);
    padding: 12px;
    gap: 10px;
}

    .vc-result.show {
        display: grid;
    }

.vc-token {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(0,0,0,.22);
    background: rgba(255,255,255,.7);
    word-break: break-word;
    color: var(--black);
}

.vc-inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vc-mini {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    color: var(--black);
    font-weight: 900;
    cursor: pointer;
}

.vc-foot {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0,0,0,.55);
    text-align: center;
}

/* ✅ Responsive: en móvil NO se recorta el header del fondo (logos) */
@media (max-width: 600px) {
    .vc-page {
        background-size: contain;
        background-position: top center;
    }
    /* ✅ espacio superior para que se vean logos + que el botón no tape */
    .vc-wrap {
        padding: 16px 14px 22px;
        padding-top: clamp(110px, 22vw, 150px);
    }
    /* ✅ Botón vuelve “debajo” del header del fondo */
    .vc-back {
        position: static; /* antes era absolute */
        display: inline-flex;
        margin: 0 0 12px 0; /* separa del card */
        border-radius: 12px;
        padding: 10px 14px;
    }
    /* ✅ card centrada y sin scroll horizontal */
    .vc-card {
        width: 100%;
        margin: 0 auto; /* ya no margin-top gigante */
        padding: 22px 20px 18px;
        border-radius: 18px;
    }

    .vc-title {
        font-size: 26px;
    }
}
