/* ==========================================================================
   Inputo — generador de prompts gratis (páginas públicas de captación)
   Fichero propio para NO tener que bumpear ?v= en todas las páginas del sitio.
   ========================================================================== */

/* (la cabecera y las pestañas son las del sitio: <header> + .nav-right + .compare-tabs) */

/* ==========================================================================
   Alias de color que faltan en css/style.css
   Las reglas .compare-* (copiadas de las páginas del sitio) usan var(--muted)
   y var(--card), que NO están definidos en style.css. Aquí se resuelven a los
   valores correctos del sistema de diseño (--text2 / --bg2).
   ========================================================================== */
body {
    --muted: var(--text2);
    --card: var(--bg2);
}

/* ==========================================================================
   Clases .compare-* — copiadas tal cual de las páginas de contenido del sitio
   (how-to-*.html, *-vs-*.html) para que estas páginas sean visualmente idénticas
   sin tocar css/style.css.
   ========================================================================== */
.compare-hero {
    padding: 6rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.compare-hero h1 {
    font-family: "Satoshi", sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--text);
    line-height: 1.1;
    max-width: 760px;
    margin: 0 auto 1rem;
    letter-spacing: -0.03em;
}
.compare-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}
.compare-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}
.compare-content h2 {
    font-family: "Satoshi", sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text);
    margin: 3rem 0 1rem;
}
.compare-content h3 {
    font-family: "Satoshi", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    margin: 2rem 0 0.8rem;
}
.compare-content p, .compare-content li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.compare-content strong { color: var(--text); }
.compare-content ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.compare-content li { margin-bottom: 0.5rem; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}
.compare-table th {
    font-family: "Satoshi", sans-serif;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid var(--border);
}
.compare-table td {
    color: var(--muted);
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.compare-table tr:hover td { background: var(--card); }
.compare-table .winner { color: var(--accent); font-weight: 600; }
.compare-verdict {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    margin: 2.5rem 0;
}
.compare-verdict h3 { margin-top: 0; }
.compare-cta {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.compare-cta h2 {
    font-family: "Satoshi", sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: var(--text);
    margin-bottom: 0.8rem;
}
.compare-cta p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.compare-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 2rem;
    margin-top: 85px;
    background: linear-gradient(180deg, rgba(200,255,0,0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
}
.compare-tabs a {
    font-family: "Satoshi", sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-decoration: none;
    padding: 0.55rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.compare-tabs a:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}
.compare-tabs a.active {
    color: #0a0a0a;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(200,255,0,0.2);
}
@media (max-width: 600px) {
    .compare-tabs {
        gap: 0.35rem;
        padding: 0.8rem 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .compare-tabs a { font-size: 0.72rem; padding: 0.45rem 0.9rem; }
}

/* ------------------------------------------------ hero de estas páginas */
.gp-hero {
    padding: 5.5rem 2rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.gp-hero h1 {
    font-family: var(--font);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 820px;
    margin: 0 auto 1rem;
}
.gp-hero p {
    color: var(--text2);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}
.gp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(200, 255, 0, 0.25);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.4rem;
}

/* ------------------------------------------------ la herramienta */
.gp-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}
.gp-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg2);
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.gp-label {
    display: block;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.gp-input {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--text);
    font-family: var(--body);
    font-size: 0.95rem;
    line-height: 1.5;
}
.gp-input:focus {
    outline: none;
    border-color: var(--accent);
}
.gp-input::placeholder { color: #5c5c5c; }

.gp-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0.85rem 0 1.1rem;
}
.gp-examples-label {
    font-size: 0.78rem;
    color: var(--text2);
}
.gp-example {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text2);
    font-family: var(--body);
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.gp-example:hover {
    border-color: var(--accent);
    color: var(--text);
}
.gp-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
}
.gp-btn[disabled] { opacity: 0.6; cursor: wait; }
.gp-note {
    font-size: 0.78rem;
    color: var(--text2);
    text-align: center;
    margin-top: 0.7rem;
}
.gp-status {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg3);
    color: var(--text2);
    font-size: 0.88rem;
    text-align: center;
}
.gp-status--error {
    border-color: rgba(255, 68, 68, 0.4);
    color: #ffb4b4;
}

