
/* ============================================================
   RESET Y BASE
   ============================================================ */

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

:root {
    --ig-pink:    #E1306C;
    --ig-purple:  #833ab4;
    --ig-orange:  #f09433;
    --yt-red:     #FF0000;
    --yt-dark:    #CC0000;
    --wa-green:   #25D366;
    --teal:       #28afc3;
    --alert:      #ff6b35;
    --bg:         #f4f6f9;
    --card:       #ffffff;
    --border:     #e5e7eb;
    --text:       #111827;
    --text-2:     #6b7280;
    --text-3:     #9ca3af;
    --radius:     14px;
    --radius-sm:  8px;
    --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

/* ============================================================
   HEADER
   ============================================================ */

.siq-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.logo { display: flex; align-items: center; gap: 16px; }

.logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--ig-purple) 0%, var(--ig-pink) 60%, var(--ig-orange) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; }


/* Logo BrainLabs · Social IQ (08/10/2026): logo cuadrado, assets/img/brainlabs-socialiq-logo-240.png */
.siq-logo { width: 80px; height: 80px; border-radius: 14px; display: block; }
.siq-t1 { font-size: 28px; font-weight: 900; letter-spacing: .01em; line-height: 1; color: var(--text); }
.siq-t1 span { color: var(--ig-pink); }
.siq-t2 { font-size: 14px; font-weight: 600; color: var(--text-2); margin-top: 6px; letter-spacing: .02em; }
.hero .hero-pro { font-size: 13px; opacity: .85; margin-top: 6px; }

.by-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: #0a5a9c; text-decoration: none;
    border: 1px solid #cfe0f0; background: #f2f7fc;
    padding: 6px 12px; border-radius: 20px; white-space: nowrap;
}
.by-link:hover { background: #e6f0fa; }

.badge {
    background: var(--ig-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--ig-purple) 0%, var(--ig-pink) 55%, #fd5949 100%);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

.hero h1 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.hero p {
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.65;
}

/* ============================================================
   CARD
   ============================================================ */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-2);
    margin-bottom: 14px;
}

/* ============================================================
   FORMULARIO
   ============================================================ */

.req-note {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 14px;
}
.req-note span { color: var(--ig-pink); }

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
}

.field label .req { color: var(--ig-pink); margin-left: 2px; }

.field input,
.field select {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafafa;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.field input:focus,
.field select:focus {
    border-color: var(--ig-pink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(225,48,108,.1);
}

.field input.is-req { border-color: rgba(225,48,108,.4); }

.field-icon {
    position: relative;
}

.field-icon input { padding-left: 36px; }

.field-icon .ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    pointer-events: none;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

.detect-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f0f4ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    cursor: pointer;
    transition: background .15s;
}

.detect-box:hover { background: #e0eaff; }

.detect-box svg { flex-shrink: 0; color: var(--ig-purple); }

.detect-box p { font-size: 13px; color: var(--text-2); }
.detect-box p strong { color: var(--text); font-weight: 600; }

/* ============================================================
   BOTÓN ANALIZAR
   ============================================================ */

.btn-analyze {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--ig-purple), var(--ig-pink));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .1s;
    letter-spacing: .01em;
}

.btn-analyze:hover { opacity: .92; }
.btn-analyze:active { transform: scale(.99); }
.btn-analyze:disabled { opacity: .6; cursor: not-allowed; }

.btn-analyze svg { width: 18px; height: 18px; }

/* Spinner */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   LOADING STATE
   ============================================================ */

#loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
