/* ─────────────────────────────────────────
   GokyWebs – Propuesta  (tema claro/blanco)
   ───────────────────────────────────────── */

:root {
    --blue:        #2563EB;
    --blue-light:  #EFF6FF;
    --blue-mid:    #DBEAFE;
    --blue-dark:   #1D4ED8;
    --green:       #22C55E;
    --text:        #111827;
    --text-muted:  #6B7280;
    --text-light:  #9CA3AF;
    --bg:          #F8FAFC;
    --surface:     #FFFFFF;
    --border:      #E5E7EB;
    --border-focus:#2563EB;
    --error:       #EF4444;
    --radius:      14px;
    --radius-sm:   8px;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-btn:  0 4px 16px rgba(37,99,235,0.35);
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display:'Space Grotesk', var(--font);
    --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 64px;
    -webkit-font-smoothing: antialiased;
}

/* ─── Page wrapper ─── */
.page-wrapper {
    width: 100%;
    max-width: 660px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ─── Header ─── */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--blue);
}

.header-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ─── Hero text ─── */
.hero-text {
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Form card ─── */
.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ─── Sections ─── */
.form-section {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 0 32px;
}

/* ─── Section label ─── */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-mid);
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: 0.5px;
}

.step-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ─── Field ─── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.req {
    color: var(--blue);
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: var(--transition);
    outline: none;
    resize: none;
}

.field-input::placeholder {
    color: var(--text-light);
}

.field-input:focus {
    border-color: var(--border-focus);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.field-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.field-textarea {
    min-height: 90px;
    resize: vertical;
}

.field-textarea.autosize {
    min-height: unset;
    height: auto;
    overflow: hidden;
    resize: none;
}

/* ─── Error msg ─── */
.error-msg {
    font-size: 0.8rem;
    color: var(--error);
    display: none;
}

.error-msg.visible {
    display: block;
}

/* ─── Color palette ─── */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.cp-chip:hover {
    transform: scale(1.15);
}

.cp-chip.selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.22);
    transform: scale(1.15);
}

/* fila de chips seleccionados */
.cp-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 0;
    transition: min-height 0.2s;
}

.cp-selected:not(:empty) {
    margin-top: 6px;
}

.cp-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    padding: 4px 10px 4px 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.cp-pill-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.cp-pill-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    margin-left: 2px;
}

.cp-pill-remove:hover {
    color: #ef4444;
}

/* ─── Tip box ─── */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--blue-light);
    border: 1px solid var(--blue-mid);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #1E40AF;
    line-height: 1.5;
    margin-top: 8px;
}

.tip-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Inline link ─── */
.inline-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Submit row ─── */
.submit-row {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-submit {
    width: 100%;
    max-width: 360px;
    padding: 15px 28px;
    background: var(--blue);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
    letter-spacing: 0.2px;
}

.btn-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* ─── Success screen ─── */
.success-screen {
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    font-size: 3.5rem;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
}

.success-badge {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #86EFAC;
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.success-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 420px;
}

.success-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
}

/* ─── Footer ─── */
.footer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
}

.footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
    body {
        padding: 20px 12px 48px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 20px 18px;
    }

    .divider {
        margin: 0 18px;
    }

    .submit-row {
        padding: 16px 18px 24px;
    }

    .cp-chip {
        width: 36px;
        height: 36px;
    }
}

/* ─── Logo dropzone ─── */
.logo-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    user-select: none;
}

.logo-dropzone:hover,
.logo-dropzone.drag-over {
    border-color: var(--blue);
    background: var(--blue-light);
}

.logo-dropzone input[type="file"] { display: none; }

.logo-dropzone-icon { font-size: 2rem; line-height: 1; }

.logo-dropzone-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.logo-dropzone-text strong { color: var(--blue); }

.logo-dropzone-subtext {
    font-size: 0.75rem;
    color: var(--text-light);
}

.logo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--blue-light);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--blue-mid);
    margin-top: 4px;
}

.logo-preview-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--border);
}

.logo-preview-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    flex: 1;
    word-break: break-all;
}

.logo-preview-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--error);
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-preview-remove:hover {
    background: rgba(239,68,68,0.1);
}

/* ─── Yes/No toggles ─── */
.yn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.yn-btn {
    padding: 9px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--bg);
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.yn-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

.yn-btn.yn-active-si {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.yn-btn.yn-active-no {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #334155;
}

.yn-btn.yn-active-ns {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: #9A3412;
}