/* ------------------------------------------------ resultado */
.gp-result {
    margin-top: 1.75rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.gp-result-title {
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.9rem;
}
.gp-prompt {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    color: #d6d6d6;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 460px;
    overflow-y: auto;
    margin-bottom: 0.9rem;
}
.gp-prompt.gp-collapsed {
    max-height: 190px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.gp-copy { margin-bottom: 0.6rem; }
.gp-more {
    display: inline-block;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-family: var(--body);
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-bottom: 1rem;
}
.gp-more:hover { color: var(--accent); border-color: var(--accent); }
.gp-sections {
    font-size: 0.83rem;
    color: var(--text2);
    margin-bottom: 0.6rem;
    line-height: 2;
}
.gp-chip {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.15rem 0.65rem;
    margin: 0 0.3rem 0.3rem 0;
    font-size: 0.76rem;
    color: var(--text);
}
.gp-tip {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.55;
    border-left: 2px solid var(--accent);
    padding-left: 0.8rem;
    margin-bottom: 1.4rem;
}
.gp-tools-block {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    background: var(--bg3);
    margin-top: 1.5rem;
}
.gp-tools-block h4 {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.9rem;
}
.gp-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}
.gp-tool {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: var(--bg2);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.gp-tool:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.gp-tool-name {
    display: block;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
}
.gp-tool-sub {
    display: block;
    font-size: 0.76rem;
    color: var(--text2);
    margin-top: 0.2rem;
}
.gp-affiliate-note {
    font-size: 0.72rem;
    color: #6d6d6d;
    margin-top: 0.85rem;
    line-height: 1.5;
}
.gp-cta {
    margin-top: 1.5rem;
    border: 1px solid rgba(200, 255, 0, 0.22);
    border-radius: 12px;
    padding: 1.3rem;
    text-align: center;
}
.gp-cta h4 {
    font-family: var(--font);
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.gp-cta p {
    font-size: 0.87rem;
    color: var(--text2);
    line-height: 1.55;
    max-width: 620px;
    margin: 0 auto 1rem;
}

/* ------------------------------------------------ contenido */
.gp-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    color: var(--text2);
    line-height: 1.7;
    font-size: 0.97rem;
}
.gp-content h2 {
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text);
    margin: 2.6rem 0 0.9rem;
    letter-spacing: -0.02em;
}
.gp-content h3 {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text);
    margin: 1.8rem 0 0.5rem;
}
.gp-content p { margin-bottom: 1rem; }
.gp-content ul, .gp-content ol { margin: 0 0 1.2rem 1.2rem; }
.gp-content li { margin-bottom: 0.5rem; }
.gp-content strong { color: var(--text); }
.gp-content a { color: var(--accent); }
.gp-content code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--bg3);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    color: var(--text);
}
.gp-answer {
    border-left: 3px solid var(--accent);
    background: var(--bg2);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.2rem;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
}
.gp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.6rem;
    font-size: 0.88rem;
}
.gp-table th, .gp-table td {
    border: 1px solid var(--border);
    padding: 0.7rem 0.85rem;
    text-align: left;
    vertical-align: top;
}
.gp-table th {
    background: var(--bg3);
    color: var(--text);
    font-family: var(--font);
    font-weight: 700;
}
.gp-pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.15rem;
    color: #d6d6d6;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 1.2rem;
}
.gp-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.7rem;
    margin: 1rem 0 2rem;
}
.gp-link {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: var(--bg2);
}
.gp-link:hover { border-color: var(--accent); }
.gp-link-title {
    display: block;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}
.gp-link-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text2);
    margin-top: 0.25rem;
}
.gp-inline-cta {
    display: inline-block;
    margin: 0.2rem 0 1.2rem;
    border: 1px dashed rgba(200, 255, 0, 0.35);
    border-radius: 8px;
    padding: 0.7rem 1.1rem;
    color: var(--accent);
    font-size: 0.88rem;
}
.gp-inline-cta:hover { border-style: solid; }

/* Bloque de compartir del resultado (crecimiento: cada prompt lleva la firma) */
.gp-share { display: none; margin: 1.1rem 0 0.3rem; }
.gp-share-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text2);
    margin-bottom: 0.5rem;
}
.gp-share-btn {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.42rem 0.9rem;
    border: 1px solid rgba(200, 255, 0, 0.28);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.82rem;
    color: var(--text2);
    text-decoration: none;
}
.gp-share-btn:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 600px) {
    .gp-hero { padding: 4rem 1.2rem 2rem; }
    .gp-wrap { padding: 1.2rem; border-radius: 12px; }
    .gp-prompt { font-size: 0.76rem; }
}
