

:root {
    --acento: var(--morado);                    /* rosa de los favoritos, se usa como acento */
    --acento-suave: rgba(var(--morado-rgb), 0.14);
}

[hidden] { display: none !important; }    /* el atributo hidden siempre gana */

/* Botón negro sólido (acciones principales sobre fondo claro) */
.btn-negro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--negro);
    color: var(--blanco);
    border-radius: var(--radio);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn-negro:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-negro:active { transform: scale(0.97); }

a.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--negro);
}

a.btn-secundario:hover { color: var(--blanco); }

.contador-letras {
    align-self: flex-end;
    font-size: 11px;
    color: var(--niebla);
}

/* ================================= */

.chips-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nota-chips { font-size: 13px; color: var(--niebla); }

.etiqueta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px 7px 14px;
    border-radius: 20px;
    background: var(--acento-suave);
    color: var(--negro);
    font-size: 13px;
    animation: chipPop 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.etiqueta-chip.fija { padding: 8px 16px; animation: aparecer 0.5s ease both; }

.etiqueta-chip button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: inherit;
    transition: background 0.2s ease;
}

.etiqueta-chip button:hover { background: rgba(0, 0, 0, 0.12); }

.otros-fila { display: flex; gap: 8px; margin-top: 14px; }
.otros-fila input { flex: 1; border: 1px solid var(--linea-oscura); padding: 11px 14px; background: var(--blanco); color: var(--negro); }
.otros-fila .btn-secundario { padding: 10px 18px; }

.foto-selector { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }

.foto-circulo {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 2px dashed var(--niebla);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    color: var(--niebla);
    transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.foto-circulo span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.foto-circulo img { width: 100%; height: 100%; object-fit: cover; }
.foto-circulo:hover { transform: scale(1.06); border-color: var(--acento); color: var(--acento); }
.foto-circulo.tiene { border-style: solid; border-color: var(--acento); }

.foto-circulo.arrastrando {
    border-color: var(--acento);
    box-shadow: 0 0 0 8px var(--acento-suave);
    transform: scale(1.1);
}

.foto-texto { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--niebla); }
.foto-texto strong { color: var(--negro); font-size: 15px; }
.foto-texto .btn-texto { align-self: flex-start; cursor: pointer; }

/* ================================= */

.confeti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.confeti i {
    position: absolute;
    top: -14px;
    width: 8px;
    height: 14px;
    opacity: 0;
    animation: confetiCae 2.6s ease-out forwards;
}

@keyframes confetiCae {
    0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
    100% { opacity: 0; transform: translate(var(--x), 520px) rotate(var(--r)); }
}

@media (max-width: 720px) { .foto-selector { flex-direction: column; align-items: flex-start; } }
