/* ─── Opciones ────────────────────────────────────────────────────── */
.converter-options {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
}

.option-group { flex: 1; min-width: 170px; }

label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

textarea,
select {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--text);
    transition: border-color 0.2s;
}

textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-light);
}

textarea {
    padding: 1rem;
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

select {
    padding: 0.7rem 2.25rem 0.7rem 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

/* ─── Ejemplos rápidos ────────────────────────────────────────────── */
.examples-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.examples-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.example-chip {
    padding: 0.3rem 0.75rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.example-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ─── Botón convertir ─────────────────────────────────────────────── */
.btn-convert {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent-light);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.btn-convert:hover  { background: var(--accent); transform: translateY(-1px); }
.btn-convert:active { transform: translateY(0); }

/* ─── Resultado ───────────────────────────────────────────────────── */
.output-section {
    display: none;
    margin-top: 2rem;
}

.output-section.visible { display: block; }

.output-box {
    background: var(--bg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.output-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.output-phonetic {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    color: var(--text-muted);
    background: white;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    word-break: break-word;
    line-height: 1.8;
}

.output-iberian {
    font-size: 2.25rem;
    word-break: break-word;
    line-height: 2.2;
    min-height: 3rem;
}

/* ─── Botones de acción del resultado ─────────────────────────────── */
.output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-action {
    padding: 0.55rem 1.1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-action:hover { background: var(--primary-dark); }

.btn-action.copied { background: #27ae60; }

.btn-action.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-action.btn-ghost:hover {
    background: var(--bg);
    border-color: var(--primary);
}

.btn-action.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent-light);
}

.btn-action.btn-outline:hover {
    background: var(--accent-light);
    color: white;
}

/* ─── Aviso ───────────────────────────────────────────────────────── */
.notice-box {
    background: #fff8e6;
    border: 2px solid #f0c040;
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    margin-top: 0;
    font-size: 0.9rem;
    color: #7a5c00;
}

.notice-box strong { display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }
.notice-box a { color: #b07800; font-weight: 600; }

/* ─── Modo grande (overlay) ───────────────────────────────────────── */
.big-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #1a252f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.big-overlay[hidden] { display: none; }

.big-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.big-iberian {
    font-size: clamp(3.5rem, 11vw, 9rem);
    color: #f5f0e8;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    word-break: break-word;
}

.big-phonetic {
    font-family: 'Courier New', monospace;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #8a9ab0;
    margin-bottom: 2.5rem;
    word-break: break-word;
}

.big-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn-export {
    padding: 0.75rem 1.75rem;
    background: var(--accent-light);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-export:hover { background: var(--accent); }

.big-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.big-close:hover { background: rgba(255,255,255,0.2); }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .converter-options { gap: 1rem; }
    .output-iberian    { font-size: 1.75rem; }
    .output-actions    { gap: 0.4rem; }
    .btn-action        { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
}
